/* ==========================================================================
   Waldherr Busreisen – Stylesheet
   Aufbau:  1 Design-Token · 2 Grundlagen · 3 Layout · 4 Kopf/Navigation
            5 Hero · 6 Bausteine · 7 Formular · 8 Karte · 9 Fußzeile
            10 Hilfsklassen · 11 Druck
   ========================================================================== */

/* --- 1 Design-Token ------------------------------------------------------ */
:root {
  /* Farben aus dem Logo abgeleitet: Blaugrau-Palette, kein zusaetzlicher Akzent */
  --c-900: #22303d;
  --c-800: #2e3d4d;
  --c-700: #3d5166;
  --c-600: #4c637a;
  --c-100: #dde3ea;

  --text:    #1e2833;
  --muted:   #51606d;
  --surface: #f4f6f8;
  --line:    #dfe4ea;
  --white:   #ffffff;

  --ok-bg:   #eef5ee;  --ok-line:   #4a7a4e;  --ok-text:   #234826;
  --err-bg:  #fdf0ef;  --err-line:  #a33a2e;  --err-text:  #7d2b21;

  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6rem);
  --radius: 4px;
  --shadow: 0 1px 2px rgba(34,48,61,.06), 0 8px 24px rgba(34,48,61,.07);
}

/* --- Schriften: lokal eingebunden, keine Verbindung zu Dritten ------------ */
@font-face {
  font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/lato-regular.woff2') format('woff2'),
       url('../fonts/lato-regular.woff')  format('woff');
}
@font-face {
  font-family: 'Lato'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/lato-semibold.woff2') format('woff2'),
       url('../fonts/lato-semibold.woff')  format('woff');
}
@font-face {
  font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/lato-bold.woff2') format('woff2'),
       url('../fonts/lato-bold.woff')  format('woff');
}

/* --- 2 Grundlagen -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__body > * { animation: none !important; }
}

body {
  margin: 0;
  font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;            /* keine horizontalen Scrollbalken */
  padding-bottom: env(safe-area-inset-bottom);
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--c-900); margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.35rem + 2.9vw, 3.15rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); }
h4 { font-size: 1.0625rem; }

p, ul, ol { margin: 0 0 1.1em; }
p { max-width: 68ch; text-wrap: pretty; }
strong, b { font-weight: 700; }
small { font-size: .875rem; }

a { color: var(--c-700); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--c-900); }

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

/* Sichtbarer Fokus auf allen bedienbaren Elementen */
:focus-visible {
  outline: 3px solid var(--c-700);
  outline-offset: 2px;
  border-radius: 2px;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* --- 3 Layout ------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 620px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 620px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* Kleine Grossbuchstaben-Zeile, greift die Typografie des Logos auf */
.eyebrow {
  display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--c-700); margin-bottom: .75rem;
}

/* --- Sprunglink ---------------------------------------------------------- */
.skip-link {
  position: absolute; left: .5rem; top: -100px; z-index: 200;
  background: var(--c-800); color: var(--white); padding: .85rem 1.25rem;
  border-radius: var(--radius); text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: .5rem; color: var(--white); }

/* --- 4 Kopfbereich und Navigation ---------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}
.site-header__logo { display: inline-flex; align-items: center; padding: .5rem 0; }
.site-header__logo img { width: 224px; height: 50px; }
@media (min-width: 720px) { .site-header__logo img { width: 250px; height: 56px; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-width: 44px; min-height: 44px; padding: .5rem .75rem;
  font: inherit; font-weight: 700; font-size: .9375rem;
  color: var(--c-800); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle__bars { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor;
}
.nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .85rem .25rem; font-weight: 600; color: var(--c-800);
  text-decoration: none; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--c-900); border-bottom-color: var(--c-100); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--c-700); color: var(--c-900); }

/* Mobil: aufklappbares Menue */
@media (max-width: 899px) {
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav[hidden] { display: none; }
  .site-nav ul { padding: .5rem var(--gutter) 1rem; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a { padding: .95rem .25rem; min-height: 44px; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; }
  .site-nav[hidden] { display: block; }
  .site-nav ul { display: flex; gap: clamp(1rem, 2.2vw, 2rem); align-items: center; }
}

/* --- 5 Hero -------------------------------------------------------------- */
.hero { position: relative; background: var(--c-900); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
/* Verlauf links kräftig (Text lesbar), rechts offen (Busse sichtbar) + Fuß abgedunkelt */
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18,26,34,.88) 0%, rgba(18,26,34,.74) 40%, rgba(18,26,34,.34) 100%),
    linear-gradient(0deg, rgba(18,26,34,.60), rgba(18,26,34,0) 42%);
}
.hero__body {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  min-height: clamp(480px, 74vh, 780px);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  color: var(--white); max-width: 47rem;
}
.hero__body h1 { color: var(--white); margin-bottom: .35em; }
/* Slogan größer und mit vorangestelltem Akzentstrich */
.hero__slogan {
  display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .9rem;
  font-size: clamp(1rem, .9rem + .55vw, 1.3rem); font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: #f2f6fa; margin-bottom: 1.5em;
}
.hero__slogan::before {
  content: ""; width: 2.4rem; height: 3px; border-radius: 3px;
  background: #ffffff; opacity: .85; flex: none;
}
.hero__text { color: #eef2f6; font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); max-width: 42ch; }

/* Sanfter Auftritt der Hero-Inhalte */
@keyframes heroUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__body > * { animation: heroUp .75s cubic-bezier(.2,.7,.2,1) both; }
.hero__body > *:nth-child(1) { animation-delay: .02s; }
.hero__body > *:nth-child(2) { animation-delay: .12s; }
.hero__body > *:nth-child(3) { animation-delay: .22s; }
.hero__body > *:nth-child(4) { animation-delay: .32s; }

/* Sanftes Einblenden beim Scrollen (per JS aktiviert) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* --- 6 Bausteine --------------------------------------------------------- */
/* Schaltflaechen */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.5rem;
  font: inherit; font-weight: 700; text-align: center; text-decoration: none;
  border: 2px solid var(--c-800); border-radius: var(--radius); cursor: pointer;
  background: var(--c-800); color: var(--white);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--c-600); border-color: var(--c-600); color: var(--white); }
