/* Kalender-Aktion 2027 – Optik angelehnt an kaltenbach-training.de
   Schriften: Fraunces (Überschriften) & Inter (Text). Die woff2-Dateien in assets/fonts/ ablegen
   (siehe DOKUMENTATION.md). Fehlen sie, greifen Georgia bzw. Systemschrift. */

@font-face { font-family: "Fraunces Variable"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/fraunces-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Variable"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/inter-latin-wght-normal.woff2") format("woff2"); }

:root {
  --bg: #FAF8F5;           /* hsl(36 33% 97%) */
  --bg-tint: #F6F2EC;      /* hsl(36 30% 95%) */
  --fg: #141924;           /* hsl(222 28% 11%) */
  --muted: #575E6B;        /* hsl(220 10% 38%) */
  --accent: #BC832F;       /* hsl(36 60% 46%) */
  --accent-deep: #8A5418;  /* hsl(32 70% 32%) */
  --accent-soft: #F5EBDC;  /* hsl(36 50% 92%) */
  --border: #E1DCD6;       /* hsl(30 15% 86%) */
  --card: #FFFFFF;
  --dark: #11151D;         /* Footer */
  --dark-surface: #192029;
  --radius: .625rem;
  --shadow: 0 1px 2px rgba(20,25,36,.04), 0 8px 24px -8px rgba(20,25,36,.08), 0 24px 48px -16px rgba(20,25,36,.08);
  --serif: "Fraunces Variable", Fraunces, Georgia, "Times New Roman", serif;
  --sans: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); }
