/* mateasmaric.com · Sand
   Tenor Sans für Überschriften und Wortmarke, Hanken Grotesk für Text.
   Basalt auf Quarzsand, Meeresgrund als einziger Akzent. Bewusst eine feste, helle Welt für alle Besucher. */

@font-face { font-family: "Tenor Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/tenor-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Quarzsand, Muschel, Düne, Basalt, Meeresgrund */
  --bg: #E4DCCB;
  --surface: #EDE7DB;
  --fg: #23262A;
  --muted: #4C4A44;
  --line: #C2B79F;
  --accent: #1F4E5A;
  --quiet: #8A7F68;
  --tanne: #23262A;
  --see: #1F4E5A;
  --on-dark: #EDE7DB;
  --on-dark-muted: #C9C2B4;
  --accent-on-dark: #9CC3C9;
  color-scheme: light;

  --serif: "Tenor Sans", "Gill Sans", "Optima", "Avenir Next", Arial, sans-serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;

  --wrap: 1160px;
  --text: 640px;
  /* Abstände: eine Reihe, etwa im Verhältnis 1 : 1,5 */
  --s-s: 16px;
  --s-m: 24px;
  --s-l: clamp(32px, 3.6vw, 44px);
  --s-xl: clamp(48px, 5.6vw, 68px);
  --space-section: clamp(80px, 9.6vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 18px; line-height: 1.6; }
img, canvas { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--surface); color: var(--fg); padding: 10px 16px; }

/* Flächen */
.top { position: relative; background: var(--bg); }
.top > .wrap { position: relative; z-index: 1; }
.glow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.surface { background: var(--surface); }
.dark { --line: rgba(241, 240, 235, 0.22); color: var(--on-dark); }
.dark a:hover { color: var(--on-dark); opacity: 0.8; }
.dark.tanne { background: var(--tanne); }
.dark.see { background: var(--see); }
.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--space-section); }
.stack { display: flex; flex-direction: column; gap: var(--s-m); }
.stack.head { gap: var(--s-s); }
.stack.wide { gap: var(--s-xl); }

/* Kopf */
.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.mark { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; padding-block: 6px; }
.mark::before { content: ""; width: 1px; height: 32px; background: var(--accent); }
.mark span { font-family: var(--serif); font-weight: 400; font-size: 16px; letter-spacing: 0.3em; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 32px; font-size: 15px; letter-spacing: 0.08em; }
.nav a { text-decoration: none; padding-block: 12px; }
.nav a[aria-current="page"] { border-bottom: 1px solid var(--accent); }
.nav .lang { color: var(--muted); }

/* Typografie */
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.dark .eyebrow { color: var(--on-dark-muted); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
h1 { font-size: clamp(40px, 6.2vw, 82px); line-height: 1.06; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
.dark h2 em, .dark p em { font-style: normal; color: var(--accent-on-dark); }
h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.1; }
h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; }
.lead { margin: 0; max-width: 32em; font-size: clamp(19px, 2vw, 21px); line-height: 1.6; color: var(--muted); }
.dark .lead { color: var(--on-dark-muted); }
.muted { color: var(--muted); }
p { margin: 0; }
.prose { max-width: var(--text); display: flex; flex-direction: column; gap: 16px; }

.fuge { display: block; width: 120px; height: 3px; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }
.dark .fuge { border-color: var(--accent-on-dark); }

/* Start: Text und System-Bild */
.hero { padding-block: var(--s-xl) var(--space-section); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); align-items: center; gap: var(--s-xl); }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-l); min-width: 0; }
.hero.center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-l); }
.hero.center { padding-bottom: var(--s-l); }
.section.after-hero { padding-top: var(--s-xl); }
.quiet-line { font-family: var(--serif); font-style: normal; font-size: clamp(24px, 2.6vw, 30px); }
.voices { margin: 0; width: 100%; max-width: 780px; }
.voices canvas { width: 100%; aspect-ratio: 3 / 1; }
@media (max-width: 600px) { .voices canvas { aspect-ratio: 2 / 1; } }
.button { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; background: var(--fg); color: var(--bg); font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; transition: background-color 0.3s ease; }
.button:hover { background: var(--accent); color: var(--bg); }
.dark .button { background: var(--on-dark); color: var(--tanne); }

