/* ==========================================================================
   SEO Agentur München – site styles
   Order: tokens → base → layout → components → utilities (utilities win).
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --accent: #C8F560;          /* lime: buttons, highlights on dark */
  --c-ink: #10261F;           /* dark green: text, dark sections */
  --c-ink-2: #1C3A30;         /* cards on dark */
  --c-ink-3: #0B1B16;         /* footer */
  --c-green: #2E6B52;         /* link hover, small accents on light */
  --c-paper: #F4F6F3;         /* page background, text on dark */
  --c-mist: #E6ECE4;          /* tinted sections */
  --c-white: #FFFFFF;
  --c-muted: #4A5A53;         /* secondary text on light */
  --c-muted-light: #D5E0D9;   /* secondary text on dark */
  --c-sage: #6F8A7D;          /* outlines on dark */
  --c-sage-2: #8FA398;        /* input borders */
  --c-line: #C9D4CC;          /* dividers on light */
  --c-line-dark: #2A4A3E;     /* dividers on dark */

  --font-body: Inter, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  --radius-pill: 999px;
}

/* --- Base --------------------------------------------------------------- */
body { margin: 0; }

/* :where() keeps these at zero specificity, so every component class wins. */
:where(a) { color: var(--c-ink); }
:where(a):hover { color: var(--c-green); }
:where(h1, h2, h3, p, ul, ol, figure, blockquote) { margin: 0; }

h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
section[id] { scroll-margin-top: 84px; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

.page {
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-paper);
  font-size: 17px;
  line-height: 1.6;
}

/* --- Layout ------------------------------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; }
.container--narrow { max-width: 820px; }

.section { padding: 104px 5%; }
.section--flush { padding-top: 0; }
.section--dark { background: var(--c-ink); color: var(--c-paper); }
.section--tint { background: var(--c-mist); }
.section--white { background: var(--c-white); }

.stack { display: flex; flex-direction: column; }

/* Two columns that stack below ~700px */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; }
.split--center { align-items: center; }
.split--start { align-items: start; }

/* --- Typography --------------------------------------------------------- */
.h2 { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; }
.h2-xl { font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px); line-height: 1.08; }
.h2-xl--tight { letter-spacing: -0.01em; }
.h2-card { font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); line-height: 1.1; }
.h-sm { font-size: 19px; }
.h-md { font-size: 22px; }

.eyebrow { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.muted { color: var(--c-muted); }
.on-dark-muted { color: var(--c-muted-light); }
.optional { font-weight: 400; color: var(--c-muted); }

.list-plain { padding: 0; list-style: none; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c-green); margin-top: 9px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; }
.check-icon { flex: none; color: var(--accent); }
.check-icon--offset { margin-top: 3px; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.btn--accent { background: var(--accent); color: var(--c-ink); }
.btn--dark { background: var(--c-ink); color: var(--c-paper); }
.btn--outline { border: 1.5px solid var(--c-ink); }
.btn--outline-light { border: 1.5px solid var(--c-sage); color: var(--c-paper); }
.btn--lg { padding: 16px 28px; }
.btn--sm { font-size: 15px; padding: 12px 22px; white-space: nowrap; }
.btn--block { width: 100%; font-size: 18px; padding: 18px 28px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Footer button that looks like the footer links (opens cookie settings) */
.linkbutton {
  font: inherit; color: var(--c-muted-light); background: none; border: 0;
  padding: 12px 0; text-decoration: underline; cursor: pointer;
}
.linkbutton:hover { color: var(--c-white); }

/* --- Header ------------------------------------------------------------- */
.site-header { background: var(--c-ink); padding: 14px 5%; position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; gap: 12px 20px; align-items: center; justify-content: space-between; }

.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--c-paper);
  text-decoration: none; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 12px;
}
.logo__dot { color: var(--accent); }
.logo__tag {
  font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--c-muted-light); border-left: 1px solid var(--c-sage); padding-left: 12px; line-height: 1.3;
}

.site-nav { display: flex; gap: 12px 24px; align-items: center; }
.site-nav__links { display: flex; gap: 28px; align-items: center; }
.site-nav__link { color: var(--c-muted-light); text-decoration: none; font-size: 15px; padding: 12px 0; }

.nav-toggle {
  display: none; width: 44px; height: 44px; flex: none; align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid var(--c-sage); border-radius: 12px; color: var(--c-paper);
  cursor: pointer; padding: 0;
}
.mobile-menu {
  display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--c-ink);
  border-top: 1px solid var(--c-line-dark); padding: 8px 5% 24px; flex-direction: column;
  box-shadow: 0 16px 32px rgba(0,0,0,0.25);
}
.mobile-menu[hidden] { display: none !important; }
.mobile-menu__link { color: var(--c-paper); text-decoration: none; font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--c-line-dark); }
.mobile-menu__cta { margin-top: 20px; text-align: center; padding: 16px 24px; }

