/* ═══════════════════════════════════════════════════════════════
   HolzLand Auferoth – Shared Stylesheet v2.0
   Fira Sans (Meta-inspired) · Warme Beigetöne · Warmrot
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Variablen ─────────────────────────────────────────────── */
:root {
  --red:      #E2001A;
  --red-m:    #A80013;
  --red-d:    #A33820;
  --red-l:    #F9EDE9;
  --brown:    #5C3D1E;
  --brown-m:  #7A5533;
  --brown-l:  #F5EFE6;
  --brown-ll: #F5EFE6;
  --cream:    #F5EFE6;
  --cream-l:  #DFD3C3;
  --border:   #DFD3C3;
  --border-d: #A68A64;
  --text:     #2B2D31;
  --text-m:   #5D4037;
  --text-l:   #A68A64;
  --white:    #FFFFFF;
  --white-l:  #fefaf5;
  --gn:       #2D4A22;
  --gn-l:     #F1F8E9;
  --shadow:   0 2px 14px rgba(92,61,30,.09);
  --shadow-m: 0 4px 24px rgba(92,61,30,.14);
  --radius:   12px;
  --radius-s: 8px;
  --radius-l: 4px;
  --font:     'Fira Sans', system-ui, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
::-webkit-scrollbare { width: 5px; }
::-webkit-scrollbare-thumb { background: var(--border-d); border-radius: 3px; }

/* ── Header ────────────────────────────────────────────────── */
.hdr {
  background: var(--brown);
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 16px rgba(46,26,10,.15);
}
.hdr-logo {
  font-family: var(--font);
  font-size: 1.1rem; font-weight: 700;
  color: var(--white); display: flex; align-items: center; gap: .5rem;
  text-decoration: none;
}
.hdr-contact { font-size: .8rem; color: rgba(250,245,238,.7); display: flex; gap: 1rem; }
.hdr-contact a { color: rgba(250,245,238,.85); text-decoration: none; }
.hdr-contact a:hover { color: var(--cream); }

/* ── Layout ────────────────────────────────────────────────── */
.wrap      { max-width: 740px;  margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card-warm {
  background: var(--brown-ll);
  border-color: var(--border);
}

/* ── Typography ────────────────────────────────────────────── */
h1 { font-family: var(--font); font-size: clamp(1.7rem,4vw,2.3rem); font-weight: 800; line-height: 1.15; color: var(--text); }
h2 { font-family: var(--font); font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; }
h3 { font-family: var(--font); font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: .75rem; }
.lbl {
  display: block; font-size: .72rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--text); margin-bottom: .4rem;
}
.muted  { color: var(--text-l); }
.small  { font-size: .82rem; }
.strong { font-weight: 700; }

a {color: var(--text);}

/* ── Inputs ────────────────────────────────────────────────── */
.inp, .sel, .ta {
  width: 100%;
  padding: .65rem .95rem;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--border-d);
  background: #FFFDF9;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none;
}
.inp:focus, .sel:focus, .ta:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(196,70,42,.12);
}
.ta { resize: vertical; min-height: 80px; line-height: 1.55; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius-s); border: none;
  cursor: pointer; font-family: var(--font); font-size: .93rem; font-weight: 600;
  transition: all .18s; text-decoration: none; white-space: nowrap;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--red-d); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(196,70,42,.3); }
