/* ============================================================
   mashali.at  ·  Design System
   Palette laut Briefing (B2B Medizin, Petrol/Salbei/Apricot)
   Radius-System: Flächen 18px, Bedienelemente 10px
   Theme: bewusst nur Light (fixe Markenpalette, Print-nahe Editorial-Seite)
   ============================================================ */

:root {
  --petrol: #12403F;
  --petrol-700: #1D5A57;
  --petrol-050: #E9F0EF;
  --sage: #7A9A8B;
  --sage-100: #EEF3F0;
  --apricot: #F3A380;
  --apricot-deep: #EE9166;
  --paper: #F9F9F6;
  --ink: #2A3439;
  --ink-60: #6B7478;
  --line: #E3E6E0;

  --r-surface: 18px;
  --r-control: 10px;

  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1160px;
  --nav-h: 72px;

  color-scheme: light;
}

/* ---------- Fonts (selbst gehostet, DSGVO) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, canvas { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.35rem, 4.6vw, 3.5rem); line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.45rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }

p { margin: 0 0 1em; max-width: 65ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--petrol);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
a:hover { color: var(--petrol-700); }

::selection { background: var(--sage); color: #fff; }

:focus-visible {
  outline: 2px solid var(--petrol-700);
  outline-offset: 3px;
  border-radius: 4px;
}

[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--petrol);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--r-control) 0;
  z-index: 200;
}
.skip-link:focus-visible { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  padding: 14px 26px;
  border-radius: var(--r-control);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease,
              color 0.25s ease, transform 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--apricot); color: var(--ink); }
.btn-primary:hover { background: var(--apricot-deep); color: var(--ink); }

.btn-ghost { border-color: var(--petrol); color: var(--petrol); background: transparent; }
.btn-ghost:hover { background: var(--petrol-050); color: var(--petrol); }

.on-dark .btn-ghost { border-color: rgba(249, 249, 246, 0.55); color: var(--paper); }
.on-dark .btn-ghost:hover { background: rgba(249, 249, 246, 0.1); color: #fff; }

.link-arrow {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--sage);
  padding-bottom: 2px;
}
.link-arrow:hover { border-color: var(--petrol-700); }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-nav.is-scrolled {
  background: rgba(249, 249, 246, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-nav .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  line-height: 1.05;
}
.brand .brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: 0.14em;
  display: block;
}
.brand .brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-60);
  display: block;
  margin-top: 2px;
}
.brand:hover { color: var(--petrol); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 2px;
}
.nav-links a:hover { color: var(--petrol-700); }
.nav-links .btn { padding: 11px 20px; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: var(--r-control);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px clamp(20px, 4vw, 32px) 24px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 4px; font-size: 1.05rem; }
  .nav-links .btn { margin-top: 8px; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  width: 100%;
}
.hero-copy .sub {
  font-size: 1.15rem;
  color: var(--ink-60);
  max-width: 46ch;
  margin-bottom: 1.8em;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust {
  margin-top: 34px;
  font-size: 0.86rem;
  color: var(--ink-60);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  max-width: 46ch;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--r-surface);
  overflow: hidden;
  background: linear-gradient(160deg, var(--petrol-700) 0%, var(--petrol) 55%, #0C302F 100%);
}
.hero-visual canvas { width: 100%; height: 100%; }

@media (max-width: 960px) {
  .hero { min-height: auto; padding-bottom: 24px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 16 / 10; order: 2; }
}

/* ---------- Sektionen allgemein ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-tight { padding-block: clamp(56px, 7vw, 96px); }

.section-head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lede { color: var(--ink-60); font-size: 1.1rem; }

/* ---------- Problemspiegel (versetzte Zitate) ---------- */
.mirror-quotes {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  row-gap: clamp(28px, 4vw, 44px);
}
.mirror-quotes blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  font-weight: 500;
  color: var(--petrol);
}
.mirror-quotes blockquote:nth-child(1) { grid-column: 1 / 8; }
.mirror-quotes blockquote:nth-child(2) { grid-column: 5 / 13; text-align: right; }
.mirror-quotes blockquote:nth-child(3) { grid-column: 2 / 9; }
.mirror-quotes footer {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink-60);
  margin-top: 10px;
  font-weight: 500;
}
@media (max-width: 720px) {
  .mirror-quotes blockquote { grid-column: 1 / 13 !important; text-align: left !important; }
}

/* ---------- Leistungen (asymmetrisches Raster) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-rows: auto auto;
  gap: 20px;
}
.service-card {
  border-radius: var(--r-surface);
  padding: clamp(26px, 3.4vw, 42px);
}
.service-card .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
}
.service-card p { font-size: 1rem; }

.service-main {
  grid-row: 1 / 3;
  background: linear-gradient(165deg, var(--petrol-700), var(--petrol));
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
}
.service-main h3 { color: var(--paper); font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.service-main p { color: rgba(249, 249, 246, 0.82); }
.service-main .icon { color: var(--apricot); }

.service-sage { background: var(--sage-100); }
.service-line { background: var(--paper); border: 1px solid var(--line); }
.service-sage .icon, .service-line .icon { color: var(--petrol); }

@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .service-main { grid-row: auto; min-height: 320px; }
}

/* ---------- Differenzierer (Petrol-Block) ---------- */
.compliance {
  background: var(--petrol);
  color: var(--paper);
  border-radius: 0;
}
.compliance h2 { color: var(--paper); }
.compliance p { color: rgba(249, 249, 246, 0.85); }
.compliance-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.compliance-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.compliance-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.98rem;
  color: rgba(249, 249, 246, 0.9);
}
.compliance-list .icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--apricot);
}
.compliance .btn { margin-top: 30px; }
@media (max-width: 860px) {
  .compliance-inner { grid-template-columns: 1fr; }
}

