/* Tanagra Außenauftritt. Stil der Box-Startseiten (Verlauf, Glas, Petrol). Agenten dürfen Farben und Texte ändern. */
:root {
  --petrol: #1d6795; --petrol-dunkel: #134a6c; --petrol-hell: #2a85bd; --akzent: #0f9d8a;
  --ink: #1f2937; --ink-2: #4b5563; --ink-3: #6b7280;
  --glas: rgba(255,255,255,.74); --rand: rgba(255,255,255,.6);
  --schatten: 0 18px 40px rgba(29,103,149,.10), 0 2px 6px rgba(0,0,0,.04); --radius: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; background: #f4fbf8; color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.5; }
.bg { position: fixed; inset: 0; z-index: -1; background: linear-gradient(135deg, #fff7ed, #fefce8, #f0fdf4, #ecfdf5, #eff6ff, #f0f9ff, #fafafa); background-size: 400% 400%; animation: verlauf 45s ease infinite; }
@keyframes verlauf { 0% { background-position: 0% 50%; } 25% { background-position: 100% 0%; } 50% { background-position: 100% 100%; } 75% { background-position: 0% 100%; } 100% { background-position: 0% 50%; } }
@media (prefers-reduced-motion: reduce) { .bg { animation: none; } }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Kopf */
header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(255,255,255,.65); border-bottom: 1px solid var(--rand); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.marke { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.marke .t { font-weight: 800; color: var(--petrol); font-size: 20px; letter-spacing: -.01em; }
.marke .u { font-size: 13px; color: var(--ink-3); }
nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; margin-left: 22px; }
nav a:hover { color: var(--petrol); }
@media (max-width: 640px) { nav a { margin-left: 14px; font-size: 14px; } .marke .u { display: none; } }

/* Hero */
.hero { padding: 96px 0 72px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; color: var(--akzent); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--akzent), var(--petrol)); }
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.08; color: var(--petrol); font-weight: 800; letter-spacing: -.01em; max-width: 820px; }
h1 .hell { color: var(--petrol-hell); }
.lead { font-size: clamp(18px, 2.2vw, 23px); line-height: 1.45; color: var(--ink-2); margin-top: 22px; max-width: 720px; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.knopf { display: inline-block; padding: 14px 24px; border-radius: 14px; text-decoration: none; font-weight: 700; font-size: 16px; transition: transform .2s ease, box-shadow .2s ease; }
.knopf:hover { transform: translateY(-2px); }
.knopf.primaer { background: var(--petrol); color: #fff; box-shadow: 0 10px 24px rgba(29,103,149,.25); }
.knopf.sekundaer { background: var(--glas); color: var(--petrol); border: 1px solid var(--rand); }

/* Abschnitte */
section { padding: 56px 0; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; color: var(--petrol); font-weight: 800; letter-spacing: -.01em; margin-bottom: 14px; }
.unter { font-size: 18px; color: var(--ink-2); max-width: 720px; margin-bottom: 36px; }
.raster { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.raster.vier { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .raster.vier { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .raster.vier { grid-template-columns: 1fr; } }
.karte { background: var(--glas); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: var(--schatten); padding: 32px 30px; transition: transform .25s ease, box-shadow .25s ease; }
.karte:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(29,103,149,.14); }
.karte h3 { font-size: 22px; color: var(--ink); margin-bottom: 10px; }
.karte p { font-size: 17px; color: var(--ink-2); }
.karte .datum { font-size: 13px; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: linear-gradient(135deg, rgba(29,103,149,.12), rgba(15,157,138,.12)); color: var(--petrol); font-weight: 800; font-size: 20px; }

.hinweis { background: var(--glas); border: 1px solid var(--rand); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--schatten); }
.hinweis p { color: var(--ink-2); font-size: 17px; }
.hinweis b { color: var(--petrol); }

/* Fuß */
footer { padding: 40px 0 48px; color: var(--ink-3); font-size: 14px; border-top: 1px solid var(--rand); margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--petrol); }

/* Formulare */
.formular { background: var(--glas); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: var(--schatten); padding: 34px 32px; max-width: 640px; }
.formular .zeile { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .formular .zeile { grid-template-columns: 1fr; } }
.feld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.feld label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.feld input, .feld textarea { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(29,103,149,.25); background: rgba(255,255,255,.9); color: var(--ink); }
.feld input:focus, .feld textarea:focus { outline: 2px solid var(--petrol-hell); outline-offset: 1px; }
.feld textarea { min-height: 110px; resize: vertical; }
.zustimmung { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 6px 0 18px; }
.zustimmung input { margin-top: 3px; flex: 0 0 auto; }
.zustimmung a { color: var(--petrol); }
.formular button { width: 100%; border: 0; cursor: pointer; }
.formular button[disabled] { opacity: .6; cursor: wait; }
.meldung { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 15px; display: none; }
.meldung.ok { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.meldung.fehler { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.klein { font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.zweispaltig { display: grid; gap: 36px; grid-template-columns: 1.1fr 1fr; align-items: start; }
@media (max-width: 860px) { .zweispaltig { grid-template-columns: 1fr; } }
.punkte { list-style: none; display: grid; gap: 14px; margin-top: 8px; }
.punkte li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; color: var(--ink-2); }
.punkte li::before { content: ""; flex: 0 0 auto; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--akzent), var(--petrol)); }

/* Bücher */
.buecher { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.buch { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start; }
.buch img { width: 120px; height: auto; border-radius: 6px; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.buch .band { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--akzent); font-weight: 700; margin-bottom: 6px; }
.buch h3 { font-size: 19px; margin-bottom: 6px; }
.buch p { font-size: 15px; }
.buch a.link { display: inline-block; margin-top: 10px; color: var(--petrol); font-weight: 700; text-decoration: none; font-size: 15px; }
.buch a.link:hover { text-decoration: underline; }

/* Fakten und Ablauf */
.fakten { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 36px; }
.fakt { background: var(--glas); border: 1px solid var(--rand); border-radius: 18px; padding: 18px 20px; box-shadow: var(--schatten); }
.fakt b { display: block; font-size: 28px; color: var(--petrol); line-height: 1.1; }
.fakt span { font-size: 14px; color: var(--ink-3); }
.schritte { counter-reset: s; display: grid; gap: 16px; }
.schritt { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; background: var(--glas); border: 1px solid var(--rand); border-radius: 18px; padding: 20px 22px; box-shadow: var(--schatten); }
.schritt::before { counter-increment: s; content: counter(s); width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: var(--petrol); background: linear-gradient(135deg, rgba(29,103,149,.12), rgba(15,157,138,.12)); }
.schritt h3 { font-size: 19px; margin-bottom: 4px; }
.schritt p { font-size: 16px; color: var(--ink-2); }
.schritt .dauer { font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }

/* Buchkarten einheitlich (seit 25.10. abends) */
.buecher { align-items: stretch; }
.buch { display: flex; flex-direction: column; gap: 0; height: 100%; padding: 26px 26px 28px; }
.buch .cover { height: 230px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, rgba(29,103,149,.08), rgba(15,157,138,.08)); margin-bottom: 20px; }
.buch img { width: auto; height: 190px; border-radius: 6px; box-shadow: 0 14px 28px rgba(0,0,0,.22); }
.buch .text { display: flex; flex-direction: column; flex: 1; }
.buch .text p { flex: 1; }
.buch .band { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--akzent); font-weight: 700; margin-bottom: 6px; }
.buch h3 { font-size: 20px; margin-bottom: 8px; }
.buch p { font-size: 15px; }
.karte a.link { display: inline-block; margin-top: 14px; padding: 10px 16px; border-radius: 12px; background: rgba(29,103,149,.08); color: var(--petrol); font-weight: 700; text-decoration: none; font-size: 14px; border: 1px solid rgba(29,103,149,.15); transition: background .2s ease, color .2s ease; }
.karte a.link:hover { background: var(--petrol); color: #fff; text-decoration: none; }
.buch .text a.link { align-self: flex-start; }
.karte.weiter { display: flex; flex-direction: column; } .karte.weiter p { flex: 1; } .karte.weiter a.link { align-self: flex-start; }

/* Formular als Panel */
.formular { background: rgba(255,255,255,.92); padding: 36px 34px 30px; border: 1px solid rgba(29,103,149,.12); box-shadow: 0 24px 60px rgba(29,103,149,.16), 0 2px 6px rgba(0,0,0,.04); }
.formular .kopf { margin-bottom: 22px; }
.formular .kopf h3 { font-size: 22px; color: var(--petrol); margin-bottom: 4px; }
.formular .kopf p { font-size: 15px; color: var(--ink-3); }
.feld input, .feld textarea { background: #fff; border: 1.5px solid rgba(29,103,149,.22); box-shadow: inset 0 1px 2px rgba(0,0,0,.03); }
.feld input:hover, .feld textarea:hover { border-color: rgba(29,103,149,.45); }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--petrol-hell); box-shadow: 0 0 0 4px rgba(42,133,189,.15); }
.zustimmung input { width: 18px; height: 18px; accent-color: var(--petrol); }

