/* ============================================
   Sphericon Invest GmbH - Stylesheet
   ============================================ */

/* ----------------------------------------
   CSS Custom Properties (Design Tokens)
   ---------------------------------------- */
:root {
  /* === COLOR SYSTEM V2 === */
  --color-background: #FAF9F6;
  --color-dark: #121417;

  --color-muted: #6E7378;
  --color-secondary: #6E7378; /* Alias, weil du es im CSS oft verwendest */

  --color-brand: #7EBF4C;
  --color-brand-deep: #4E7F38;
  --color-brand-soft: rgba(126, 191, 76, 0.12);

  /* Typography */
  --font-headline: "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing */
  --section-spacing-mobile: 100px;
  --section-spacing-desktop: 160px;
  --content-max-width: 780px;

  /* Transitions */
  --transition-hover: 180ms ease;
}


/* ----------------------------------------
   Reset & Base Styles
   ---------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-dark);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-hover);
}

a:hover {
    color: var(--color-brand);
}

ul {
    list-style: none;
}

/* ----------------------------------------
   Typography
   ---------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    margin-bottom: 1.5rem;
}

p:last-child {
    margin-bottom: 0;
}

/* ----------------------------------------
   Layout
   ---------------------------------------- */
.container {
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Make header/footer wider than the text column */
.site-header .container,
.site-footer .container {
    max-width: 1200px;
}  

/* ----------------------------------------
   Header & Navigation
   ---------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18, 20, 23, 0.08);
}


.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 18px;
}


.logo {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-dark);
  white-space: nowrap;
  text-transform: lowercase;
}

.logo:hover { color: var(--color-dark); }

.logo-dot { color: var(--color-brand); }


/* Mobile Navigation Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-dark);
    transition: transform var(--transition-hover), opacity var(--transition-hover);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Navigation Wrapper */
.nav-wrapper {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-background);
    padding: 40px 24px;
    transform: translateX(100%);
    transition: transform var(--transition-hover);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.nav-wrapper.is-open {
    transform: translateX(0);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nav-links a {
    font-size: 1.5rem;
    font-family: var(--font-headline);
    color: var(--color-dark);
    padding: 8px 10px;
    border-radius: 10px;
}

.nav-links a:hover {
    color: inherit;
    background: rgba(30, 38, 48, 0.04);
}

/* Language Toggle */
.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.lang-active {
    color: var(--color-dark);
}

.lang-link {
    color: var(--color-secondary);
}

.lang-link:hover {
    color: var(--color-brand);
}

.lang-separator {
    color: var(--color-secondary);
    opacity: 0.5;
}

/* Desktop Navigation */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    flex-wrap: nowrap;
  }

  .nav-wrapper {
    position: static;
    transform: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 48px;
    background: transparent;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .nav-links {
    flex-direction: row;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 22px;
  }

  .nav-links a {
  font-size: 0.86rem;
  font-family: var(--font-body);
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 10px;
  border-radius: 12px;
  color: rgba(18, 20, 23, 0.82);
}


.nav-links a:hover {
  color: var(--color-dark);
  background: rgba(126, 191, 76, 0.10);
}
}


/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.hero {
  padding: 200px 0 140px;
  background: radial-gradient(
      1000px 500px at 20% 5%,
      rgba(126, 191, 76, 0.22),
      transparent 60%
    );
}

.hero-title {
  font-size: clamp(3rem, 6.5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.02;
  max-width: 1000px;
  margin-bottom: 28px;
}


.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(18, 20, 23, 0.62);
  max-width: 720px;
}


.trust-lines {
  margin: 28px 0 28px;
  padding-left: 0;
}
.trust-lines li {
  margin: 10px 0;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--color-dark);
}
.trust-lines li span {
  border-bottom: 2px solid rgba(126, 191, 76, 0.55);
  padding-bottom: 2px;
}

@media (min-width: 768px) {
    .hero {
  padding: 160px 0 var(--section-spacing-mobile);
  background: radial-gradient(
      800px 420px at 18% 10%,
      rgba(126, 191, 76, 0.18),
      transparent 60%
    );
}

.hero-title {
  font-size: clamp(2.9rem, 6.2vw, 4.2rem);
  font-weight: 680;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 980px;
  margin-bottom: 26px;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.65;
  color: rgba(18, 20, 23, 0.68);
  max-width: 680px;
}
}

/* ----------------------------------------
   Sections
   ---------------------------------------- */

.section {
  padding: var(--section-spacing-mobile) 0;
}

.section-alt {
  background: var(--color-background);
}


.section-alt .work-card {
    background: rgba(255, 255, 255, 0.55);
}

.section-header {
    margin-bottom: 40px;
}

.section-title {
  position: relative;
  padding-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--color-brand);
}

.section-content {
    color: var(--color-secondary);
}

@media (min-width: 768px) {
    .section {
        padding: var(--section-spacing-desktop) 0;
    }
    
    .section-header {
        margin-bottom: 56px;
    }
}

/* ----------------------------------------
   Card System (Unified)
   ---------------------------------------- */
