/* KT Fliesen · Wurzel der Vorschau: Auswahlseite + Rechtsseiten (gebaut aus entwuerfe/_wurzel/seiten.mjs).
   Eigenes, ruhiges System – bewusst keiner der drei Entwürfe (Atelier: Geist · Musterzimmer: Figtree · Fliesenindex: eigene Schrift).
   Schrift: Inter variabel mit optischer Größe (OsAI-Hausschrift – die Seite spricht als OsAI; große Zeilen setzen sich als
   Inter Display, Fließtext als Text-Schnitt). Satzschreibung überall, keine Versalien-Etiketten, keine Mono-Schrift.
   Farben: warmes Keramikweiß, Graphit, Fugengrau; KT-Orange nur als kleine Fläche (Fliesen-Quadrat), nie als Textfarbe auf Hell.
   Rundungen: 8 px (Knöpfe, Felder) und 14 px (Bühnen, Kästen). Schatten nur für die Vorschaubilder (echte Ebene). */
@font-face {
  font-family: 'Inter';
  src: url('assets/wurzel/fonts/inter-latin-opsz-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --grund: #f5f3ef;          /* Keramikweiß */
  --grund-2: #ebe7e0;        /* Fugenton hell: Felder, Hover */
  --hell: #fbfaf8;           /* Kästen */
  --text: #1d1c1a;           /* Graphit · 16,0:1 auf Grund */
  --text-2: #57534c;         /* Nebentext · 6,7:1 auf Grund */
  --linie: #dcd7ce;          /* Haarlinien */
  --fuge: #cdc6ba;           /* Fuge im Musterbrett */
  --orange: #f08119;         /* KT-Orange: nur Flächen, Text darauf Graphit (7,6:1) */
  --orange-zart: #fbeadb;
  --platzhalter: #f6e2cb;    /* [Angaben folgen] */
  --platzhalter-text: #5a3a12;
  --dunkel: #1d1c1a;
  --dunkel-text: #f2efea;
  --dunkel-text-2: #aea89d;  /* 7,7:1 auf Dunkel */
  --dunkel-linie: rgba(242, 239, 234, .16);
  --rand: clamp(16px, 4.4vw, 72px);
  --breite: 1440px;
  --r: 8px;
  --r-gross: 14px;
  --weich: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 400 17px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-optical-sizing: auto;
  font-feature-settings: 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.05; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 2px; }
.koennen :focus-visible { outline-color: var(--dunkel-text); }

.sprung { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; background: var(--text); color: var(--grund); border-radius: var(--r); text-decoration: none; }
.sprung:focus { top: 12px; }

.pfeil { flex: none; width: 20px; height: 20px; transition: transform .3s var(--weich); }

/* ── Kopfleiste ─────────────────────────────────────────────── */
.leiste {
  max-width: var(--breite); margin: 0 auto; padding: 20px var(--rand);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.marke { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.marke img { width: 92px; height: 24px; }
.marke span { font-size: 16px; font-weight: 500; letter-spacing: -.01em; padding-left: 12px; border-left: 1px solid var(--linie); line-height: 1.2; }
.leiste-info { margin: 0; font-size: 14px; color: var(--text-2); }
.leiste-zurueck { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; }
.leiste-zurueck:hover .pfeil { transform: translateX(-4px); }
.leiste-zurueck:hover span { text-decoration: underline; }

/* ── Start ──────────────────────────────────────────────────── */
.start {
  max-width: var(--breite); margin: 0 auto;
  padding: clamp(28px, 4.5vw, 72px) var(--rand) 0;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: center;
}
.start-gruss { font-size: 18px; font-weight: 500; color: var(--text-2); margin-bottom: 20px; }
.start h1 { font-size: clamp(42px, 6.3vw, 96px); letter-spacing: -.04em; line-height: .98; max-width: 11ch; margin-bottom: 32px; }
.start-lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: #3b3833; max-width: 54ch; margin-bottom: 28px; }
.start-klein { font-size: 15px; color: var(--text-2); max-width: 62ch; margin: 24px 0 0; }

.wege { border-top: 1px solid var(--linie); max-width: 640px; }
.wege li { border-bottom: 1px solid var(--linie); }
.wege a {
  display: grid; grid-template-columns: 44px auto minmax(0, 1fr) auto; align-items: center; column-gap: 16px;
  min-height: 64px; padding: 10px 4px; text-decoration: none; transition: background .25s;
}
.wege-nr {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 3px;
  background: var(--orange); color: var(--text); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.wege-name { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.wege-art { color: var(--text-2); }
.wege a:hover { background: var(--grund-2); }
.wege a:hover .pfeil { transform: translateY(3px); }

/* Musterbrett: neun echte Oberflächen mit Fuge – sie legen sich beim Laden der Reihe nach (einziger Bewegungs-Moment im Kopf) */
.brett { margin: 0; }
.brett-raster {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 3px;
  background: var(--fuge); border-radius: 4px;
}
.brett-f { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--grund-2); animation: legen .8s var(--weich) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
.brett-f--gross { grid-column: span 2; grid-row: span 2; }
.brett-f img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--weich); }
.brett-f:hover img { transform: scale(1.05); }
.brett-name {
  position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px);
  padding: 3px 7px; border-radius: 3px; background: rgba(29, 28, 26, .82); color: #fff; font-size: 12px; line-height: 1.35;
  opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; pointer-events: none;
}
.brett-f:hover .brett-name { opacity: 1; transform: none; }
.brett figcaption { margin-top: 12px; font-size: 14px; color: var(--text-2); }
@keyframes legen {
  from { opacity: 0; transform: translateY(-12px) scale(1.035); }
  to { opacity: 1; transform: none; }
}

/* ── Die drei Entwürfe ──────────────────────────────────────── */
.entwuerfe { max-width: var(--breite); margin: clamp(64px, 9vw, 136px) auto 0; padding: 0 var(--rand); }
.e {
  --buehne: #e2dcd1; --akzent: #6e6237; --knopf-hover: #6e6237; --knopf-hover-text: #fff;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 88px); align-items: center;
  padding: clamp(40px, 6vw, 88px) 0; border-top: 1px solid var(--linie);
}
.e:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.e:nth-child(even) .e-buehne { order: 2; }
.e--atelier { --buehne: #e2dcd1; --akzent: #6e6237; --knopf-hover: #6e6237; --knopf-hover-text: #fff; }
.e--musterzimmer { --buehne: #2c4452; --akzent: #a8834a; --knopf-hover: #2c4452; --knopf-hover-text: #fff; }
.e--fliesenindex { --buehne: #d8d4cc; --akzent: #f08119; --knopf-hover: #f08119; --knopf-hover-text: #1d1c1a; }

.e-buehne {
  position: relative; display: block; border-radius: var(--r-gross); background: var(--buehne);
  padding: clamp(16px, 2.4vw, 36px) clamp(16px, 2.4vw, 36px) clamp(48px, 6vw, 84px);
}
.e-d {
  width: 86%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 28px 48px -30px rgba(0, 0, 0, .5);
  transition: transform .6s var(--weich);
}
.e-h {
  position: absolute; right: clamp(16px, 2.4vw, 36px); bottom: clamp(16px, 2vw, 28px); width: 23%;
  aspect-ratio: 390 / 844; object-fit: cover; object-position: top;
  border: 5px solid #121211; border-radius: 22px; background: #121211;
  box-shadow: 0 28px 40px -26px rgba(0, 0, 0, .55);
  transition: transform .6s var(--weich);
}
.e-buehne:hover .e-d { transform: translateY(-6px); }
.e-buehne:hover .e-h { transform: translateY(-14px); }

.e-nr { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--text-2); margin-bottom: 14px; }
.e-nr::before { content: ''; width: 10px; height: 10px; border-radius: 1px; background: var(--akzent); flex: none; }
.e-text h2 { font-size: clamp(40px, 4.8vw, 72px); letter-spacing: -.04em; line-height: 1; margin-bottom: 20px; }
.e-idee { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; max-width: 46ch; margin-bottom: 24px; }
.e-staerken { border-top: 1px solid var(--linie); margin-bottom: 28px; max-width: 52ch; }
.e-staerken li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--linie); font-size: 15.5px; line-height: 1.5; color: var(--text-2); }
.e-staerken li::before { content: ''; position: absolute; left: 2px; top: 19px; width: 8px; height: 8px; border: 1.5px solid var(--akzent); border-radius: 1px; }

.knopf {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 22px 0 24px;
  background: var(--text); color: var(--grund); border-radius: var(--r);
  font-size: 16px; font-weight: 600; letter-spacing: -.01em; text-decoration: none;
  transition: background .25s, color .25s;
}
.knopf:hover { background: var(--knopf-hover); color: var(--knopf-hover-text); }
.knopf:hover .pfeil { transform: translateX(4px); }

/* ── Was alle drei können (dunkles Band) ────────────────────── */
.koennen { margin-top: clamp(48px, 7vw, 104px); background: var(--dunkel); color: var(--dunkel-text); }
.koennen-innen { max-width: var(--breite); margin: 0 auto; padding: clamp(64px, 9vw, 128px) var(--rand); }
.koennen-kopf, .offen-kopf { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 88px); align-items: end; }
.koennen-kopf h2, .offen-kopf h2 { font-size: clamp(34px, 4.4vw, 64px); letter-spacing: -.035em; }
.koennen-kopf p { color: var(--dunkel-text-2); margin: 0; max-width: 44ch; }
.koennen-gross { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 88px); align-items: center; margin-top: clamp(40px, 5vw, 72px); }
.koennen-bild { margin: 0; }
.koennen-bild img { width: 100%; aspect-ratio: 1280 / 859; object-fit: cover; border-radius: var(--r-gross); }
.koennen-bild figcaption { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--dunkel-text-2); }
.etikett-ki { padding: 2px 8px; border: 1px solid var(--dunkel-linie); border-radius: 4px; font-size: 12.5px; font-weight: 500; color: var(--dunkel-text); white-space: nowrap; }
.koennen-gross-text h3 { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.03em; margin-bottom: 16px; }
.koennen-gross-text p { color: var(--dunkel-text-2); max-width: 46ch; }
.koennen-liste {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(20px, 2.6vw, 40px);
  margin-top: clamp(48px, 6vw, 88px);
}
.koennen-liste li { padding: 22px 0 10px; border-top: 1px solid var(--dunkel-linie); }
.koennen-liste h3 { font-size: 18px; letter-spacing: -.015em; line-height: 1.3; margin-bottom: 8px; }
.koennen-liste p { font-size: 15.5px; line-height: 1.55; color: var(--dunkel-text-2); }

