/* ==========================================================================
   LAYOUT.CSS – Fahrschule Häseler
   Struktur, Header/Footer, Container, Seitenabstände, Hero
   ========================================================================== */

/* ---------- Container & Seitenränder ---------- */
:root{
  --page-max: 1200px;
  --pad-x: 20px;
}

.container{
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  box-sizing: border-box;
}

section{ margin-block: 40px; }

/* ---------- Header: Logo links, Nav rechts ---------- */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.site-header .nav-wrap{
  display: flex;
  align-items: center;
  justify-content: space-between; /* hält Logo sichtbar */
  gap: 16px;
  padding-block: 10px;
  overflow: hidden;               /* nichts ragt heraus */
  box-sizing: border-box;
}

.brand{ display:flex; align-items:center; min-width:140px; }
.brand img{ height: 60px; width:auto; display:block; }

/* Navigation – einzeilig; wird scrollbar, nicht umbrechen */
.nav{
  flex: 1;
  display: flex;
  justify-content: flex-end;
  overflow-x: auto;               /* falls zu breit, horizontal scrollen */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar{ display:none; }

.nav ul{
  list-style: none; margin:0; padding:0;
  display: flex; align-items: center; gap: 18px;
  white-space: nowrap; flex-wrap: nowrap;
}
.nav a, .nav button{
  font: inherit; color: inherit; text-decoration: none;
  background: transparent; border: 0; padding: 8px 10px;
  cursor: pointer;
}
.nav .btn{ border-radius: 999px; padding: 10px 16px; }
.nav .btn.btn-outline{ border: 1px solid #e5e7eb; background:#fff; }
.nav .btn.btn-primary{ background:#e30613; color:#fff; }

/* Hamburger nur mobil sichtbar */
.nav-toggle{
  display:none; background:none; border:0; padding:6px; cursor:pointer;
}
.nav-toggle .bar{display:block; width:22px; height:2px; background:#111; margin:5px 0; border-radius:1px;}

/* ---------- Hero ---------- */
.hero{
  padding-block: 40px 24px;
  background: radial-gradient(1200px 300px at 85% -50px, #ffe7e9 0, rgba(255,255,255,0) 60%);
}
.hero .hero-inner{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
}
.hero .hero-text h1{ margin: 0 0 10px; line-height: 1.1; }
.hero .hero-text p{ margin: 0 0 16px; color:#6b7280; }
.hero-cta{ display:flex; gap:12px; flex-wrap:wrap; }
.hero-badges{ display:flex; gap:18px; padding:0; margin:12px 0 0; list-style:none; }
.hero-media{ display:flex; justify-content:center; align-items:center; padding:20px; }
.hero-image{ width:100%; max-width:550px; border-radius:16px; box-shadow:0 8px 18px rgba(0,0,0,.12); object-fit:cover; }

/* ---------- Grids & Cards außerhalb der Komponenten ---------- */
.grid-3{
  display:grid; gap:24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px){
  .grid-3{ grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer{
  margin-top: 40px;
  background:#fff;
  border-top: 1px solid #f1f1f1;
}
.footer-grid{
  display:grid; gap: 20px;
  grid-template-columns: 1.2fr 1fr auto;
  align-items:center;
  padding-block: 20px;
}
.site-footer img{ height: 65px; width:auto; display:block; opacity:.95; }
.footer-cta .btn{ border-radius:999px; padding:10px 16px; }

/* ---------- Responsiveness ---------- */
@media (max-width: 1100px){
  /* Hamburger aktivieren */
  .nav-toggle{ display:block; }
  .nav{
    position:absolute; top:64px; left:0; right:0;
    display:none; overflow:visible; /* im geöffneten Zustand nicht scrollen lassen */
    background:#fff; border-top:1px solid #f0f0f0;
    box-shadow:0 10px 24px rgba(0,0,0,.08);
  }
  .nav.open{ display:block; }
  .nav ul{ flex-direction: column; align-items: stretch; gap:10px; padding:14px; }
  .nav a, .nav button{ text-align:left; padding:12px 14px; }
  .nav .btn.btn-primary{ width:100%; text-align:center; }

  /* Hero auf eine Spalte */
  .hero .hero-inner{ grid-template-columns: 1fr; }
  .hero-media{ padding-top:0; }
}

@media (max-width: 720px){
  .brand img{ height: 34px; }
  .footer-grid{ grid-template-columns: 1fr; text-align: left; }
}

/* ---------- Kleinigkeiten ---------- */
.muted{ color:#6b7280; }
.link-arrow{ text-decoration:none; position: relative; }
.link-arrow::after{ content:"→"; margin-left:6px; }


/* Hero-Titel wie im Referenzbild */
.hero .hero-text { 
  max-width: 560px;                 /* begrenzt die Zeilenlänge */
}

.hero-title{
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .2px;
  margin: 0 0 14px;
  /* groß, aber responsiv */
  font-size: clamp(38px, 6vw, 68px);
}

.hero-title .accent{
  color: var(--accent, #e30613);
  display: inline-block;            /* sauberes Zeilenende */
}

/* Intro-Text unter dem Titel etwas präsenter */
.hero .hero-text p{
  margin: 0 0 16px;
  color: #6b7280;
  font-size: clamp(15px, 1.3vw, 18px);
  max-width: 60ch;
}

/* Buttons-Bereich eng zusammen */
.hero-cta{ gap: 12px; flex-wrap: wrap; }