/* ---------- Ablauf ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
  counter-reset: step;
}
.step {
  border-top: 2px solid var(--sage);
  padding-top: 22px;
}
.step .step-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 560;
  color: var(--sage);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.step p { font-size: 0.95rem; color: var(--ink-60); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Preisanker ---------- */
.pricing {
  background: var(--sage-100);
  border-radius: var(--r-surface);
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
}
.pricing h2 { margin-bottom: 0.5em; }
.pricing .price-line {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--petrol);
  max-width: 34ch;
  margin-inline: auto;
  line-height: 1.4;
}
.pricing .price-note {
  color: var(--ink-60);
  font-size: 0.95rem;
  max-width: 52ch;
  margin: 1.2em auto 0;
}

/* ---------- Über mich ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.about-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-surface);
  overflow: hidden;
  background: linear-gradient(170deg, var(--sage) 0%, var(--petrol-700) 70%, var(--petrol) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait .monogram {
  font-family: var(--font-serif);
  font-size: clamp(3.4rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(249, 249, 246, 0.85);
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 380px; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  border-radius: var(--r-control);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--petrol-700); }
.faq-item summary .icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--sage);
  transition: transform 0.25s ease;
}
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item .faq-body {
  padding: 0 4px 24px;
  color: var(--ink-60);
  max-width: 62ch;
}

/* ---------- Abschluss-CTA ---------- */
.final-cta { text-align: center; }
.final-cta h2 { max-width: 24ch; margin-inline: auto; }
.final-cta p { margin-inline: auto; color: var(--ink-60); max-width: 52ch; }
.final-cta .btn { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--petrol);
  color: rgba(249, 249, 246, 0.8);
  padding-block: clamp(48px, 6vw, 72px) 32px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  margin-bottom: 48px;
}
.site-footer .brand { color: var(--paper); }
.site-footer .brand .brand-sub { color: rgba(249, 249, 246, 0.55); }
.site-footer h3 {
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(249, 249, 246, 0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal {
  border-top: 1px solid rgba(249, 249, 246, 0.15);
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(249, 249, 246, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Unterseiten (Artikel-Layout) ---------- */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(32px, 5vw, 56px);
}
.page-hero .lede { font-size: 1.15rem; color: var(--ink-60); max-width: 58ch; }

.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; max-width: 62ch; }
.prose li { margin-bottom: 0.5em; }

.rule-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-block: 32px;
}
.rule-card {
  border-radius: var(--r-surface);
  padding: clamp(24px, 3vw, 36px);
}
.rule-card.allowed { background: var(--sage-100); }
.rule-card.forbidden { background: var(--petrol); color: var(--paper); }
.rule-card.forbidden h3 { color: var(--paper); }
.rule-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.rule-card .icon { width: 24px; height: 24px; color: var(--petrol); }
.rule-card.forbidden .icon { color: var(--apricot); }
.rule-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; font-size: 0.96rem; }
.rule-card.forbidden ul { color: rgba(249, 249, 246, 0.85); }
.rule-card li { padding-left: 18px; position: relative; }
.rule-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 2px;
  background: currentColor;
  opacity: 0.5;
}
@media (max-width: 720px) {
  .rule-cards { grid-template-columns: 1fr; }
}

.notice {
  border-left: 3px solid var(--sage);
  background: var(--sage-100);
  border-radius: 0 var(--r-surface) var(--r-surface) 0;
  padding: 20px 24px;
  font-size: 0.95rem;
  color: var(--ink-60);
  margin-block: 32px;
  max-width: 68ch;
}

/* ---------- Formular (Audit-Seite) ---------- */
.audit-layout {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 860px) {
  .audit-layout { grid-template-columns: 1fr; }
}

.audit-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  padding: clamp(24px, 3.4vw, 40px);
  display: grid;
  gap: 22px;
}
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: 0.84rem; color: var(--ink-60); }
.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-control);
  padding: 13px 16px;
  width: 100%;
  transition: border-color 0.2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #98A0A4; }
.field input:hover, .field textarea:hover { border-color: var(--sage); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--petrol-700);
  outline-offset: 1px;
  border-color: var(--petrol-700);
}
.field.has-error input, .field.has-error textarea { border-color: #B3402A; }
.field .error {
  font-size: 0.84rem;
  color: #B3402A;
  display: none;
}
.field.has-error .error { display: block; }

.audit-aside .contact-block {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
  font-size: 0.98rem;
}
.audit-aside .contact-block a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.audit-aside .icon { width: 20px; height: 20px; color: var(--petrol); }

.audit-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.audit-points li { display: flex; gap: 12px; align-items: flex-start; }
.audit-points .icon { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; color: var(--sage); }

/* ---------- Reveal-Zustände (GSAP setzt Endwerte) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); }
}

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