.system { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.system canvas { width: 100%; aspect-ratio: 5 / 4; max-width: 100%; }
.system figcaption { font-size: 14px; letter-spacing: 0.06em; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.replay { font: inherit; letter-spacing: 0.1em; text-transform: uppercase; font-size: 13px; color: var(--fg); background: none; border: 0; border-bottom: 1px solid var(--accent); padding: 10px 0 4px; cursor: pointer; min-height: 44px; }
.replay:hover { color: var(--accent); }

.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--s-l); }
.three > div { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--fg); padding-top: 20px; min-width: 0; }
.three h3 { font-style: normal; }
.three p { color: var(--muted); font-size: 17px; }

/* Grafik: Einfluss und Änderungskosten */
.curve { margin: 0; display: flex; flex-direction: column; gap: var(--s-m); }
.curve svg { width: 100%; height: auto; display: block; overflow: visible; }
.curve .axis { stroke: var(--line); }
.curve .zone { fill: var(--bg); }
.curve .bracket { stroke: var(--accent); stroke-width: 1.5; }
.curve .influence { stroke: var(--accent); }
.curve .cost { stroke: var(--quiet); }
.curve text { fill: var(--muted); font-family: var(--sans); font-size: 13px; letter-spacing: 0.06em; }
.curve .zone-label { fill: var(--accent); font-weight: 600; letter-spacing: 0.14em; }
.curve.play .lines { animation: reveal 2.6s cubic-bezier(.45,.05,.2,1) both; }
.curve.play .zone { animation: grow 1.2s ease-out both; transform-origin: 0 50%; transform-box: fill-box; }
@keyframes reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.legend { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 10px; }
.legend i { display: inline-block; width: 28px; border-top: 2px solid var(--accent); }
.legend i.cost { border-top: 2px dashed var(--quiet); }

.scrub { display: flex; flex-direction: column; gap: 4px; }
.scrub label { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.scrub input { width: 100%; height: 44px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.curve .m-line { stroke: var(--fg); stroke-width: 1; }
.curve .m-infl { fill: var(--accent); }
.curve .m-cost { fill: var(--surface); stroke: var(--quiet); stroke-width: 3; }
.readout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px 56px; align-items: start; border-top: 1px solid var(--line); padding-top: 24px; }
.readout-phase { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.readout .phase { font-family: var(--serif); font-style: normal; font-size: clamp(34px, 4vw, 52px); line-height: 1; color: var(--accent); }
.readout p { color: var(--muted); min-height: 3.2em; max-width: 30em; }
.bars { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.bar { display: flex; flex-direction: column; gap: 8px; }
.bar-head { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.bar-head span:last-child { color: var(--muted); }
.bar-track { height: 6px; background: var(--bg); }
.bar-fill { height: 6px; background: var(--accent); }
.bar-fill.cost { background: var(--quiet); }

/* Komplexität ordnen */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: var(--s-m) var(--s-xl); align-items: start; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--s-l); }
.steps > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; border-top: 1px solid var(--line); padding-top: 20px; }
.steps h3 { font-size: clamp(26px, 2.6vw, 32px); }
.steps p { color: var(--muted); font-size: 17px; }

.quote { padding-block: var(--space-section); display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-l); }
.quote p { font-family: var(--serif); font-style: normal; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.2; max-width: 22em; text-wrap: balance; }
.quote a { font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--accent-on-dark); padding-block: 10px 4px; }

.contact { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-l) var(--s-xl); }
.contact > div { flex: 1 1 360px; min-width: 0; }
.contact .address { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 20px; }
.contact .address a { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 34px); overflow-wrap: anywhere; }

.person { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-l) var(--s-xl); }
.person img { flex: 0 0 auto; width: min(340px, 100%); height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.person-section { padding-block: var(--s-xl); }
/* Beim Sprung zu Kontakt bleibt das Porträt zur Hälfte sichtbar */
#kontakt, #contact { scroll-margin-top: calc(var(--s-xl) + min(212px, 25vh)); }
.person .prose { flex: 1 1 380px; }

/* Haltung */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: var(--s-l); }
.values > div { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--fg); padding-top: 20px; min-width: 0; }
.values h3 { font-size: clamp(34px, 3.4vw, 44px); }
.values p { color: var(--muted); font-size: 17px; }

