/* ==========================================================================
   Habermanns Glückskinder — Stylesheet
   Design tokens derived from the brand logo (truck, heart, star, clover).
   ========================================================================== */


:root{
  /* --- colour tokens — official brand palette (Habermann Corporate Identity PDF) --- */
  --sage:        #94A496;   /* official: RGB 148,164,150 */
  --sage-deep:   #5C6F60;   /* darkened sage for accessible text & buttons */
  --sage-pale:   #E4EAE1;   /* tint for soft backgrounds */
  --ink:         #3E3E3E;   /* wheels / script wordmark */
  --mint:        #B3CBA0;   /* official: RGB 179,203,160 */
  --coral:       #F1C3A7;   /* official peach: RGB 241,195,167 */
  --coral-deep:  #C9764F;   /* darkened peach for accessible text on cream */
  --pink:        #F0CACE;   /* official pink: RGB 240,202,206 */
  --pink-deep:   #C97D87;   /* darkened pink for accessible text */
  --grey:        #E3E3E3;   /* official neutral: RGB 227,227,227 */
  --gold:        #E8CF8E;   /* star accent — not in official palette, kept for icon variety */
  --cream:       #FBF8F3;   /* page background */
  --white:       #FFFFFF;

  --font-script: 'Beau Rivage', cursive;
  --font-head:   'Quicksand', sans-serif;
  --font-body:   'Nunito Sans', sans-serif;

  --radius:      18px;
  --radius-sm:   10px;
  --shadow-soft: 0 12px 30px -16px rgba(60, 60, 55, 0.35);
  --max:         1140px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; border-radius: var(--radius); }
a{ color: var(--sage-deep); text-decoration: none; }
a:hover{ color: var(--coral-deep); }

h1, h2, h3, h4{
  font-family: var(--font-head);
  font-weight: 700;
  margin: 0 0 .5em;
  color: var(--ink);
  letter-spacing: .01em;
}
h1{ font-size: clamp(2.1rem, 4vw, 3.1rem); line-height: 1.12; }
h2{ font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3{ font-size: 1.3rem; }
p{ margin: 0 0 1em; }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--sage-deep);
}

.script-accent{
  font-family: var(--font-script);
  font-size: 1.9em;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}

:focus-visible{
  outline: 3px solid var(--coral-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary{ background: var(--coral-deep); color: var(--white); box-shadow: var(--shadow-soft); }
.btn-primary:hover{ background: #B36540; transform: translateY(-2px); }
.btn-secondary{ background: transparent; border-color: var(--sage); color: var(--sage-deep); }
.btn-secondary:hover{ background: var(--sage-pale); transform: translateY(-2px); }
.btn-ghost{ background: var(--white); color: var(--sage-deep); box-shadow: var(--shadow-soft); }
.btn-ghost:hover{ background: var(--sage-pale); }

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,243,.96);
  border-bottom: 1px solid rgba(148,164,151,.35);
}
.nav-wrap{
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max); margin: 0 auto;
}
.brand{ display: flex; align-items: center; gap: 12px; }
.brand img{ height: 56px; width: auto; border-radius: 0; }
.brand-word{ font-family: var(--font-script); font-size: 1.7rem; color: var(--ink); line-height: 1; }