.btn--ghost { background: transparent; color: var(--c-800); }
.btn--ghost:hover { background: var(--c-800); color: var(--white); }
.btn--on-dark { background: var(--white); border-color: var(--white); color: var(--c-900); }
.btn--on-dark:hover { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--c-900); border-color: var(--white); }
.btn--wide { width: 100%; }
@media (min-width: 480px) { .btn--wide { width: auto; } }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Karten */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem); height: 100%;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card--link { display: block; text-decoration: none; color: inherit; transition: box-shadow .15s ease, border-color .15s ease; }
.card--link:hover { border-color: var(--c-100); box-shadow: var(--shadow); color: inherit; }
.card__more { display: inline-block; margin-top: .75rem; font-weight: 700; color: var(--c-700); }

/* Merkmalsliste mit Haken */
.features { list-style: none; padding: 0; margin: 0; }
.features li { position: relative; padding-left: 1.6rem; margin-bottom: .35rem; }
.features li::before {
  content: ''; position: absolute; left: .15rem; top: .62em;
  width: .42rem; height: .78rem; border: solid var(--c-700);
  border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-50%);
}

/* Fahrzeuge */
.vehicle { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.vehicle + .vehicle { margin-top: clamp(2rem, 5vw, 3.5rem); }
.vehicle__gallery { display: grid; gap: 2px; background: var(--line); }
@media (min-width: 700px) { .vehicle__gallery--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 700px) { .vehicle__gallery--3 { grid-template-columns: repeat(3, 1fr); } }
.vehicle__gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.vehicle__body { padding: clamp(1.25rem, 3.5vw, 2rem); }
.vehicle__meta {
  display: inline-block; font-weight: 700; font-size: .8125rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-700); margin-bottom: .5rem;
}
.vehicle__seats {
  display: inline-flex; align-items: baseline; gap: .4rem;
  font-size: 1.5rem; font-weight: 700; color: var(--c-900); margin-bottom: .75rem;
}
.vehicle__seats span { font-size: 1rem; font-weight: 600; color: var(--muted); }
@media (min-width: 860px) { .vehicle__cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem,4vw,3rem); } }
.vehicle__cols > *:last-child > :last-child { margin-bottom: 0; }

/* Platzhalter fuer noch fehlende Fotos – rein gestaltet, keine externe Quelle */
.photo-placeholder {
  min-height: clamp(200px, 22vw, 300px); display: grid; place-content: center; text-align: center;
  gap: .5rem; padding: 1.5rem; color: var(--c-700);
  background: repeating-linear-gradient(135deg, var(--surface) 0 12px, #eef1f5 12px 24px);
  border-bottom: 1px solid var(--line);
}
.photo-placeholder strong { display: block; font-size: .9375rem; letter-spacing: .08em; text-transform: uppercase; }
.photo-placeholder span { font-size: .875rem; color: var(--muted); max-width: 26ch; margin-inline: auto; }

/* Kennzahlen-Streifen */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 620px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts dt, .facts b { display: block; font-size: 1.6rem; font-weight: 700; color: var(--c-900); line-height: 1.2; }
.facts span { color: var(--muted); font-size: .9375rem; }

/* Auffaelliger Hinweiskasten (z. B. offener Rechtspunkt) */
.notice {
  border: 2px solid var(--err-line); background: var(--err-bg); color: var(--err-text);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-weight: 600;
}
.notice p:last-child { margin-bottom: 0; }

/* Platzhalter-Markierung im sichtbaren Text */
.placeholder {
  background: #fff6d9; border-left: 3px solid #b58900; padding: .9rem 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0; color: #4a3b00; margin-bottom: 2rem;
}
.placeholder p:last-child { margin-bottom: 0; }

/* Kontaktdaten-Liste */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 8.5rem 1fr; gap: .5rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.contact-list li:first-child { border-top: 0; }
.contact-list dt, .contact-list b { font-weight: 700; color: var(--c-900); }

/* Aufzaehlung von Leistungen im Fliesstext */
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1.5rem; }
.tag-list li {
  border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem;
  font-size: .9375rem; font-weight: 600; color: var(--c-700); background: var(--white);
}