.ways { list-style: none; margin: 0; padding: 0; counter-reset: way; }
.ways li { counter-increment: way; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px var(--s-m); padding-block: var(--s-m); border-top: 1px solid var(--line); }
.ways li:last-child { border-bottom: 1px solid var(--line); }
.ways li::before { content: counter(way); grid-row: 1 / span 2; font-family: var(--serif); font-size: 26px; color: var(--accent); line-height: 1.2; }
.ways h3 { font-size: clamp(26px, 3vw, 36px); }
.ways p { color: var(--muted); }
@media (min-width: 900px) {
  .ways li { grid-template-columns: 80px minmax(0, 5fr) minmax(0, 6fr); gap: 0 40px; align-items: baseline; }
  .ways li::before { grid-row: auto; }
}

.motion { margin: 0; display: flex; flex-direction: column; gap: var(--s-l); }
.motion canvas { width: 100%; aspect-ratio: 2 / 1; }
@media (max-width: 640px) { .motion canvas { aspect-ratio: 4 / 3; } }
.motion-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px 40px; }
.motion-steps li { counter-increment: st; display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 2px solid var(--line); transition: opacity 0.6s ease, border-color 0.6s ease; }
.motion-steps li::before { content: counter(st); font-family: var(--serif); font-size: 22px; color: var(--accent); line-height: 1; }
.motion-steps strong { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; }
.motion-steps span { color: var(--muted); font-size: 16px; }
.motion-steps.running li { opacity: 0.4; }
.motion-steps.running li.active { opacity: 1; border-top-color: var(--accent); }
.levels { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.levels li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 6px 32px; padding-block: 28px; border-top: 1px solid var(--line); }
.levels li:last-child { border-bottom: 1px solid var(--line); }
.levels .tag { grid-row: 1 / span 2; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); padding-top: 10px; }
.levels h3 { font-size: clamp(28px, 3vw, 38px); }
.levels p { color: var(--muted); max-width: 36em; }
@media (min-width: 760px) {
  .levels li:nth-child(2) { margin-left: 5%; }
  .levels li:nth-child(3) { margin-left: 10%; }
}
@media (max-width: 560px) { .levels li { grid-template-columns: 1fr; } .levels .tag { grid-row: auto; padding-top: 0; } }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px 48px; }
.roles > div { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--fg); padding-top: 18px; min-width: 0; }
.roles > div p:last-child { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 26px); line-height: 1.3; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--s-l); }
.q { margin: 0; display: flex; flex-direction: column; gap: var(--s-s); border-top: 1px solid var(--fg); padding-top: var(--s-m); min-width: 0; }
.q blockquote { margin: 0; }
.q blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.1vw, 26px); line-height: 1.3; }
.q figcaption { font-size: 14px; letter-spacing: 0.04em; color: var(--muted); }
.q cite { font-style: italic; }
.q-then { margin-top: auto; padding-top: var(--s-s); border-top: 1px solid var(--line); color: var(--fg); font-size: 17px; }
.promises { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.3; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 56px 80px; }
.takeaways { display: flex; flex-direction: column; gap: 24px; }
.takeaways div { display: flex; flex-direction: column; gap: 4px; }
.takeaways span:first-child { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; }
.takeaways span:last-child { color: var(--muted); font-size: 17px; }
.dark .takeaways span:last-child { color: var(--on-dark-muted); }

/* Rechtliches */
.legal { padding-block: clamp(56px, 8vw, 96px); }
.legal h2 { font-size: clamp(24px, 2.4vw, 30px); margin-top: 24px; }
.legal dl { margin: 0; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 10px 24px; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; }
@media (max-width: 600px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 12px; } }
.todo { background: var(--surface); outline: 1px dashed var(--accent); padding: 0 6px; }

/* Fuß */
.site-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-block: 24px; font-size: 14px; color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.site-foot a { text-decoration: none; padding-block: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .curve.play .lines, .curve.play .zone { animation: none; }
}