/* ── Was noch von Ihnen kommt ───────────────────────────────── */
.offen { max-width: var(--breite); margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--rand) clamp(48px, 6vw, 88px); }
.offen-kopf p { color: var(--text-2); margin: 0; max-width: 46ch; }
.offen-gruppen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(32px, 5vw, 88px); margin-top: clamp(40px, 5vw, 72px); }
.offen-gruppe h3 { font-size: 20px; letter-spacing: -.02em; padding-bottom: 12px; border-bottom: 1.5px solid var(--text); }
.offen-gruppe li { display: grid; grid-template-columns: 36px minmax(0, 1fr); padding: 16px 0; border-bottom: 1px solid var(--linie); }
.offen-nr { font-size: 14px; font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; padding-top: 2px; }
.offen-gruppe li p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.offen-gruppe li .offen-titel { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 4px; letter-spacing: -.01em; }

/* ── Gut zu wissen ──────────────────────────────────────────── */
.gut { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand) clamp(72px, 9vw, 128px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gut h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 14px; }
.gut-demo, .gut-feedback { border-radius: var(--r-gross); padding: clamp(24px, 3vw, 36px); }
.gut-demo { background: var(--orange-zart); }
.gut-demo li { position: relative; padding: 6px 0 6px 22px; color: #3b3833; font-size: 16px; line-height: 1.5; }
.gut-demo li::before { content: ''; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; border-radius: 1px; background: var(--orange); }
.gut-feedback { position: relative; overflow: hidden; background: var(--grund-2); padding-right: clamp(72px, 7vw, 96px); }
.gut-feedback p { color: #3b3833; font-size: 16px; line-height: 1.55; margin: 0; max-width: 48ch; }
.gut-lasche {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl; padding: 16px 9px; border-radius: 0 8px 8px 0;
  background: var(--text); color: var(--grund); font-size: 13px; font-weight: 600; letter-spacing: .01em;
}

/* ── Fuß ────────────────────────────────────────────────────── */
.fuss { border-top: 1px solid var(--linie); }
.fuss-innen { max-width: var(--breite); margin: 0 auto; padding: 28px var(--rand) 40px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 32px; }
.fuss p { margin: 0; }
.fuss-demo { font-size: 15px; font-weight: 600; }
.fuss-klein { font-size: 14px; color: var(--text-2); flex: 1 1 360px; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 0 4px; font-size: 14px; }
.fuss-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.fuss-links a:first-child { padding-left: 0; }

/* ── Rechtsseiten ───────────────────────────────────────────── */
.recht { max-width: 800px; margin: 0 auto; padding: clamp(24px, 5vw, 64px) var(--rand) clamp(64px, 8vw, 104px); }
.recht-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.recht-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--linie); border-radius: var(--r);
  font-size: 14.5px; color: var(--text-2); text-decoration: none; transition: background .2s, color .2s;
}
.recht-nav a:hover { background: var(--grund-2); color: var(--text); }
.recht-nav a[aria-current='page'] { background: var(--text); border-color: var(--text); color: var(--grund); }
.recht h1 { font-size: clamp(34px, 5.6vw, 68px); letter-spacing: -.04em; margin: clamp(32px, 5vw, 56px) 0 24px; hyphens: auto; -webkit-hyphens: auto; }
.demo-box { background: var(--orange-zart); border-left: 4px solid var(--orange); border-radius: 0 10px 10px 0; padding: 16px 22px; }
.demo-box p { margin: 0; font-size: 15.5px; line-height: 1.55; color: #3b3833; }
.demo-box .demo-box-titel { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.vorschau-box { margin-top: 16px; padding: 16px 22px; border: 1px solid var(--linie); border-radius: 10px; background: var(--hell); }
.vorschau-box p { margin: 0; font-size: 15.5px; line-height: 1.55; color: #3b3833; }
.vorschau-box p + p { margin-top: 6px; }
.recht section h2 { font-size: 20px; letter-spacing: -.015em; line-height: 1.3; margin: 40px 0 10px; }
.recht section p { color: #46423c; }
.recht em, .demo-box em, .vorschau-box em {
  font-style: normal; background: var(--platzhalter); color: var(--platzhalter-text);
  padding: .05em .3em; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.recht-zurueck { margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--linie); font-size: 15px; color: var(--text-2); }
.recht-zurueck a { color: var(--text); }

/* ── Schmale Fenster ────────────────────────────────────────── */
@media (max-width: 960px) {
  .start, .e, .e:nth-child(even), .koennen-kopf, .offen-kopf, .koennen-gross { grid-template-columns: minmax(0, 1fr); }
  .e:nth-child(even) .e-buehne { order: 0; }
  .start { align-items: start; }
  .brett { max-width: 560px; }
  .koennen-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offen-gruppen, .gut { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .leiste-info { display: none; }
  .wege a { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: 'nr name pfeil' 'nr art pfeil'; row-gap: 0; }
  .wege-nr { grid-area: nr; }
  .wege-name { grid-area: name; font-size: 19px; }
  .wege-art { grid-area: art; font-size: 15px; }
  .wege .pfeil { grid-area: pfeil; }
  .e-h { border-width: 3px; border-radius: 14px; width: 25%; }
  .koennen-liste { grid-template-columns: minmax(0, 1fr); }
  /* Silbentrennung nur im kleinen Text; große Absätze bleiben ungetrennt (ruhiger am Handy) */
  .e-staerken li, .koennen-liste p, .offen-gruppe li p, .recht section p { hyphens: auto; -webkit-hyphens: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brett-f { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