.work-card,
.how-card,
.about-card,
.contact-card,
.fit-card {
  border: 1px solid rgba(18, 20, 23, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 40px rgba(18, 20, 23, 0.08);
  padding: 22px 22px;
}


/* ----------------------------------------
   About
   ---------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 22px;
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

.about-card {
  border: 1px solid rgba(18, 20, 23, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 30px rgba(18, 20, 23, 0.05);
}

.about-card h3 {
    margin-bottom: 10px;
    font-weight: 500;
}

.about-card p {
    margin-bottom: 12px;
    color: rgba(30, 38, 48, 0.86);
}

.about-card p:last-child {
    margin-bottom: 0;
}

/* ----------------------------------------
   Contact
   ---------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 22px;
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        align-items: start;
    }
}

.contact-card {
  border: 1px solid rgba(18, 20, 23, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 30px rgba(18, 20, 23, 0.05);
}

.contact-line {
    margin-bottom: 10px;
    color: rgba(30, 38, 48, 0.88);
}

.contact-link {
    color: rgba(30, 38, 48, 0.92);
    border-bottom: 1px solid rgba(79, 111, 79, 0.35);
    padding-bottom: 2px;
}

.contact-link:hover {
    color: var(--color-brand);
    border-bottom-color: rgba(79, 111, 79, 0.65);
}

.contact-form label {
    display: block;
    margin-bottom: 12px;
}

.contact-form span {
    display: block;
    font-size: 13px;
    color: var(--color-secondary);
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(30, 38, 48, 0.14);
    border-radius: 12px;
    padding: 12px 12px;
    font-family: var(--font-body);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.60);
    color: var(--color-dark);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(79, 111, 79, 0.35);
    border-color: rgba(79, 111, 79, 0.55);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form button {
    width: 100%;
    margin-top: 6px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-primary {
  background: var(--color-dark);
  color: white;
}
.btn-primary:hover {
  background: var(--color-brand);
  color: var(--color-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1px solid rgba(18, 20, 23, 0.18);
  color: var(--color-dark);
}
.btn-secondary:hover {
  background: rgba(126, 191, 76, 0.12);
  border-color: rgba(126, 191, 76, 0.45);
  transform: translateY(-1px);
}


/* ----------------------------------------
   Footer
   ---------------------------------------- */
.site-footer {
    padding: 64px 0 32px;
    border-top: 1px solid rgba(30, 38, 48, 0.08);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-company {
    font-family: var(--font-headline);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--color-dark);
}

.footer-address {
    font-style: normal;
    color: var(--color-secondary);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--color-secondary);
}

.footer-links a:hover {
    color: var(--color-brand);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(30, 38, 48, 0.06);
}

.copyright {
    font-size: 0.875rem;
    color: var(--color-secondary);
    opacity: 0.7;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .footer-links {
        flex-direction: row;
        gap: 32px;
    }
}

/* ----------------------------------------
   Fit Section (Partner-Fit)
   ---------------------------------------- */
.fit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 22px;
}

@media (min-width: 900px) {
    .fit-grid {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }
}

.fit-card {
    border: 1px solid rgba(30, 38, 48, 0.10);
    border-radius: 14px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.35);
}

.fit-card h3 {
    margin-bottom: 14px;
    font-weight: 500;
}

.fit-card-negative {
    background: rgba(30, 38, 48, 0.015);
}

.checklist {
    padding-left: 0;
    margin: 0;
}

.checklist li {
    position: relative;
    padding-left: 22px;
    margin: 12px 0;
    color: rgba(30, 38, 48, 0.92);
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(79, 111, 79, 0.80);
}

.checklist-negative li::before {
    background: rgba(30, 38, 48, 0.35);
}

.divider {
    height: 1px;
    background: rgba(30, 38, 48, 0.10);
    margin: 36px 0;
}

/* ----------------------------------------
   What we do (Work Cards)
   ---------------------------------------- */
.work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 22px;
}

@media (min-width: 900px) {
    .work-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.work-card {
    border: 1px solid rgba(30, 38, 48, 0.10);
    border-radius: 14px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.35);
}

.work-card h3 {
    margin-bottom: 12px;
    font-weight: 500;
}

.work-card p {
    color: rgba(30, 38, 48, 0.88);
}

.micro-line {
    margin-top: 14px;
    font-weight: 600;
    color: rgba(30, 38, 48, 0.92);
}   

/* ----------------------------------------
   How we work
   ---------------------------------------- */
.how-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 22px;
}

@media (min-width: 900px) {
    .how-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

.how-card {
    border: 1px solid rgba(30, 38, 48, 0.10);
    border-radius: 14px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.30);
}

.how-card h3 {
    margin-bottom: 10px;
    font-weight: 500;
}

.how-card p {
    margin-bottom: 0;
    color: rgba(30, 38, 48, 0.86);
}

/* ----------------------------------------
   Utility Classes
   ---------------------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ----------------------------------------
   Focus Styles (Accessibility)
   ---------------------------------------- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}

/* ----------------------------------------
   Reduced Motion
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
