/* coniuncta.tech Basisseite (22.10.2026). Poppins wie Shop und Dienste, Bordeaux nur für Knöpfe und Haken, Papierton als Fläche */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/poppins-latin-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-latin-400.woff2") format("woff2"); }

:root {
  --tinte: #1f1a17;
  --leise: rgba(31, 26, 23, 0.72);
  --linie: rgba(31, 26, 23, 0.14);
  --papier: #f6f3ee;
  --bordeaux: #861a22;
  --bordeaux-dunkel: #6c141b;
  --rand: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #ffffff; color: var(--tinte); font: 300 17px/1.6 "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-weight: 300; line-height: 1.2; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.breite { max-width: 1200px; margin: 0 auto; padding: 0 var(--rand); }
.label { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--leise); margin-bottom: 14px; }

/* Kopf */
.kopf { border-bottom: 1px solid var(--linie); background: #ffffff; position: sticky; top: 0; z-index: 10; }
.kopf__innen { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.kopf__logo img { width: 208px; }
.kopf__nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.kopf__nav a { text-decoration: none; }
.kopf__nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.kopf__sprache { padding: 4px 12px; border: 1px solid var(--linie); border-radius: 999px; }

/* Einstieg */
.held { padding-top: 72px; padding-bottom: 32px; }
.held h1 { font-size: clamp(32px, 4.6vw, 52px); max-width: 920px; margin-bottom: 22px; }
.held__lead { font-size: 18px; color: var(--leise); max-width: 720px; }

/* Strukturbild: coniuncta.com als Mutter, darunter Sortiment und coniuncta.tech mit den Diensten (Inline-SVG) */
.baum__intro { margin-top: 36px; max-width: 760px; font-size: 18px; }
.baum { margin: 28px 0 0; max-width: 1100px; }
.baum svg { display: block; width: 100%; height: auto; overflow: visible; }
.baum .baum__schmal { display: none; }  /* .baum svg ist spezifischer als .baum__schmal allein */
.baum text { font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 300; fill: var(--tinte); }
.baum .b-domain { font-size: 13px; letter-spacing: 0.04em; fill: var(--bordeaux); }
.baum .b-titel { font-size: 20px; }
.baum .b-klein { font-size: 13px; fill: var(--leise); }
.baum .b-name { font-size: 16px; letter-spacing: 0.06em; }
.baum .b-bald { font-size: 12.5px; letter-spacing: 0.04em; fill: var(--leise); }
.baum .b-flaeche { fill: var(--bordeaux); }
.baum .b-mutter text { fill: #ffffff; }
.baum .b-mutter .b-titel { font-size: 22px; letter-spacing: 0.04em; }
.baum .b-mutter .b-domain, .baum .b-mutter .b-klein { fill: rgba(255, 255, 255, 0.82); }
.baum .b-box { fill: #ffffff; stroke: rgba(31, 26, 23, 0.22); stroke-width: 1; }
.baum .b-box--hier { fill: var(--papier); stroke: var(--papier); }
.baum .b-box--bald { stroke: rgba(31, 26, 23, 0.32); stroke-dasharray: 5 5; }
.baum .b-linie { fill: none; stroke: var(--bordeaux); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* Klickbare Kacheln (Adrian: „sonst ist es uncool“): Rahmen Bordeaux bei Hover und Tastatur-Fokus */
.baum .b-link { cursor: pointer; }
.baum .b-link:focus { outline: none; }
.baum .b-link rect { transition: fill 0.2s ease, stroke 0.2s ease; }
.baum .b-link:hover .b-box, .baum .b-link:focus-visible .b-box { stroke: var(--bordeaux); }
.baum .b-link:hover .b-box:not(.b-box--hier), .baum .b-link:focus-visible .b-box:not(.b-box--hier) { fill: #fcfaf7; }
.baum .b-link:focus-visible .b-box { stroke-width: 2; }
.baum .b-link:hover .b-flaeche, .baum .b-link:focus-visible .b-flaeche { fill: var(--bordeaux-dunkel); }
.baum .b-link:focus-visible .b-flaeche { stroke: var(--tinte); stroke-width: 2; }
.baum .b-pfeil { font-size: 14px; fill: var(--bordeaux); }
.baum .b-mutter .b-pfeil { fill: rgba(255, 255, 255, 0.85); }

/* Bewegung wie in der Sicht von COR: Kanten zeichnen sich, Kacheln tauchen nacheinander auf, die Mutter pulsiert,
   Funken fließen auf den Kanten (SMIL im SVG). Bei reduzierter Bewegung steht alles still (unten). */
.baum .b-kante { stroke-dasharray: 1; stroke-dashoffset: 1; animation: b-zeichnen 0.8s ease-out forwards; }
.baum .b-kante--1 { animation-delay: 0.3s; }
.baum .b-kante--2 { animation-delay: 0.8s; }
.baum .b-knoten { animation: b-auftauchen 0.7s ease-out both; }
.baum .b-a1 { animation-delay: 0.35s; }
.baum .b-a2 { animation-delay: 0.45s; }
.baum .b-a3 { animation-delay: 0.85s; }
.baum .b-a4 { animation-delay: 0.93s; }
.baum .b-a5 { animation-delay: 1.01s; }
.baum .b-a6 { animation-delay: 1.09s; }
.baum .b-ringe, .baum .b-funken { pointer-events: none; }
/* Ein Ring je 12-s-Takt (wie ZYKLUS in build.py): breitet sich in gut 3 s aus, dann Ruhe; danach läuft die Welle */
.baum .b-puls { fill: none; stroke: var(--bordeaux); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: b-puls 12s ease-out 1.4s infinite; }
.baum .b-puls--schmal { animation-name: b-puls-schmal; }
.baum .b-funke__kern { fill: var(--bordeaux); }
.baum .b-funke__hof { fill: var(--bordeaux); opacity: 0.2; }
@keyframes b-zeichnen { to { stroke-dashoffset: 0; } }
@keyframes b-auftauchen { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes b-puls { 0% { opacity: 0.4; transform: scale(1); } 28% { opacity: 0; transform: scale(1.1, 1.32); } 100% { opacity: 0; transform: scale(1.1, 1.32); } }
@keyframes b-puls-schmal { 0% { opacity: 0.4; transform: scale(1); } 28% { opacity: 0; transform: scale(1.03, 1.25); } 100% { opacity: 0; transform: scale(1.03, 1.25); } }
@media (prefers-reduced-motion: reduce) {
  .baum .b-funken, .baum .b-ringe { display: none; }
  .baum .b-kante { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .baum .b-knoten { animation: none; }
}
.baum__fuss { margin-top: 18px; }

/* Abschnitte */
.abschnitt { padding-top: 56px; padding-bottom: 40px; scroll-margin-top: 90px; }
.abschnitt h2, .band h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px; }
.abschnitt__text { color: var(--leise); max-width: 680px; }
.abschnitt__cta { margin-top: 28px; }

/* Karten: verfügbare Dienste */
.karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.karte { display: flex; flex-direction: column; background: var(--papier); padding: 32px 28px 28px; }
.karte__name { font-size: 26px; letter-spacing: 0.06em; margin-bottom: 4px; }
.karte__claim { font-size: 17px; margin-bottom: 18px; -webkit-hyphens: manual; hyphens: manual; }
.karte__text { font-size: 16px; color: var(--leise); }
.haken { margin-top: 16px; flex: 1 1 auto; }
.haken li { position: relative; padding-left: 26px; margin-top: 8px; font-size: 16px; line-height: 1.5; }
.haken li::before { content: ""; position: absolute; left: 3px; top: 0.55em; width: 10px; height: 5px; border-left: 1.5px solid var(--bordeaux); border-bottom: 1.5px solid var(--bordeaux); transform: rotate(-45deg); }
.karte__fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--linie); }

/* Knöpfe und Links */
.knopf { display: inline-block; background: var(--bordeaux); color: #ffffff; text-decoration: none; font-weight: 400; font-size: 15px; padding: 11px 22px; border-radius: 999px; transition: background-color 0.2s ease; }
.knopf:hover { background: var(--bordeaux-dunkel); }
.knopf--hell { background: transparent; color: var(--bordeaux); box-shadow: inset 0 0 0 1px var(--bordeaux); }
.knopf--hell:hover { background: rgba(134, 26, 34, 0.06); }
.link { font-size: 15px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.link:hover { color: var(--bordeaux); }

/* Zeilen: in Vorbereitung */
.zeilen { margin-top: 28px; border-top: 1px solid var(--linie); }
.zeile { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 4px 40px; padding: 24px 0; border-bottom: 1px solid var(--linie); }
.zeile__name { font-size: 20px; letter-spacing: 0.06em; grid-column: 1; }
.zeile__claim { font-size: 15px; color: var(--leise); grid-column: 1; }
.zeile__text { grid-column: 2; grid-row: 1 / span 2; font-size: 16px; color: var(--leise); }

/* Band: über uns */
.band { background: var(--papier); margin-top: 48px; padding: 64px 0; scroll-margin-top: 76px; }
.band__innen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 64px; align-items: start; }
.band__innen p { color: var(--leise); }
.linkliste { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* Rechtsseiten */
.recht { max-width: 800px; padding-top: 56px; padding-bottom: 64px; }
.recht h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 24px; }
.recht h2 { font-size: 19px; font-weight: 400; margin: 28px 0 8px; }
.recht p { color: var(--leise); }
.recht p + p { margin-top: 10px; }

/* Fuß */
.fuss { border-top: 1px solid var(--linie); margin-top: 0; padding: 28px 0 36px; font-size: 14px; color: var(--leise); }
.fuss__innen { display: flex; flex-direction: column; gap: 6px; }
.fuss a { text-decoration: none; border-bottom: 1px solid var(--linie); }
.fuss a:hover { color: var(--bordeaux); border-color: currentColor; }

@media (max-width: 899px) {
  .karten { grid-template-columns: 1fr; }
  .band__innen { grid-template-columns: 1fr; }
  /* Unter 900 px würde die breite Grafik die Beschriftung unter 10 px verkleinern: senkrechter Baum */
  .baum .baum__breit { display: none; }
  .baum .baum__schmal { display: block; max-width: 420px; }
}
@media (max-width: 699px) {
  :root { --rand: 16px; }
  body { font-size: 16px; }
  .kopf__innen { min-height: 64px; }
  .kopf__logo img { width: 160px; }
  .kopf__nav a:not(.kopf__sprache) { display: none; }
  .held { padding-top: 44px; }
  .held__lead { font-size: 17px; }
  .baum__intro { margin-top: 28px; font-size: 17px; }
  .karte { padding: 26px 20px 22px; }
  .zeile { grid-template-columns: 1fr; }
  .zeile__text { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .band { padding: 48px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