@media (max-width: 900px) {
  .site-nav__links { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu { display: flex; }
}
@media (max-width: 560px) { .logo__tag { display: none; } }

/* --- Hero --------------------------------------------------------------- */
.hero { background: var(--c-ink); color: var(--c-paper); padding: 72px 5% 96px; }
.hero__title {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 6vw, 84px);
  line-height: 1.02; letter-spacing: -0.02em;
}
.hero__lead { font-size: 20px; color: var(--c-muted-light); max-width: 34rem; }
.hero__usps { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 15px; color: var(--c-muted-light); }
.hero__usp { display: inline-flex; align-items: center; gap: 8px; }
.hero__media { position: relative; min-height: 460px; border-radius: 28px; background: var(--c-ink-2); }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center 40%; border-radius: 28px;
}
.hero__badge {
  position: absolute; left: -16px; bottom: 32px; background: var(--c-ink); color: var(--accent);
  border: 1.5px solid var(--accent); border-radius: 16px; padding: 14px 18px; font-size: 14px;
  font-weight: 600; max-width: 240px; display: flex; flex-direction: column; gap: 6px;
}
.hero__badge-item { display: flex; gap: 8px; align-items: flex-start; }
.hero__badge-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-top: 8px; }

/* --- Client logos ------------------------------------------------------- */
.logos { background: var(--c-mist); padding: 36px 5%; }
.logos__inner { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.logos__label { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); }
.logos__list {
  padding: 0; list-style: none; width: 100%; height: 56px; overflow: hidden; display: flex;
  flex-wrap: wrap; gap: 40px clamp(12px, 4vw, 32px); align-items: center; justify-content: center;
}
.logos__item { width: 140px; height: 56px; display: flex; align-items: center; justify-content: center; }
.logos__img { max-width: 100%; width: auto; height: auto; display: block; opacity: 0.8; }
@media (max-width: 700px) { .logos__item { width: clamp(84px, 26vw, 140px); } }

/* --- Intro stats -------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.stat { background: var(--c-white); border-radius: 20px; padding: 24px; }
.stat__value { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--c-ink); }
.stat__label { font-size: 14px; }

/* --- About -------------------------------------------------------------- */
.about {
  background: var(--c-white); border-radius: 32px; padding: clamp(28px, 5vw, 64px);
  display: flex; flex-direction: column; gap: 48px;
}
.about__intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: center; }
.about__img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; display: block; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.feature { background: var(--c-paper); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }

