/* a2 „Eine Zelle“ – Papier, Tinte, ein Sechseck-Umriss je Abschnitt */
@import url("../_gemeinsam/fonts.css");

:root {
  --papier: #FDFDFB;
  --tinte: #201A12;
  --grau: #5E584F;
  --rand: #8A8378;
  --linie: #A39C90;
  --fehler: #B42318;
  --ok: #1F6B4A;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Source Sans 3", "Public Sans", system-ui, sans-serif;

  --breite: 1200px;
  --gutter: 24px;
  --abschnitt: 80px;
}
@media (min-width: 700px) { :root { --gutter: 48px; --abschnitt: 112px; } }
@media (min-width: 1100px) { :root { --abschnitt: 152px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}
@media (min-width: 700px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--tinte); outline-offset: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--papier); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.innen { width: min(100% - 2 * var(--gutter), var(--breite)); margin-inline: auto; }

/* ---------- Typografie ---------- */
h1, h2, h3 { text-wrap: balance; font-family: var(--serif); font-weight: 300; margin: 0; font-variation-settings: "opsz" 144; }
h1 { font-size: clamp(42px, 5vw + 12px, 72px); line-height: 1.04; letter-spacing: -0.015em; }
h2 { font-size: clamp(31px, 2.4vw + 14px, 44px); line-height: 1.1; letter-spacing: -0.01em; }
h3 { font-size: clamp(23px, 0.5vw + 19px, 26px); line-height: 1.2; font-weight: 400; font-variation-settings: "opsz" 48; }
p { margin: 0; }
.dach { font-size: 15px; line-height: 1.5; color: var(--grau); letter-spacing: 0.01em; margin-bottom: 20px; }
.lead { font-size: clamp(19px, 0.4vw + 17px, 21px); line-height: 1.55; max-width: 32em; }
.text { max-width: 34em; }
.klein { font-size: 15px; line-height: 1.5; color: var(--grau); }
.stapel > * + * { margin-top: 24px; }