.btn-outline { background: transparent; border: 1.5px solid var(--red); color: var(--red); }
.btn-outline:hover:not(:disabled) { background: var(--red-l); }
.btn-warm   { background: var(--brown-l); color: var(--brown-m); border: none; }
.btn-warm:hover { background: var(--border); }
.btn-green  { background: var(--gn); color: #fff; }
.btn-green:hover:not(:disabled) { background: #2E5240; }
.btn-danger { background: #FEE8E3; color: var(--red); border: none; }
.btn-danger:hover { background: #FDD9D0; }
.btn-sm { padding: .35rem .8rem; font-size: .8rem; }

/* ── Grid / Flex ───────────────────────────────────────────── */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.g5 { display: grid; grid-template-columns: repeat(5,1fr); gap: .6rem; }
.fx  { display: flex; }
.fc  { align-items: center; }
.fb  { align-items: center; justify-content: space-between; }
.col { flex-direction: column; }
.gap     { gap: .65rem; }
.gap-sm  { gap: .4rem; }
.gap-lg  { gap: 1.1rem; }
.wrap_   { flex-wrap: wrap; }
.mt  { margin-top: .9rem; }
.mb  { margin-bottom: .9rem; }
.mt-lg { margin-top: 1.5rem; }
.full { width: 100%; }

/* ── Alerts ────────────────────────────────────────────────── */
.alert {
  border-radius: var(--radius-s); padding: .85rem 1rem;
  font-size: .88rem; font-weight: 500;
}
.alert-info { background: #EEF4FF; color: #1D4ED8; border-left: 3px solid #3B82F6; }
.alert-warn { background: #FEF7E6; color: #9A5800; border-left: 3px solid #F59E0B; }
.alert-ok   { background: var(--gn-l); color: #166534; border-left: 3px solid #22C55E; }
.alert-red  { background: var(--red-l); color: var(--red-d); border-left: 3px solid var(--red); }

/* ── Info-Box ──────────────────────────────────────────────── */
.ibox {
  background: var(--brown-l);
  border-radius: var(--radius-s);
  padding: .9rem 1.1rem;
  border-left: 3px solid var(--brown-m);
  font-size: .9rem; color: var(--text);
}

/* ── Stepper ───────────────────────────────────────────────── */
.stepper { display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; }
.s-item  { display: flex; flex-direction: column; align-items: center; gap: .28rem; }
.s-dot   { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem; transition: all .25s; flex-shrink: 0; }
.s-dot.done   { background: var(--red); color: #fff; }
.s-dot.active { background: var(--red); color: #fff; box-shadow: 0 0 0 4px rgba(196,70,42,.18); }
.s-dot.future { background: var(--border); color: var(--text-l); }
.s-lbl   { font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-l); transition: color .25s; }
.s-lbl.active { color: var(--red); }
.s-line  { flex: 1; height: 2px; background: var(--border); max-width: 80px; margin: 0 .5rem 1.5rem; transition: background .25s; }
.s-line.done { background: var(--red); }

/* ── Kalender ──────────────────────────────────────────────── */
.cal-nav  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-title{ font-family: var(--font); font-size: 1.1rem; font-weight: 700; color: var(--text); }
.cal-btn  { width: 36px; height: 36px; border-radius: var(--radius-s); border: 1.5px solid var(--border-d); background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--brown-m); transition: all .15s; }
.cal-btn:hover { border-color: var(--red); color: var(--red); }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.cal-dname{ text-align: center; font-size: .65rem; font-weight: 600; color: var(--text-l); padding: .3rem 0; letter-spacing: .04em; }
.cday {
  border-radius: var(--radius-s); border: none; background: transparent;
  cursor: default; font-family: var(--font); font-size: .88rem; font-weight: 500;
  color: #C5B5A0; position: relative; transition: all .14s;
  display: flex; align-items: center; justify-content: center; flex-direction: column; aspect-ratio: 1;
}
.cday.av   { color: var(--text); cursor: pointer; font-weight: 600; }
.cday.av:hover { background: var(--brown-l); }
.cday.sel  { background: var(--red) !important; color: #fff !important; box-shadow: 0 2px 8px rgba(196,70,42,.35); }
.cday.today:not(.sel) { background: var(--red-l); color: var(--red); font-weight: 700; border-radius: var(--radius-s); }
.cday.past { opacity: .28; }
.cdot      { width: 4px; height: 4px; border-radius: 50%; background: var(--red); position: absolute; bottom: 3px; }
.cday.sel .cdot { background: rgba(255,255,255,.6); }

/* ── Slot-Buttons ──────────────────────────────────────────── */
.slot-btn {
  padding: .58rem .4rem;
  border-radius: var(--radius-s); border: 1.5px solid var(--border-d);
  background: #FFFDF9; color: var(--text);
  font-family: var(--font); font-size: .88rem; font-weight: 600;
  cursor: pointer; text-align: center; transition: all .14s;
}
.slot-btn:hover { border-color: var(--red); background: var(--red-l); color: var(--red-d); }
.slot-btn.sel   { background: var(--red); border-color: var(--red); color: #fff; }

/* ── Kategorie-Cards ───────────────────────────────────────── */
.kat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: .75rem; }
.kat-card {
  border-radius: var(--radius); border: 2px solid var(--border);
  background: var(--white); padding: 1rem .75rem; text-align: center;
  cursor: pointer; transition: all .18s;
}
.kat-card:hover { border-color: var(--red); background: var(--red-l); transform: translateY(-2px); box-shadow: var(--shadow-m); }
.kat-card.sel   { border-color: var(--red); background: var(--red-l); box-shadow: 0 0 0 3px rgba(196,70,42,.15); }
.kat-icon { font-size: 2rem; margin-bottom: .38rem; }
.kat-name { font-weight: 700; font-size: .88rem; color: var(--text); }
.kat-desc { font-size: .68rem; color: var(--text-l); margin-top: .2rem; line-height: 1.35; }

/* ── Extras-Box ────────────────────────────────────────────── */
.extras-box {
  background: var(--brown-ll); border-radius: var(--radius);
  padding: 1.1rem; margin-bottom: 1rem; border: 1px solid var(--border);
}

/* ── Consent-Box ───────────────────────────────────────────── */
.consent-box {
  display: flex; gap: .75rem; background: var(--brown-ll);
  border-radius: var(--radius); padding: 1rem; border: 1.5px solid var(--border-d);
  cursor: pointer; transition: border-color .18s; margin-bottom: 1rem;
}
.consent-box.error { border-color: var(--red); background: var(--red-l); }
.consent-box input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--red); flex-shrink: 0; margin-top: 2px; }
.consent-box p { font-size: .85rem; color: var(--brown-m); line-height: 1.55; }

/* ── Spinner ───────────────────────────────────────────────── */
.spin {
  display: inline-block; width: 18px; height: 18px;
  border: 2.5px solid rgba(196,70,42,.2); border-top-color: var(--red);
  border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Fade Animation ────────────────────────────────────────── */
@keyframes fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.fade-up { animation: fadeUp .3s ease forwards; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero { text-align: center; margin-bottom: 2.5rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--red-l); border: 1px solid rgba(196,70,42,.25);
  border-radius: 100px; padding: .3rem 1rem;
  font-size: .72rem; font-weight: 700; color: var(--red);
  letter-spacing: .07em; text-transform: uppercase; margin-bottom: .9rem;
}

/* ── Footer ──────────────────────────────────────────────────── */
#footer { text-align: center; margin-top: 2.5rem; }
#footer img.logo {max-width: 100px; display: block; margin-left: auto; margin-right: auto; margin-top: 1rem;}
#footer a { color: var(--red); text-decoration: none; }
#footer a:hover { color: var(--red-d); }

/* ── Toast ─────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.25rem; right: 1.25rem;
  background: var(--brown); color: var(--cream);
  padding: .65rem 1.1rem; border-radius: var(--radius); font-size: .85rem; font-weight: 600;
  z-index: 999; display: flex; align-items: center; gap: .4rem;
  box-shadow: 0 4px 20px rgba(92,61,30,.3);
  opacity: 0; transform: translateY(8px); transition: all .28s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ── Modal ─────────────────────────────────────────────────── */
.mov { position: fixed; inset: 0; background: rgba(46,26,10,.5); z-index: 300; display: flex; align-items: flex-start; justify-content: center; padding: 1.5rem 1rem; overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity .2s; }
.mov.open { opacity: 1; pointer-events: all; }
.modal { background: var(--white); border-radius: 14px; max-width: 740px; width: 100%; padding: 1.75rem; transform: translateY(16px); transition: transform .2s; margin: auto; }
.mov.open .modal { transform: translateY(0); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .kat-grid    { grid-template-columns: repeat(2,1fr); }
  .g2,.g3,.g4  { grid-template-columns: 1fr; }
  .g5          { grid-template-columns: repeat(4,1fr); }
  h1           { font-size: 1.6rem; }
  .card        { padding: 1.25rem; }
  .hdr-contact { display: none; }
}
@media (max-width: 380px) {
  .g5 { grid-template-columns: repeat(3,1fr); }
}
