/* ==========================================================================
   fielen.de — gemeinsames Fundament (site.css)
   Design-Tokens & Werte exakt aus den Prototypen in design/*.dc.html
   Breakpoint: 880px
   ========================================================================== */

/* ---------- Design-Tokens ---------- */
:root {
  /* Farben */
  --c-primary: #F27B1F;            /* Primär/Akzent */
  --c-primary-hover: #DD6C12;      /* Hover orange Buttons */
  --c-bg: #FBF7F1;                 /* Seitenhintergrund */
  --c-bg-alt: #F5EEE3;             /* Abgesetzte Sektionen */
  --c-tint: #FDEEDF;               /* Tint (Karten/Chips) */
  --c-on-tint: #B85B10;            /* Text auf Tint */
  --c-ink: #2C241C;                /* Text */
  --c-muted: #6F6355;              /* Muted */
  --c-legal: #52463A;              /* Fließtext Rechtsseiten */
  --c-faint: #A39584;              /* schwacher Text */
  --c-footer-bg: #2E251C;
  --c-footer-text: #EFE6D9;
  --c-success: #2F7D3B;
  --c-success-bg: #EAF6EC;
  --c-error: #C0392B;
  --line-soft: rgba(44, 36, 28, .08);
  --line-mid: rgba(44, 36, 28, .12);
  --line-strong: rgba(44, 36, 28, .18);

  /* Radien */
  --radius-pill: 999px;
  --radius-card-xl: 28px;
  --radius-card-lg: 22px;
  --radius-card-md: 20px;
  --radius-card-sm: 14px;

  /* Schatten */
  --shadow-card: 0 10px 28px rgba(44, 36, 28, .10);
  --shadow-card-lg: 0 12px 30px rgba(44, 36, 28, .12);
  --shadow-panel: 0 20px 36px rgba(44, 36, 28, .14);

  /* Schrift */
  --font-head: 'Nunito', sans-serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
}

/* ---------- Reset / Basics ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  margin: 0;
}

h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 4vw, 36px); }

p { margin: 0; }

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ---------- Container ---------- */
.container {
  max-width: 1192px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons (Pills) ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 16.5px;
  font-weight: 800;
  border-radius: var(--radius-pill);
  padding: 15px 28px;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  text-align: center;
}

.btn-primary {
  background: var(--c-primary);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--c-primary-hover); }

.btn-outline {
  background: transparent;
  color: var(--c-ink);
  border: 1.5px solid rgba(44, 36, 28, .22);
  padding: 14px 26px;
}
.btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* invertierter Button auf orangem Grund (CTA-Banner) */
.btn-inverse {
  background: #FFFFFF;
  color: var(--c-primary);
  font-size: 17px;
  padding: 16px 30px;
  white-space: nowrap;
}
.btn-inverse:hover { background: var(--c-tint); }

/* ---------- Karten-Grundstile ---------- */
.card {
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card-lg);
  padding: 30px;
  color: var(--c-ink);
  text-decoration: none;
}
.card:hover { box-shadow: 0 12px 30px rgba(44, 36, 28, .1); }

.card-tint {
  background: var(--c-tint);
  border: 0;
  border-radius: var(--radius-card-lg);
  padding: 30px;
  color: var(--c-ink);
  text-decoration: none;
}
.card-tint:hover { box-shadow: var(--shadow-card-lg); }

/* Chip / Badge (Pill auf Tint) — ohne letter-spacing (Prototyp-Default) */
.chip {
  display: inline-block;
  background: var(--c-tint);
  color: var(--c-on-tint);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 7px 15px;
}

/* Nur der Hero-Chip der Startseite hat letter-spacing (Startseite.dc.html Z. 43) */
.chip--spaced { letter-spacing: .03em; }

/* ==========================================================================
   Header (sticky, alle Seiten)
   ========================================================================== */
.site-header {
  background: var(--c-bg);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 60;
}

.site-header__inner {
  max-width: 1192px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 24px;
}

.header-logo { display: block; }
.header-logo img { height: 34px; width: auto; display: block; }

/* Desktop-Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-ink);
  text-decoration: none;
}
.site-nav a:hover { color: var(--c-primary); }
.site-nav a.active { color: var(--c-primary); }

/* Header-CTA (Desktop) */
.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-cta .btn {
  font-size: 15px;
  padding: 11px 22px;
}

/* Burger-Button (nur < 881px sichtbar) */
.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--c-ink);
  font-size: 19px;
  cursor: pointer;
  padding: 0;
  flex: none;
}

/* Mobile-Dropdown-Panel (unter dem Header) */
.mobile-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--c-bg);
  border-bottom: 1px solid var(--line-mid);
  box-shadow: var(--shadow-panel);
  padding: 6px 24px 22px;
  flex-direction: column;
}
.mobile-panel a:not(.btn) {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-panel a:not(.btn):hover { color: var(--c-primary); }
.mobile-panel a.active { color: var(--c-primary); }

.mobile-panel__cta {
  display: flex;
  padding-top: 18px;
}
.mobile-panel__cta .btn {
  flex: 1;
  text-align: center;
  font-size: 15.5px;
  padding: 13px 20px;
}

/* ==========================================================================
   Footer (alle Seiten)
   ========================================================================== */
.site-footer {
  background: var(--c-footer-bg);
  color: var(--c-footer-text);
}

.site-footer__inner {
  max-width: 1192px;
  margin: 0 auto;
  padding: 44px 24px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(239, 230, 217, .14);
}

.footer-brand img { height: 30px; width: auto; display: block; margin-bottom: 14px; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(239, 230, 217, .7);
  margin: 0;
  max-width: 300px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-col__title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(239, 230, 217, .55);
}
.footer-col a {
  font-size: 14.5px;
  color: var(--c-footer-text);
  text-decoration: none;
}
.footer-col a:hover { color: var(--c-primary); }
.footer-col .footer-address {
  font-size: 14.5px;
  color: rgba(239, 230, 217, .6);
}

.footer-copy {
  padding-top: 18px;
  font-size: 13px;
  color: rgba(239, 230, 217, .5);
}

/* ==========================================================================
   Responsiv — Breakpoint 880px
   ========================================================================== */
@media (max-width: 880px) {
  .site-nav { display: none; }
  .header-cta { display: none; }
  .burger { display: flex; }
  .mobile-panel.open { display: flex; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (min-width: 881px) {
  .mobile-panel { display: none !important; }
}