/* ---------- Knopf und Link ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 34px;
  background: var(--tinte); color: var(--papier);
  font: 600 17px/1 var(--sans); letter-spacing: 0.01em; text-decoration: none;
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%);
  border: 0; cursor: pointer;
}
.knopf:hover { background: #3a3126; }
.knopf-wrap { display: inline-block; }
.knopf:focus-visible { outline: none; }
.knopf-wrap:focus-within { outline: 2px solid var(--tinte); outline-offset: 4px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.link {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.link:hover { text-decoration-thickness: 2px; }


/* ---------- Kopfzeile ---------- */
.kopf { border-bottom: 1px solid transparent; }
.kopf .innen { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.marke { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.marke img { width: 38px; height: 38px; }
.marke b { font: 400 23px/1 var(--serif); font-variation-settings: "opsz" 48; letter-spacing: -0.005em; }
.marke small { font-size: 14px; color: var(--grau); margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.nav ul a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; padding: 8px 0; }
.nav ul a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.nav ul a { position: relative; }
.nav ul a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.nav .knopf { min-height: 46px; padding: 0 28px; font-size: 16px; }
.menue { display: none; }

@media (max-width: 860px) {
  .menue {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px;
    background: none; border: 0; font: 600 17px/1 var(--sans); color: var(--tinte); cursor: pointer;
  }
  .menue i { width: 18px; height: 10px; border-block: 1.5px solid var(--tinte); }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 84px; z-index: 5;
         background: var(--papier); border-block: 1px solid var(--linie); padding: 16px var(--gutter) 28px;
         flex-direction: column; align-items: flex-start; gap: 20px; }
  .kopf { position: relative; }
  .kopf.offen .nav { display: flex; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav ul a { font-size: 20px; padding: 10px 0; }
}
@media (max-width: 400px) { .marke small { display: none; } }

/* ---------- Abschnitte ---------- */
main > section { padding-block: var(--abschnitt); }
main > section:first-child { padding-top: clamp(40px, 6vw, 88px); }
.raster { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .raster { grid-template-columns: repeat(12, 1fr); column-gap: 32px; }
  .raster > .spalte-text { grid-column: 1 / span 5; }
  .raster > .spalte-zelle { grid-column: 7 / span 6; justify-self: end; width: 100%; max-width: 540px; }
  .raster.spiegel > .spalte-text { grid-column: 8 / span 5; grid-row: 1; }
  .raster.spiegel > .spalte-zelle { grid-column: 1 / span 6; grid-row: 1; justify-self: start; }
}
.kopfzeile-abschnitt { max-width: 760px; margin-bottom: 56px; }
.kopfzeile-abschnitt > * + * { margin-top: 20px; }

/* ---------- Die Zelle ---------- */
.zelle { position: relative; margin: 0; aspect-ratio: 173.2 / 200; width: 100%; }
.zelle--quer { aspect-ratio: 200 / 173.2; }
.zelle svg.umriss { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.zelle svg.umriss polygon { fill: none; stroke: var(--linie); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.zelle .band { position: absolute; left: 0; width: 100%; top: 25%; height: 50%; overflow: hidden; }
.zelle--quer .band { top: 0; height: 100%; left: 25%; width: 50%; }
.zelle .band img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.zelle--quer .band img { object-position: center top; }
.zelle .band img + img { position: absolute; inset: 0; }
.zelle .inhalt { position: absolute; left: 12%; right: 12%; top: 25%; bottom: 25%; display: grid; place-items: center; text-align: center; z-index: 1; }

/* Das Segment: exakt die Logo-Form. Seine Spitze (im Logo der Mittelpunkt der Wabe) berührt von außen
   eine Ecke der Zelle und zeigt auf sie – „hier sind Sie“. Gezeichnet für Ecke 2 (rechts unten),
   gedreht um den Zellmittelpunkt; data-ecke = 0 (oben) … 5 im Uhrzeigersinn. */
.zelle svg.umriss polygon.segment {
  fill: var(--tinte); stroke: var(--tinte); stroke-width: 1.6; stroke-linejoin: round; vector-effect: none;
  transform-box: view-box; transform-origin: 0 0;
  transform: rotate(var(--dreh, 0deg));
  transition: transform 320ms cubic-bezier(.3,.7,.2,1);
}
.zelle[data-ecke="0"] { --dreh: -120deg; }
.zelle[data-ecke="1"] { --dreh: -60deg; }
.zelle[data-ecke="2"] { --dreh: 0deg; }
.zelle[data-ecke="3"] { --dreh: 60deg; }
.zelle[data-ecke="4"] { --dreh: 120deg; }
.zelle[data-ecke="5"] { --dreh: 180deg; }
/* Querliegende Zellen: Segment ist im HTML direkt an seiner Ecke gezeichnet (senkrecht auf die Ecke zeigend) */
.zelle--quer svg.umriss polygon.segment { transform: none; }

/* Ziffern an den Ecken (nur Ablauf) */
.zelle .ziffer { position: absolute; z-index: 3; font: 300 22px/1 var(--serif); color: var(--grau); transform: translate(-50%, -50%); }
.zelle .ziffer[data-an="0"] { left: 50%; top: 8%; }
.zelle .ziffer[data-an="1"] { left: 88%; top: 29%; }
.zelle .ziffer[data-an="2"] { left: 88%; top: 71%; }
.zelle .ziffer[data-an="3"] { left: 50%; top: 92%; }
.zelle .ziffer.aktiv { color: var(--tinte); }

/* Startzelle zeichnet sich beim Laden */
.zelle--start svg.umriss { opacity: 0; transform: scale(.96); animation: zeichnen 900ms cubic-bezier(.2,.7,.2,1) 150ms forwards; }
.zelle--start .segment { opacity: 0; animation: setzen 300ms ease 1000ms forwards; }
@keyframes zeichnen { to { opacity: 1; transform: none; } }
@keyframes setzen { to { opacity: 1; } }

/* ---------- Startseite ---------- */
.einstieg h1 { max-width: 11em; }
@media (min-width: 900px) {
  .start-oben { grid-column: 1 / -1; }
  .start-oben h1 { max-width: none; }
  .einstieg .raster > .spalte-text.start-unten { grid-column: 1 / span 5; align-self: center; }
  .einstieg .raster > .spalte-zelle.start-zelle { grid-column: 7 / span 6; max-width: 560px; }
}
.start-unten .lead { margin-top: 0; }
h2 .unter { display: block; font-size: 0.62em; line-height: 1.25; margin-top: 8px; }
.einstieg .stapel > .lead { margin-top: 28px; }
.einstieg .cta { margin-top: 40px; }
.einstieg .cta .klein { flex-basis: 100%; }
@media (min-width: 520px) { .einstieg .cta .klein { flex-basis: auto; } }
.zweit { margin-top: 20px; }

.waehler { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.waehler li { border-bottom: 1px solid var(--linie); padding: 22px 0; position: relative; }
.waehler button {
  all: unset; cursor: pointer; display: block; font: 400 clamp(22px, 0.5vw + 19px, 25px)/1.2 var(--serif);
  font-variation-settings: "opsz" 48;
}
.waehler button:focus-visible { outline: 2px solid var(--tinte); outline-offset: 6px; }
.waehler li p { margin-top: 8px; color: var(--grau); font-size: 17px; max-width: 30em; }
.waehler li[data-aktiv] p { color: var(--tinte); }
.waehler li::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--tinte); transform: scaleX(0); transform-origin: left; transition: transform 240ms ease; }
.waehler li[data-aktiv]::before { transform: none; }
.zelle .band img.wahl { opacity: 0; transition: opacity 200ms ease; }
.zelle .band img.wahl[data-aktiv] { opacity: 1; }
.leistungen-start .weiter { margin-top: 32px; }
@media (max-width: 899px) {
  .leistungen-start .spalte-zelle { order: -1; max-width: 460px; }
}

.ablauf-liste { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.ablauf-liste li { display: grid; grid-template-columns: 44px 1fr; gap: 0 12px; padding: 30px 0; border-top: 1px solid var(--linie); }
.ablauf-liste li:last-child { border-bottom: 1px solid var(--linie); }
.ablauf-liste li::before { counter-increment: s; content: counter(s); font: 300 30px/1 var(--serif); color: var(--grau); padding-top: 2px; }
.ablauf-liste li.aktiv::before { color: var(--tinte); }
.ablauf-liste h3 { margin-bottom: 8px; }
.ablauf .cta { margin-top: 48px; }
.ablauf .spalte-zelle .zelle { max-width: 380px; margin-inline: auto; }
@media (min-width: 900px) {
  .ablauf .raster { align-items: start; }
  .ablauf .spalte-zelle { position: sticky; top: 18vh; padding: 40px; }
}
@media (max-width: 899px) {
  .ablauf .spalte-zelle { display: none; }
}

.kontaktliste { list-style: none; margin-inline: 0; margin-bottom: 0; padding: 0; border-top: 1px solid var(--linie); }
.kontaktliste li { padding: 14px 0; border-bottom: 1px solid var(--linie); }
.kontaktliste a { font-weight: 600; text-decoration: none; }
.kontaktliste a:hover { text-decoration: underline; text-underline-offset: 5px; }
.person .spalte-zelle { max-width: 440px; }

/* ---------- Leistungen-Seite ---------- */
.inhaltszelle ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.inhaltszelle a { font: 400 clamp(17px, 1.2vw + 10px, 22px)/1.3 var(--serif); font-variation-settings: "opsz" 48; text-decoration: none; }
.inhaltszelle a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.einstieg-klein .spalte-zelle { max-width: 420px; }

.punkte { list-style: none; margin-inline: 0; margin-bottom: 0; padding: 0; }
.punkte li { padding: 10px 0 10px 26px; position: relative; border-top: 1px solid #E4E0D8; }
.punkte li::before { content: ""; position: absolute; left: 0; top: 24px; width: 12px; height: 1px; background: var(--tinte); }
.formen { display: grid; gap: 20px; }
@media (min-width: 600px) { .formen { grid-template-columns: 1fr 1fr; gap: 28px; } }
.formen h3 { font-size: 21px; margin-bottom: 6px; }

.beibild { margin: 0; border: 1px solid var(--linie); max-width: 340px; }
.beibild img { width: 100%; height: auto; }
.beibild.hoch { max-width: 220px; }

.kern .zelle { max-width: 520px; margin-inline: auto; }
.kern ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 4px 28px; justify-content: center; text-align: left; font-size: 16px; }
@media (min-width: 480px) { .kern ul { grid-template-columns: repeat(3, auto); font-size: 17px; gap: 6px 32px; } }
.kern-text { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.kern-text > * + * { margin-top: 20px; }

@media (max-width: 899px) {
  .einstieg-klein .spalte-zelle { width: 100%; max-width: 360px; justify-self: start; }
  .einstieg .start-zelle { max-width: 520px; }
}
.inhaltszelle .inhalt { left: 10%; right: 10%; }
.inhaltszelle li { line-height: 1.25; }

/* Schluss-Zelle: Frage, Satz und Knopf stehen IN der Zelle */
.schluss .innen { display: grid; justify-items: center; }
.zelle--schluss { max-width: 540px; container-type: inline-size; }
.zelle--schluss .inhalt { left: 13%; right: 13%; top: 19%; bottom: 19%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0; }
.zelle--schluss h2 { font-size: clamp(25px, 7.4cqw, 42px); }
.zelle--schluss p { font-size: clamp(16px, 3.9cqw, 19px); line-height: 1.5; margin-top: 16px; max-width: 24em; }
.zelle--schluss .cta { margin-top: 26px; justify-content: center; }
.zelle--schluss .kontaktliste { margin-top: 18px; width: 100%; max-width: 300px; }
.zelle--schluss .kontaktliste li { padding: 10px 0; }
.zelle--schluss .kontaktliste a { font-size: clamp(17px, 4.2cqw, 20px); }
@media (max-width: 599px) {
  .schluss .innen { width: calc(100% - 6px); }
  .zelle--schluss .inhalt { left: 11%; right: 11%; top: 17%; bottom: 17%; }
}

/* ---------- Referenzen ---------- */
.gruppe { padding-bottom: 0 !important; }
.gruppe h2 { max-width: 760px; }
.projekt .meta { font-size: 15px; color: var(--grau); }
.projekt .meta span { display: block; }
.projekt h2 + dl { margin-top: 36px; }
.projekt dl { margin-inline: 0; margin-bottom: 0; display: grid; gap: 14px; }
.projekt dt { font-size: 15px; font-weight: 600; color: var(--grau); }
.projekt dd { margin: 2px 0 0; max-width: 34em; }

/* ---------- Erstgespräch ---------- */
.zweispaltig { display: grid; gap: 32px; }
@media (min-width: 900px) { .zweispaltig { grid-template-columns: 5fr 7fr; column-gap: 32px; } }
.hinweis { margin-top: 20px; color: var(--grau); }

.formular { display: grid; gap: 32px; max-width: 760px; }
@media (min-width: 700px) { .formular .zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; } }
.feld label, .feld legend { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.feld .opt { font-weight: 400; color: var(--grau); }
.feld input[type="text"], .feld input[type="email"], .feld input[type="tel"], .feld textarea {
  width: 100%; font: 400 18px/1.4 var(--sans); color: var(--tinte); background: transparent;
  border: 0; border-bottom: 1px solid var(--rand); border-radius: 0; padding: 10px 0; -webkit-appearance: none;
}
.feld textarea { min-height: 120px; resize: vertical; border: 1px solid var(--rand); padding: 12px; }
.feld input:focus-visible, .feld textarea:focus-visible { outline: 2px solid var(--tinte); outline-offset: 4px; border-bottom-color: var(--tinte); }
.feld .tipp { font-size: 15px; color: var(--grau); margin-top: 6px; }
fieldset.feld { border: 0; margin: 0; padding: 0; min-width: 0; }
.wahl-reihe { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 4px; }
.wahl-reihe label { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 400; margin: 0; cursor: pointer; padding: 4px 0; }
.wahl-reihe input { appearance: none; -webkit-appearance: none; margin: 0; width: 18px; height: 20px; flex: none; background: var(--rand); cursor: pointer;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); position: relative; }
.wahl-reihe input::after { content: ""; position: absolute; inset: 1.5px; background: var(--papier); clip-path: inherit; }
.wahl-reihe input:checked::after { background: var(--tinte); inset: 1.5px; }
.wahl-reihe input:focus-visible { outline: none; }
.wahl-reihe label:has(input:focus-visible) { outline: 2px solid var(--tinte); outline-offset: 4px; }
.absenden { display: grid; gap: 16px; justify-items: start; }
.status { font-weight: 600; min-height: 1.6em; }
.status.ok { color: var(--ok); }
.status.fehler { color: var(--fehler); }

/* ---------- Fußzeile ---------- */
.fuss { border-top: 1px solid var(--linie); padding: 48px 0 56px; font-size: 15px; color: var(--grau); }
.fuss .innen { display: grid; gap: 28px; }
@media (min-width: 800px) { .fuss .innen { grid-template-columns: 1fr 1fr; } }
.fuss strong { color: var(--tinte); font-weight: 600; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
@media (min-width: 800px) { .fuss ul { justify-content: flex-end; } }
.fuss a { color: var(--tinte); text-underline-offset: 4px; }
.fuss p + p { margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .zelle--start svg.umriss { opacity: 1; transform: none; }
  .zelle--start .segment { opacity: 1; }
}

/* Handy: Zellen etwas eingerückt, damit das Segment an seitlichen Ecken nicht am Bildschirmrand anstößt */
@media (max-width: 899px) {
  .spalte-zelle > .zelle, .kern .zelle { width: calc(100% - 28px); margin-inline: auto; }
}

/* ---------- Runde 3: Porträt und „So fangen wir an“ ---------- */
/* Porträt 4:5 als größtes Rechteck im Inneren der spitzen Zelle (Ecken frei vom Umriss), ohne Zuschnitt */
.person .zelle .portraet { position: absolute; left: 19%; width: 62%; top: 16.45%; height: 67.1%; overflow: hidden; }
.person .zelle .portraet img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 20%; }
/* Einstieg in ein Projekt: kein Kasten mit Fläche, sondern die Tintenlinie der „gewählten“ Stelle */
.anfang { border-top: 2px solid var(--tinte); padding-top: 18px; max-width: 34em; }
.anfang h3 { font-size: 21px; margin-bottom: 8px; }