.main-nav{ display: flex; align-items: center; gap: 28px; }
.main-nav a{
  font-family: var(--font-head); font-weight: 600; color: var(--ink);
  font-size: .98rem; position: relative; padding: 4px 2px;
}
.main-nav a::after{
  content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px;
  background: var(--coral); transition: right .2s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after{ right: 0; }
.main-nav a[aria-current="page"]{ color: var(--sage-deep); }

.nav-cta{ display: flex; align-items: center; gap: 18px; }
.nav-toggle{
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; color: var(--ink);
}
.nav-toggle svg{ width: 28px; height: 28px; }

/* Mobile nav backdrop */
.nav-backdrop{
  display: none;
  position: fixed; inset: 0;
  background: rgba(40,40,38,.45);
  z-index: 98;
  opacity: 0;
  transition: opacity .28s ease;
}
.nav-backdrop.open{ opacity: 1; }

@media (max-width: 880px){
  .site-header{ z-index: 100; }

  .main-nav{
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    padding-top: 76px;
    background: var(--white); /* white — clearly distinct from page */
    box-shadow: 0 0 40px rgba(40,40,38,.18);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 99; /* above backdrop (98), below header (100) */
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav a{
    display: block;
    padding: 20px 32px;
    font-size: 1.2rem;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid rgba(148,164,151,.25);
    text-align: left;
  }
  .main-nav a:first-child{ border-top: 1px solid rgba(148,164,151,.25); }
  .main-nav a::after{ display: none; }
  .main-nav a[aria-current="page"]{
    color: var(--sage-deep);
    background: var(--sage-pale);
  }
  .nav-toggle{ display: inline-flex; }
  .nav-cta .btn-primary{ display: none; }
  .brand-word{ font-size: 1.4rem; }
  .brand img{ height: 46px; }
}

/* --------------------------------------------------------------------------
   Stitched divider — signature element.
   A dashed "seam" with a small badge holding one of the logo's own icons
   (heart / star / clover / box), echoing both leather stitching and the
   truck's delivery route. Used to introduce every major section.
   -------------------------------------------------------------------------- */
.stitched{
  display: flex; align-items: center; gap: 18px;
  margin: 0 0 28px;
}
.stitched .seam{
  flex: 1; height: 0; border-top: 2px dashed rgba(148,164,151,.55);
}
.stitched .badge{
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow-soft);
  display: flex; align-items: center; justify-content: center;
}
.stitched .badge svg{ width: 22px; height: 22px; }
.stitched-heading{ display:flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero{
  padding: 64px 0 30px;
  overflow: hidden;
}
.hero-grid{
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero-art{ position: relative; }
.hero-truck{
  width: 100%; max-width: 420px; margin: 0 auto; display: block;
  animation: drive-in .9s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes drive-in{
  from{ transform: translateX(-60px) scale(.96); opacity: 0; }
  to{ transform: translateX(0) scale(1); opacity: 1; }
}
.hero-tagline{ font-size: 1.18rem; color: #5a5a58; max-width: 46ch; }
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-categories{ display:flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.hero-categories .pill{
  display:flex; align-items:center; gap:8px; font-family: var(--font-head); font-weight:600;
  font-size:.92rem; color: var(--sage-deep);
}
.hero-categories .pill svg{ width:18px; height:18px; }

@media (max-width: 880px){
  /* Handy/Tablet: Text und Buttons zuerst, Illustration kleiner darunter */
  .hero{ padding: 32px 0 20px; }
  .hero-grid{ grid-template-columns: 1fr; gap: 24px; }
  .hero-truck{ max-width: 220px; }
}
@media (max-width: 600px){
  .hero h1{ font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .hero-tagline{ font-size: 1.05rem; }
  .hero-actions{ margin-top: 20px; }
  .hero-actions .btn{ flex: 1 1 100%; justify-content: center; text-align: center; }
  .hero-categories{ margin-top: 20px; gap: 14px; }
}

/* --------------------------------------------------------------------------
   Sections / generic layout
   -------------------------------------------------------------------------- */
section{ padding: 70px 0; }
.section-alt{ background: var(--white); }
.lead{ font-size: 1.12rem; max-width: 60ch; color: #4d4d4b; }

.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 880px){
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; gap: 28px; }
}

/* Category / offering cards */
.card{
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
  transition: transform .2s ease;
}
.card:hover{ transform: translateY(-4px); }
.card img{ border-radius: 0; aspect-ratio: 4/3; object-fit: cover; }
.card-body{ padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body p{ color: #5a5a58; font-size: .98rem; flex: 1; }
.card-tag{
  display: inline-flex; align-items:center; gap:6px;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--coral-deep);
}

/* Service / feature list */
.feature-list{ list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.feature-list li{ display: flex; gap: 14px; align-items: flex-start; }
.feature-list .ico{
  flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--sage-pale);
  display:flex; align-items:center; justify-content:center;
}
.feature-list .ico svg{ width: 19px; height: 19px; color: var(--sage-deep); }
.feature-list strong{ display:block; font-family: var(--font-head); }

/* Callout banner (used for the fitting CTA on the homepage) */
.callout{
  background: linear-gradient(135deg, var(--sage-pale) 0%, var(--white) 70%);
  border-radius: var(--radius); padding: 48px; box-shadow: var(--shadow-soft);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 36px; align-items: center;
}
@media (max-width: 880px){ .callout{ grid-template-columns: 1fr; padding: 32px 24px; } }

/* Process steps (school bag fitting — a genuine sequence, numbering earns its keep) */
.steps{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 880px){ .steps{ grid-template-columns: 1fr; } }
.step{ position: relative; padding: 28px 22px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.step .num{
  font-family: var(--font-script); font-size: 2.6rem; color: var(--coral); line-height: 1; display:block; margin-bottom: 8px;
}

/* Team cards */
.team-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 880px){ .team-grid{ grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.team-card{ background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 30px 26px; text-align: center; }
.avatar{
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 18px;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-script); font-size: 2.2rem; color: var(--white);
}
.avatar svg{ width: 38px; height: 38px; }
.team-role{ color: var(--coral-deep); font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.team-fav{ font-size: .92rem; color: #6b6b68; margin-top: 14px; }

/* Calendly */
.calendly-wrap{
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft);
  padding: 8px; min-height: 0;
}
.calendly-fallback{ text-align:center; padding: 50px 24px; }

/* Contact / map */
.contact-grid{ display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
@media (max-width: 880px){ .contact-grid{ grid-template-columns: 1fr; } }
.info-card{ background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 32px; }
.hours-table{ width: 100%; border-collapse: collapse; margin-top: 10px; }
.hours-table td{ padding: 7px 0; border-bottom: 1px dashed rgba(148,164,151,.4); }
.hours-table td:last-child{ text-align: right; font-weight: 600; }
.map-frame{ border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); min-height: 420px; }
.map-frame iframe{ width: 100%; height: 100%; min-height: 420px; border: 0; display:block; }

/* Contact form (Formspree) */
.contact-form{ display: grid; gap: 18px; margin-top: 6px; }
.form-row{ display: flex; flex-direction: column; gap: 6px; }
.form-row label{ font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink); }
.form-row input, .form-row textarea{
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid rgba(148,164,151,.5);
  border-radius: var(--radius-sm); padding: .75em .9em; resize: vertical;
}
.form-row input:focus, .form-row textarea:focus{
  outline: none; border-color: var(--sage-deep); background: var(--white);
  box-shadow: 0 0 0 3px rgba(148,164,151,.25);
}
.form-honeypot{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note{ font-size: .85rem; color: #7a7a76; margin-top: -4px; }

/* Thank-you page */
.thanks-box{ text-align: center; padding: 60px 24px; }
.thanks-box .badge{ width: 72px; height: 72px; margin: 0 auto 22px; }
.thanks-box .badge svg{ width: 34px; height: 34px; }

/* Seasonal info banner */
.season-banner{
  background: var(--sage-deep); color: var(--white);
  text-align: center; font-size: .92rem;
  padding: 10px 20px;
}
.season-banner a{ color: var(--white); text-decoration: underline; font-weight: 600; }
.season-banner a:hover{ color: var(--grey); }

/* Brand chip cloud — compact, wraps naturally, no long vertical lists */
.brand-cloud{
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 14px 0 0;
}
.brand-chip{
  display: inline-flex; align-items: center;
  background: var(--white); border: 1px solid rgba(148,164,151,.4);
  border-radius: 999px; padding: 6px 14px;
  font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  color: var(--ink);
}
.brand-chip.more{
  background: transparent; border-style: dashed; color: var(--sage-deep);
  font-weight: 600;
}
.offer-block{ margin-bottom: 44px; }
.offer-block:last-child{ margin-bottom: 0; }
.offer-block h3{ margin-bottom: 6px; }
.offer-block .lead{ margin-bottom: 0; font-size: 1rem; }

/* Compact benefits grid — for "Vorteile auf einen Blick" */
.benefits-grid{
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px;
  margin: 18px 0;
}
@media (max-width: 600px){ .benefits-grid{ grid-template-columns: 1fr; } }
.benefits-grid li{
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .95rem; color: #4d4d4b; list-style: none;
}
.benefits-grid svg{ flex: none; width: 18px; height: 18px; color: var(--sage-deep); margin-top: 2px; }

/* Google rating badge */
.google-badge{
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft);
  padding: 18px 22px;
}
.google-badge .g-icon{ flex: none; width: 34px; height: 34px; }
.google-badge .g-stars{ display:flex; gap:2px; }
.google-badge .g-stars svg{ width:16px; height:16px; color: var(--gold); }
.google-badge .g-text{ font-family: var(--font-head); font-weight: 700; }
.google-badge .g-sub{ color:#6b6b68; font-size:.92rem; font-weight: 400; font-family: var(--font-body); }
.google-badge .btn{ margin-left: auto; padding: .6em 1.2em; font-size: .9rem; }
@media (max-width: 600px){ .google-badge .btn{ margin-left: 0; } }

/* Location teaser (homepage) */
.location-teaser{ display:grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
@media (max-width: 880px){ .location-teaser{ grid-template-columns: 1fr; } }
.location-teaser .map-frame{ min-height: 280px; }
.location-teaser .map-frame iframe{ min-height: 280px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer{ background: var(--ink); color: #ECEAE5; padding: 56px 0 28px; margin-top: 40px; }
.footer-grid{ display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
@media (max-width: 880px){ .footer-grid{ grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4{ color: var(--white); font-size: 1rem; }
.site-footer a{ color: #CFD3CB; }
.site-footer a:hover{ color: var(--coral-deep); }
.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom: 14px; }
.footer-brand img{ height: 42px; }
.footer-script{ font-family: var(--font-script); font-size: 1.4rem; color: var(--white); }
.footer-bottom{
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  display:flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .85rem; color: #B9BDB4;
}
.footer-bottom a{ color: #B9BDB4; }
.social-row{ display:flex; gap: 14px; margin-top: 14px; }
.social-row a{
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center;
}
.social-row svg{ width: 18px; height: 18px; color: var(--white); }
.social-row a:hover{ background: var(--coral-deep); }

/* --------------------------------------------------------------------------
   Misc page-level helpers
   -------------------------------------------------------------------------- */
.page-hero{ padding: 52px 0 10px; }
.page-hero .eyebrow{ display:block; margin-bottom: 10px; }
.badge-row{ display:flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.note-box{
  background: var(--sage-pale); border-radius: var(--radius-sm); padding: 18px 22px;
  font-size: .95rem; color: var(--sage-deep);
}
.legal h2{ margin-top: 1.6em; }
.legal{ max-width: 760px; }

/* --------------------------------------------------------------------------
   Externe Inhalte erst nach Klick (Zwei-Klick-Lösung)
   -------------------------------------------------------------------------- */
.consent-embed{ position: relative; width: 100%; height: 100%; min-height: inherit; }
.consent-embed iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; display:block; }
.consent-embed[data-type="calendly"].is-loaded{ position: static; }
.consent-placeholder{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap: 14px; padding: 28px 22px; text-align:center;
  background: repeating-linear-gradient(135deg, var(--cream, #fbf8f3) 0 14px, #f4efe7 14px 28px);
  color: #5a5a58; font-size: .95rem;
}
.consent-embed[data-type="calendly"] .consent-placeholder{ position: static; min-height: 420px; }
.consent-placeholder strong{ font-family: var(--font-head); color: var(--ink); font-size: 1.1rem; }
.consent-placeholder p{ max-width: 46ch; margin: 0; }
.consent-placeholder .consent-remember{ display:flex; align-items:center; gap:8px; font-size:.85rem; cursor:pointer; }
.consent-placeholder a{ color: var(--coral-deep); }
.map-frame .consent-embed{ min-height: 420px; }
.location-teaser .map-frame .consent-embed{ min-height: 280px; }