/* --- Testimonials & case studies --------------------------------------- */
.section-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.testimonial {
  background: var(--c-white); border-radius: 24px; padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.testimonial--dark { background: var(--c-ink); color: var(--c-paper); }
.testimonial__quote { font-size: 18px; }
.testimonial__by { font-size: 14px; color: var(--c-muted); display: flex; gap: 14px; align-items: center; margin-top: auto; }
.testimonial__by--dark { color: var(--c-muted-light); }
.testimonial__img { flex: none; width: 64px; height: 48px; object-fit: cover; border-radius: 10px; }
.testimonial__name { color: var(--c-ink); }
.testimonial__name--dark { color: var(--c-paper); }

.case { background: var(--c-white); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.case__logo { height: 48px; display: flex; align-items: center; }
.case__logo-img { max-width: 220px; width: auto; height: auto; display: block; }
.case__sector {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-green);
  font-weight: 600; white-space: nowrap; line-height: 20px;
}
.case__value { font-family: var(--font-display); font-size: 56px; font-weight: 700; line-height: 1; white-space: nowrap; }
.case__unit { font-size: 18px; font-weight: 500; color: var(--c-muted); margin-left: 10px; }
.case__title { font-size: 20px; line-height: 1.3; min-height: 78px; }

/* --- Services ----------------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.service-card { background: var(--c-ink-2); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.service-card__no { font-family: var(--font-display); color: var(--accent); font-weight: 600; }

/* --- Panels (Beratung, GEO) -------------------------------------------- */
.panel {
  background: var(--c-white); border-radius: 32px; padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; gap: 28px;
}
.panel--dark { background: var(--c-ink); color: var(--c-paper); }
.panel__head { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.panel__title { flex: 1 1 0; min-width: 260px; }
.panel__columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px 48px; }

/* --- Steps -------------------------------------------------------------- */
.steps { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.step { background: var(--c-white); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.step__no { font-family: var(--font-display); font-size: 34px; font-weight: 700; }

/* --- Prices ------------------------------------------------------------- */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
.price { background: var(--c-white); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.price--dark { background: var(--c-ink); color: var(--c-paper); }
.price__spacer { height: 28px; display: block; }
.price__title { font-size: 20px; line-height: 1.3; white-space: nowrap; }
.price__value { font-family: var(--font-display); font-size: 40px; font-weight: 700; white-space: nowrap; }
.price__from { font-size: 20px; font-weight: 500; margin-right: 8px; }
.chip {
  align-self: flex-start; border: 1.5px solid var(--accent); color: var(--accent); font-size: 13px;
  font-weight: 600; height: 28px; box-sizing: border-box; display: flex; align-items: center;
  padding: 0 12px; border-radius: var(--radius-pill);
}

/* --- Contact person ----------------------------------------------------- */
.person__photos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.person__img { width: 100%; height: clamp(260px, 70vw, 440px); object-fit: cover; border-radius: 24px; display: block; }
.person__stack { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; height: clamp(260px, 70vw, 440px); }
.person__img-fill { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 24px; display: block; }

/* --- Location & map ----------------------------------------------------- */
.location { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.location__card {
  background: var(--c-white); border-radius: 32px; padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; gap: 16px;
}
.address { font-style: normal; color: var(--c-muted); }

.map {
  position: relative; min-height: 320px; border-radius: 32px; overflow: hidden; background: var(--c-mist);
  display: flex; align-items: center; justify-content: center; padding: 32px; box-sizing: border-box;
}
.map__consent {
  max-width: 26rem; text-align: center; display: flex; flex-direction: column; gap: 16px;
  align-items: center; color: var(--c-muted); font-size: 15px;
}
.map__always { display: inline-flex; gap: 8px; align-items: center; padding: 6px 0; cursor: pointer; }
.map__always input { width: 18px; height: 18px; margin: 0; accent-color: var(--c-ink); }
.map__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- FAQ ---------------------------------------------------------------- */
.faq-item { background: var(--c-white); border-radius: 20px; padding: 24px 28px; }
.faq-item__q { display: flex; justify-content: space-between; gap: 16px; }
.faq-item__icon { font-size: 24px; line-height: 1; }
.faq-item__a { margin: 16px 0 0; color: var(--c-muted); }

/* --- Contact section ---------------------------------------------------- */
.next-steps__title { font-size: 16px; color: var(--c-muted-light); font-weight: 600; }
.next-step { display: flex; gap: 14px; align-items: center; }
.next-step__no {
  flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--c-sage);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
}
.contact-person { display: flex; gap: 16px; align-items: center; background: var(--c-ink-2); border-radius: 20px; padding: 16px 20px; }
.contact-person__img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 25%; }
.contact-person__call { color: var(--accent); font-weight: 600; padding: 6px 0; }

.form {
  background: var(--c-paper); color: var(--c-ink); border-radius: 28px; padding: clamp(24px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 16px;
}
.form__title { font-family: var(--font-display); font-size: 26px; line-height: 1.15; }
.form__alert { background: var(--c-white); border: 1px solid #B9A46A; border-radius: 12px; padding: 12px 16px; font-size: 15px; }
.form__trust {
  border-top: 1px solid var(--c-line); padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px;
  justify-content: center; font-size: 14px; color: var(--c-muted);
}
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field__input {
  font: inherit; font-weight: 400; font-size: 16px; padding: 14px 16px; min-height: 52px;
  box-sizing: border-box; width: 100%; border: 1.5px solid var(--c-sage-2); border-radius: 12px;
  background: var(--c-white);
}
.field__input--area { resize: vertical; }
/* Spam trap: invisible for people and screen readers */
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* --- Legal & simple pages ---------------------------------------------- */
.legal { padding: 80px 5% 104px; }
.page-title { font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
.page-title--gap { margin-bottom: 16px; }
.legal__h2 { margin: 24px 0 0; font-family: var(--font-display); font-size: 28px; line-height: 1.2; }
.legal__h3 { margin: 12px 0 0; font-size: 20px; line-height: 1.3; }
.legal__list { padding-left: 22px; color: var(--c-muted); display: flex; flex-direction: column; gap: 6px; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--c-ink-3); color: var(--c-muted-light); padding: 48px 5%; font-size: 14px; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__link { color: var(--c-muted-light); padding: 12px 0; }

/* --- Utilities (last, so they win over components) ---------------------- */
.gap-2 { gap: 2px; }   .gap-4 { gap: 4px; }   .gap-10 { gap: 10px; } .gap-12 { gap: 12px; }
.gap-14 { gap: 14px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.gap-28 { gap: 28px; } .gap-32 { gap: 32px; } .gap-40 { gap: 40px; }

.fs-13 { font-size: 13px; } .fs-14 { font-size: 14px; } .fs-15 { font-size: 15px; }
.fs-16 { font-size: 16px; } .fs-17 { font-size: 17px; } .fs-18 { font-size: 18px; }
.fs-20 { font-size: 20px; }
.lh-snug { line-height: 1.3; }
.text-center { text-align: center; }

.maxw-40 { max-width: 40rem; } .maxw-44 { max-width: 44rem; } .maxw-48 { max-width: 48rem; }
.self-start { align-self: flex-start; }
.pad-y-6 { padding: 6px 0; }
.obj-top-15 { object-position: center 15%; }

/* Logo heights (logos have very different proportions) */
.mh-24 { max-height: 24px; } .mh-28 { max-height: 28px; } .mh-32 { max-height: 32px; }
.mh-34 { max-height: 34px; } .mh-36 { max-height: 36px; } .mh-44 { max-height: 44px; }
.mh-46 { max-height: 46px; } .mh-52 { max-height: 52px; }