/* Aufruf-Block */
.cta { background: var(--c-800); color: var(--white); }
.cta h2 { color: var(--white); }
.cta a:not(.btn) { color: var(--white); }
.cta p { color: #e3e9ef; }

/* --- 7 Formular ---------------------------------------------------------- */
.form { max-width: 44rem; }
.form__grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form__grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: block; margin-bottom: 1.1rem; }
.field > span { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--c-900); }
.field .hint { display: block; font-weight: 400; font-size: .875rem; color: var(--muted); margin-top: .2rem; }
.req { color: var(--err-text); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  font: inherit; color: var(--text); background: var(--white);
  border: 1px solid #7d8892; border-radius: var(--radius); appearance: none;
}
textarea { min-height: 10rem; resize: vertical; line-height: 1.6; }
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--c-700) 50%),
                    linear-gradient(135deg, var(--c-700) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--c-700); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--err-line); border-width: 2px; }

.checkbox { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; margin-bottom: 1.5rem; }
.checkbox input { width: 24px; height: 24px; margin: .35rem 0 0; accent-color: var(--c-800); }
.checkbox span { font-size: .9375rem; }

/* Honeypot: fuer Menschen unsichtbar, fuer Bots ausfuellbar */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.msg { border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.75rem; border-left: 4px solid; }
.msg h2 { font-size: 1.15rem; margin-bottom: .35em; }
.msg p:last-child, .msg ul:last-child { margin-bottom: 0; }
.msg--ok  { background: var(--ok-bg);  border-color: var(--ok-line);  color: var(--ok-text); }
.msg--ok h2 { color: var(--ok-text); }
.msg--err { background: var(--err-bg); border-color: var(--err-line); color: var(--err-text); }
.msg--err h2 { color: var(--err-text); }
.msg--err ul { padding-left: 1.2rem; }

/* --- 8 Karte (Zwei-Klick-Loesung) ---------------------------------------- */
.map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.map__placeholder {
  display: grid; place-content: center; gap: 1rem; text-align: center;
  min-height: 320px; padding: 2rem 1.5rem; background: var(--c-800); color: var(--white);
}
.map__placeholder p { color: #dbe2ea; max-width: 44ch; margin-inline: auto; }
.map__placeholder p:last-of-type { margin-bottom: 0; }
.map__placeholder a { color: var(--white); }
.map__address { font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: .25rem; }
.map__frame { display: block; width: 100%; height: 420px; border: 0; }
.map__below { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding: .85rem 1rem; font-size: .9375rem; }

/* --- 9 Fußzeile ---------------------------------------------------------- */
.site-footer { background: var(--c-900); color: #ccd5de; padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; }
.site-footer a:not(.btn) { color: var(--white); }
.site-footer h2 { color: var(--white); font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer__grid { display: grid; gap: 2.25rem; }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer li a { display: inline-block; padding: .25rem 0; min-height: 24px; }
.site-footer address { font-style: normal; }
.site-footer__logo img { width: 210px; height: 47px; margin-bottom: 1rem; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.16); font-size: .9375rem;
}

/* --- Mobiler Anruf-Button ------------------------------------------------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background: var(--c-800); border-top: 1px solid rgba(255,255,255,.15);
}
.call-bar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; font-weight: 700; font-size: 1.0625rem;
  color: var(--c-900); background: var(--white); border-radius: var(--radius); text-decoration: none;
}
body.has-call-bar { padding-bottom: 4.75rem; }
@media (min-width: 768px) { .call-bar { display: none; } body.has-call-bar { padding-bottom: 0; } }

/* --- 10 Hilfsklassen ------------------------------------------------------ */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--muted); }
.mb-0 { margin-bottom: 0; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.prose dt { font-weight: 700; margin-top: 1rem; }
.prose dd { margin: 0 0 .5rem; }


/* Sehr schmale Bildschirme: lange Wörter/Links umbrechen, kein Überlauf */
.prose { overflow-wrap: break-word; hyphens: auto; }
.prose a, .contact-list a, .site-footer a { overflow-wrap: anywhere; }

/* --- 11 Druck ------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .call-bar, .map, .btn-row { display: none !important; }
  body { font-size: 11pt; color: #000; }
  a::after { content: ' (' attr(href) ')'; font-size: 9pt; }
}