p { margin: 0 0 1em; }
strong, .strong { font-weight: 600; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; color: inherit; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.02em; }
h3 { font-size: 1.6rem; letter-spacing: -.01em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.mt { margin-top: 1.5rem; }
.small { font-size: .85rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; line-height: 1.55; }

.eyebrow { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; display: inline-flex; align-items: center; gap: .75rem; }
.eyebrow span { color: var(--accent); font-weight: 600; }
.eyebrow-light { color: rgba(250,248,245,.6); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(250,248,245,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--fg); font-family: var(--serif); font-size: 1.5rem; letter-spacing: -.01em; line-height: 1; }
.brand-mark { width: 32px; height: 32px; border-radius: 6px; background: var(--fg); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.brand em { color: var(--accent); }
.header-nav { display: flex; align-items: center; gap: 1.5rem; }
.header-nav > a:not(.btn) { color: var(--fg); text-decoration: none; font-size: .9rem; font-weight: 500; }
@media (max-width: 560px) { .brand-text { font-size: 1.25rem; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .85rem 1.5rem; border-radius: 9999px; font-family: var(--sans); font-size: .95rem; font-weight: 500; letter-spacing: -.02em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(188,131,47,.6); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-dark { background: var(--fg); color: var(--bg); }
.btn-dark:hover { background: #000; }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--bg-tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: var(--dark); color: var(--bg); background-image: radial-gradient(900px 500px at 80% 0%, rgba(188,131,47,.18), transparent 60%), radial-gradient(800px 600px at 0% 100%, rgba(45,56,82,.6), transparent 60%); }
.section-dark p { color: rgba(250,248,245,.8); }
.section-dark strong { color: var(--bg); }

.hero { padding: 72px 0 96px; background-image: radial-gradient(1200px 600px at 0% 0%, rgba(245,235,220,.6), transparent 60%), radial-gradient(900px 500px at 100% 100%, rgba(245,235,220,.4), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-image img, .rounded-img img { border-radius: calc(var(--radius) * 2); box-shadow: var(--shadow); }
.hero-image { margin: 0; transform: rotate(1.2deg); }
.rounded-img { margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-image { order: -1; transform: none; } .section { padding: 64px 0; } }

.stock { display: inline-flex; align-items: center; gap: .6rem; background: var(--accent-soft); color: var(--accent-deep); border-radius: 9999px; padding: .45rem 1rem; font-size: .9rem; margin: .5rem 0 0; }
.stock .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(188,131,47,.2); animation: pulse 2s infinite; }
.stock-out { background: #F3E1DC; color: #8A2E1A; }
.stock-out .dot { background: #B5452A; box-shadow: 0 0 0 4px rgba(181,69,42,.18); animation: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(188,131,47,.05); } }

/* ---------- Cards / Form ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) * 2); padding: 40px; box-shadow: var(--shadow); }
.form-head { text-align: center; margin-bottom: 2rem; }
.order-form .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 1.75rem; }
.order-form .span-2 { grid-column: span 2; }
@media (max-width: 600px) { .order-form .grid-2 { grid-template-columns: 1fr; } .order-form .span-2 { grid-column: auto; } .spacer { display: none; } .card { padding: 26px 20px; } }
.order-form label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 500; }
.order-form .opt { color: var(--muted); font-weight: 400; }
.order-form input[type=text], .order-form input[type=email], .order-form select, .order-form textarea {
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem .9rem; width: 100%; transition: border-color .15s, box-shadow .15s; }
.order-form input:focus, .order-form select:focus, .order-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(188,131,47,.2); background: #fff; }
.order-form [aria-invalid=true] { border-color: #B5452A; }
.order-form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--muted); }
.order-form .check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.field-error { color: #B5452A; font-size: .82rem; font-weight: 500; }
.order-form .small { margin: 1rem 0 0; text-align: center; }
.alert { background: #F3E1DC; color: #8A2E1A; border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1.25rem; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.paid { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; background: var(--accent-soft); border-color: #EBD9BE; box-shadow: none; }
.paid h3 { font-size: 1.35rem; margin-bottom: .3em; }
.paid p { margin: 0; color: var(--muted); }
.paid .btn { flex: none; }
@media (max-width: 680px) { .paid { flex-direction: column; align-items: flex-start; } }

.soldout { text-align: center; border: 2px solid var(--accent); padding: 56px 40px; background: linear-gradient(180deg, #fff, var(--accent-soft)); }
.soldout .btn { margin-top: .75rem; }
.success { text-align: center; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 1.25rem; }

/* ---------- Zukunft Afrika ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-rev { margin-top: 72px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .split-rev figure { order: 2; } }
.stats-title { margin: 72px 0 28px; font-size: 1.8rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--dark-surface); border: 1px solid rgba(250,248,245,.08); border-radius: calc(var(--radius) * 1.6); padding: 26px; }
.stat .num { display: block; font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--accent); }
.stat .label { display: block; font-weight: 600; margin: .4rem 0 .6rem; color: var(--bg); }
.stat p { font-size: .9rem; margin: 0; color: rgba(250,248,245,.65); }

.signature { margin-top: 2rem; font-size: 1.05rem; }

/* ---------- Footer (wie kaltenbach-training.de) ---------- */
.site-footer { background: var(--dark); color: var(--bg); padding: 80px 0 40px; font-size: .9rem; border-top: 1px solid rgba(250,248,245,.08); }
.site-footer a { color: rgba(250,248,245,.85); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(250,248,245,.1); }
.footer-brand { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.75rem); color: var(--bg) !important; letter-spacing: -.02em; }
.footer-brand em { color: var(--accent); }
.footer-mail { font-size: .85rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 48px 0; border-bottom: 1px solid rgba(250,248,245,.1); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(250,248,245,.5); margin: 0 0 1.1rem; }
.footer-grid p { color: rgba(250,248,245,.75); margin-bottom: 1em; }
.footer-grid .strong { color: var(--bg); font-weight: 400; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .65rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 28px; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(250,248,245,.5); }
.footer-podcast { display: flex; gap: 20px; }
.footer-podcast a { color: rgba(250,248,245,.5); }

/* ---------- Admin ---------- */
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; background: #fff; }
.admin-table th, .admin-table td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table th { font-weight: 600; background: var(--bg-tint); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }

.motive { max-width: 920px; margin: 48px auto 0; }
.motive figcaption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 14px; letter-spacing: .02em; }

.soldout-banner { background: var(--accent); color: #fff; text-align: center; padding: 14px 0; font-size: .95rem; }
.soldout-banner a { color: #fff; font-weight: 600; margin-left: .5rem; text-decoration: underline; text-underline-offset: 3px; }