/* Buch mit Rücken und Tiefe (seit 25.10. abends, Fassung 2) */
.buch .cover { perspective: 900px; perspective-origin: 70% 40%; overflow: visible; height: 250px; }
.book { position: relative; width: 158px; height: 212px; transform-style: preserve-3d; transform: rotateY(32deg) rotateX(4deg); transition: transform .5s ease; }
.karte:hover .book { transform: rotateY(22deg) rotateX(3deg); }
.book img, .book .glanz { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 2px 8px 8px 2px; transform: translateZ(30px); backface-visibility: hidden; }
.book img { object-fit: cover; box-shadow: 14px 18px 34px rgba(0,0,0,.30); }
.book .glanz { transform: translateZ(31px); background: linear-gradient(90deg, rgba(0,0,0,.30) 0, rgba(255,255,255,.22) 7px, rgba(0,0,0,.14) 13px, rgba(255,255,255,.06) 20px, rgba(255,255,255,0) 32px, rgba(255,255,255,0) 85%, rgba(255,255,255,.08) 100%); pointer-events: none; }
.book .spine { position: absolute; left: 0; top: 0; width: 30px; height: 100%; transform-origin: left center; transform: rotateY(-90deg); background: linear-gradient(90deg, #0b2a3f 0%, #134a6c 40%, #1d6795 85%, #2a85bd 100%); border-radius: 3px 0 0 3px; box-shadow: inset -3px 0 4px rgba(0,0,0,.3); }
.book .pages { position: absolute; right: 0; top: 4px; width: 30px; height: calc(100% - 8px); transform-origin: right center; transform: rotateY(90deg); background: repeating-linear-gradient(90deg, #fdfdfd 0 1px, #e2e5ea 1px 2px); }
.book::before { content: ""; position: absolute; inset: 0; border-radius: 2px 8px 8px 2px; background: #0f3a55; box-shadow: -18px 12px 36px rgba(0,0,0,.28); }
.book::after { content: ""; position: absolute; left: -8px; right: -40px; bottom: -30px; height: 30px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(13,47,69,.36), rgba(13,47,69,0) 70%); transform: translateZ(-40px); }
