/* Das Blaue Wunder – Stylesheet */
:root {
  --blau: #2876b6;
  --blau-dunkel: #2069a8;
  --blau-hover: #174f80;
  --link: #1d5fa6;
  --tuerkis: #22788f;
  --gelb: #efa822;
  --hellblau: #74a5dd;
  --grau-bg: #f6f6f6;
  --text: #444;
  --text-leise: #555;
  --sans: 'Open Sans', Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--grau-bg); color: #1b1e26; font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--link); }
[hidden] { display: none !important; }
.container { max-width: 1100px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: #000; color: #fff; transition: background .3s; }
/* Startseite: leicht transparent, wird beim Scrollen stufenlos schwarz (Wert setzt site.js) */
.site-header.is-overlay { position: fixed; left: 0; right: 0; background: rgba(0,0,0,var(--hdr-a, .35)); transition: background-color .25s linear; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.site-header.is-overlay.is-solid { -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header__inner { max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; min-height: 80px; }
.site-logo img { height: 52px; width: auto; display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a { font-size: 15px; color: #888; text-decoration: none; padding: 10px 9px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--hellblau); }
.is-overlay .site-nav a:not([aria-current]) { color: #ddd; }
.is-overlay .site-nav a:hover { color: var(--hellblau); }

/* Navigation auf dem Handy: Menü-Knopf, Einträge untereinander mit grossen Tippflächen */
.nav-toggle { display: none; }
.nav-toggle__close { display: none; }
@media (max-width: 900px) {
  .site-header__inner { padding: 8px 16px; min-height: 64px; gap: 0; }
  .site-header__inner { flex-wrap: wrap; }
  .site-logo { flex: 1 1 0; min-width: 0; }
  .site-logo img { height: auto; width: 100%; max-width: 240px; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -8px; border: 0; background: transparent; color: #fff; cursor: pointer; }
  .site-nav { display: none; width: 100%; flex-direction: column; gap: 0; margin-top: 8px; padding: 4px 0 10px; border-top: 1px solid rgba(255,255,255,.18); }
  .site-nav a { font-size: 18px; padding: 15px 4px; color: #bbb; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-header.nav-open .site-nav { display: flex; }
  .site-header.nav-open { background: #000 !important; }
  .site-header.nav-open .nav-toggle__open { display: none; }
  .site-header.nav-open .nav-toggle__close { display: inline; }
}

/* ---------- Bildbänder oben ---------- */
.hero-band { height: 360px; background: #808080 center / cover no-repeat; }
.hero-home { position: relative; height: 100vh; min-height: 520px; background: #000; overflow: hidden; }
.hero-home img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 20%; transform: scale(1.4); transform-origin: 100% 18%; display: block; }
.hero-home::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 160px; background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,0)); }

/* ---------- Startseite: drei Spalten ---------- */
.teasers { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.teaser { color: #fff; padding: clamp(48px,6vw,80px) clamp(28px,4vw,56px) clamp(56px,7vw,100px); display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.teaser h2 { margin: 0; font-weight: 600; font-size: 24px; line-height: 1.2; }
.teaser p { margin: 0 0 18px; font-size: 14px; line-height: 1.85; text-align: justify; hyphens: auto; }
.teaser .btn-outline { margin-top: auto; font-weight: 700; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; border: 2px solid rgba(255,255,255,.85); color: #fff; padding: 16px 40px; text-decoration: none; transition: background .2s, color .2s; }
.teaser--blau { background: var(--blau); }
.teaser--tuerkis { background: #237a8f; }
.teaser--gelb { background: var(--gelb); color: #1e1e1f; }
.teaser--gelb .btn-outline { color: #1e1e1f; border-color: rgba(30,30,31,.85); }
.teaser--blau .btn-outline:hover { background: #fff; color: var(--blau); }
.teaser--tuerkis .btn-outline:hover { background: #fff; color: #237a8f; }
.teaser--gelb .btn-outline:hover { background: #1e1e1f; color: var(--gelb); }

/* ---------- Titel mit Linie ---------- */
.sep-title { display: flex; align-items: center; gap: 20px; }
.sep-title > :first-child { margin: 0; padding: 1px 22px; font-weight: 300; font-size: 22px; line-height: 32px; color: #676767; }
.sep-title span { flex: 1; height: 1px; background: #dcdcdc; min-width: 40px; }
.prose { padding: 28px 22px 0 50px; font-family: var(--sans); font-size: 15px; line-height: 1.7; color: var(--text); text-align: left; hyphens: auto; }
.prose p { margin: 0 0 .8em; }
.prose p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .prose { padding-left: 0; padding-right: 0; }
  .sep-title > :first-child { padding: 0; white-space: normal; }
}

/* ---------- Werkstatt ---------- */
.section { padding-top: 40px; padding-bottom: 8px; }
.carousel { padding-top: 36px; padding-bottom: 24px; }
.carousel__nav { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 12px; }
.carousel__nav button { width: 27px; height: 27px; padding: 0; border: 2px solid #777; background: transparent; color: var(--blau); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.carousel__nav button:hover { border-color: var(--blau); }
.carousel__viewport { overflow: hidden; }
.carousel__track { --per: 3; --idx: 0; display: flex; gap: 20px; transform: translateX(calc(var(--idx) * -1 * (100% + 20px) / var(--per))); transition: transform .8s cubic-bezier(.77,0,.18,1); }
.carousel__track > figure { flex: 0 0 calc((100% - (var(--per) - 1) * 20px) / var(--per)); }
@media (max-width: 959px) { .carousel__track { --per: 2; } }
@media (max-width: 639px) { .carousel__track { --per: 1; } }
.pic { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pic button { display: block; padding: 0; border: 0; background: #e6e6e6; cursor: zoom-in; aspect-ratio: 600 / 403; overflow: hidden; width: 100%; }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .3s; }
.pic button:hover img { opacity: .85; }
.pic figcaption { font-weight: 600; font-size: 16px; letter-spacing: -0.5px; color: #333; }
.movie { padding-top: 28px; padding-bottom: 56px; }
.movie__grid { padding: 28px 22px 0 50px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px 32px; align-items: start; }
.movie__grid .prose { padding: 0; }
.video { position: relative; aspect-ratio: 16 / 9; background: #111; }
.video { background: #111 center / cover no-repeat; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0,0,0,.35); color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-family: var(--sans); }
.video__play:hover { background: rgba(0,0,0,.5); }
.video__play span { font-weight: 600; font-size: 16px; }
.video__play small { font-size: 12px; opacity: .9; max-width: 80%; }

/* ---------- Impressum / Datenschutz / Fakten ---------- */
.legal { padding-top: 56px; padding-bottom: 72px; }
.legal__body { padding: 20px 22px 0 50px; max-width: 820px; font-size: 15px; line-height: 1.7; color: var(--text); }
.legal__body h2 { margin: 28px 0 6px; font-weight: 600; font-size: 17px; color: #333; }
.legal__body p, .legal__body ul { margin: 0 0 .8em; }
.legal__body ul { padding-left: 1.2em; }
.legal__stand { color: #666; font-size: 13px; }
@media (max-width: 640px) { .legal__body { padding-left: 0; padding-right: 0; } }
.site-footer__bar { justify-content: space-between; align-items: center; gap: 16px; }
.site-footer__legal { display: flex; gap: 18px; font-size: 13px; }
.site-footer__legal a { color: #9a9b9e; }
.site-footer__legal a:hover { color: #fff; }
@media (max-width: 640px) { .movie__grid { padding-left: 0; padding-right: 0; } }

/* ---------- Sprüche-Band ---------- */
.quotes { padding: 96px 24px 72px; text-align: center; color: #fff; background: var(--blau); }
.quotes--occasionen { background: var(--tuerkis); }
.quotes--kontakt { background: var(--gelb); color: #1e1e1f; }
.quotes__item { margin: 0 auto; max-width: 900px; min-height: 118px; display: flex; flex-direction: column; align-items: center; gap: 14px; animation: fade .6s; }
.quotes__item p { margin: 0; font-weight: 300; font-size: 22px; line-height: 40px; }
.quotes__item cite { font-style: normal; font-weight: 300; font-size: 15px; }
.quotes__dots { display: flex; justify-content: center; gap: 4px; margin-top: 20px; }
.quotes__dots button { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: inherit; }
.quotes__dots span { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; }
.quotes__dots [aria-current="true"] span { background: currentColor; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: #313235; }
.site-footer__cols { max-width: 1760px; margin: 0 auto; padding: 90px clamp(24px,7vw,120px) 110px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 80px; }
.site-footer h2 { font-weight: 700; font-size: 14px; letter-spacing: .28em; text-transform: uppercase; color: #8a8b8e; margin: 0 0 24px; }
.site-footer p { font-size: 15px; line-height: 1.75; color: #c9cacc; margin: 0; }
.site-footer a { color: #c9cacc; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__bar { background: #1e1e1f; padding: 18px clamp(16px,2vw,28px); display: flex; justify-content: flex-end; }
.to-top { width: 52px; height: 52px; background: #000; color: #fff !important; display: flex; align-items: center; justify-content: center; }
.to-top:hover { background: var(--blau); }

/* ---------- Occasionen-Shop ---------- */
.shopbar { background: #252525; }
.shopbar__inner { padding-top: 19px; padding-bottom: 19px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; }
.shopbar h1 { margin: 0; font-weight: 300; font-size: 20px; line-height: 32px; color: #eee; }
.shopbar h1 small { font-size: 14px; color: #aaa; }
.shop-intro { padding-top: 28px; }
.shop-intro p { margin: 0; font-size: 14px; line-height: 22px; color: var(--text-leise); max-width: 720px; }
.shop-grid { padding-top: 24px; padding-bottom: 64px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 36px 20px; }
.shop-empty { grid-column: 1 / -1; color: var(--text-leise); font-size: 14px; }
.bike { display: flex; flex-direction: column; gap: 10px; }
.bike__img { position: relative; display: block; padding: 0; border: 0; background: #e6e6e6; cursor: pointer; aspect-ratio: 600 / 403; overflow: hidden; width: 100%; }
.bike__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .3s; }
.bike__img:hover img { opacity: .85; }
.bike--x .bike__img img { filter: grayscale(.85); }
.badge { display: inline-block; padding: 4px 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.bike__img .badge { position: absolute; top: 12px; left: 12px; }
.badge--v { background: #dcefe1; color: #1d5530; }
.badge--r { background: var(--gelb); color: #1e1e1f; }
.badge--x { background: #252525; color: #fff; }
.bike h2 { margin: 0; font-weight: 600; font-size: 16px; letter-spacing: -0.5px; line-height: 22px; color: var(--text); }
.bike__spec { font-size: 12px; color: #666; }
.bike__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }
.price { font-size: 18px; font-weight: 600; color: var(--link); }
.bike--x .price, .modal--x .price { color: #6b6b6b; text-decoration: line-through; }
.link-btn { font: inherit; font-size: 12px; border: 0; background: transparent; color: var(--link); padding: 8px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--blau-hover); }

/* ---------- Detailansicht (Modal) ---------- */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(15,15,18,.78); display: flex; align-items: flex-start; justify-content: center; padding: clamp(12px,4vw,48px) 12px; overflow-y: auto; }
.modal__box { position: relative; background: #fff; width: 100%; max-width: 980px; display: flex; flex-wrap: wrap; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.modal__close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 40px; height: 40px; border: 0; background: rgba(255,255,255,.9); color: #333; font-size: 22px; line-height: 1; cursor: pointer; }
.modal__media { flex: 1 1 420px; min-width: 0; background: #e6e6e6; display: flex; flex-direction: column; }
.modal__media > img { width: 100%; flex: 1 1 auto; height: 100%; min-height: 260px; object-fit: cover; display: block; }
@media (max-width: 780px) { .modal__media > img { height: auto; max-height: 60vh; aspect-ratio: 600 / 403; flex: none; } }
.modal--x .modal__media > img { filter: grayscale(.85); }
.modal__thumbs { display: flex; gap: 6px; padding: 6px; background: #fff; flex-wrap: wrap; }
.modal__thumbs button { width: 64px; height: 44px; padding: 0; border: 2px solid transparent; cursor: pointer; background: #e6e6e6; }
.modal__thumbs button[aria-current="true"] { border-color: var(--blau); }
.modal__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal__body { flex: 1 1 340px; min-width: 0; padding: 32px 28px; display: flex; flex-direction: column; gap: 16px; }
.modal__body h2 { margin: 6px 0 0; font-weight: 600; font-size: 24px; letter-spacing: -0.5px; line-height: 1.25; color: #333; }
.modal__body .price { font-size: 24px; }
.modal__head { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.specs { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 13px; line-height: 20px; color: var(--text); border-top: 1px solid #e3e3e3; padding-top: 14px; }
.specs dt { font-weight: 600; color: var(--text-leise); }
.specs dd { margin: 0; }
.modal__desc { margin: 0; font-size: 14px; line-height: 22px; color: var(--text); white-space: pre-line; }
.modal__note { margin: 0; font-size: 13px; line-height: 20px; color: var(--text-leise); }
.btn { font-family: var(--sans); font-size: 14px; font-weight: 600; border: 0; background: var(--blau-dunkel); color: #fff; padding: 14px 22px; cursor: pointer; min-height: 48px; }
.btn:hover { background: var(--blau-hover); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn--dark { background: #333; font-weight: 400; font-size: 13px; }
.btn--dark:hover { background: var(--blau); }

/* ---------- Formulare ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form--sep { border-top: 1px solid #e3e3e3; padding-top: 14px; }
.form h3 { margin: 0; font-weight: 600; font-size: 16px; color: #333; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-leise); }
.form input, .form select, .form textarea { font: inherit; font-size: 15px; color: #222; padding: 10px 12px; border: 1px solid #cfcfcf; border-radius: 0; background: #fff; min-height: 44px; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 2px rgba(40,118,182,.25); }
.form__row { display: flex; flex-wrap: wrap; gap: 14px; }
.form__row > label { flex: 1 1 140px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form__error { margin: 0; color: #a12020; font-size: 13px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks h3 { margin: 0; font-weight: 600; font-size: 18px; color: #333; }
.thanks p { margin: 0; font-size: 14px; line-height: 22px; color: var(--text); }
.thanks { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Kontakt ---------- */
.map { position: relative; height: 440px; background-color: #e8e5df; background-image: linear-gradient(28deg,transparent 46%,#fff 46.4%,#fff 47.6%,transparent 48%), linear-gradient(-62deg,transparent 30%,#fff 30.3%,#fff 31.2%,transparent 31.5%), linear-gradient(105deg,transparent 64%,#f7f1d2 64.3%,#f7f1d2 66%,transparent 66.3%), linear-gradient(170deg,#e8e5df 70%,#aad3df 70%); display: flex; align-items: center; justify-content: center; padding: 24px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__card { background: #fff; padding: 22px 26px; box-shadow: 0 2px 10px rgba(0,0,0,.15); display: flex; align-items: center; gap: 16px; max-width: 100%; }
.map__card div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.map__card strong { font-weight: 600; font-size: 15px; color: #333; }
.map__card span, .map__card small { font-size: 13px; color: var(--text-leise); }
.map__card small { font-size: 11px; max-width: 260px; }
.portraits { padding-top: 56px; padding-bottom: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 32px; }
.portraits figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.portraits img { width: 100%; aspect-ratio: 262 / 175; object-fit: cover; display: block; }
.portraits figcaption { display: flex; flex-direction: column; gap: 2px; }
.portraits figcaption span:first-child { font-weight: 300; font-size: 16px; line-height: 28px; color: var(--text); }
.portraits figcaption span:last-child { font-size: 12px; color: #666; }
.contact { padding-top: 56px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.contact__form { flex: 0 1 360px; min-width: 0; background: #fff; padding: 24px 22px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.contact__form .form { gap: 12px; }
.contact__form .form label { gap: 4px; }
.contact__form .form input, .contact__form .form textarea { font-size: 14px; padding: 8px 10px; min-height: 40px; }
.contact__form .btn { min-height: 40px; padding: 11px 20px; }
.contact__form-title { margin: 0 0 2px; font-weight: 600; font-size: 16px; color: #333; }
.contact__info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; font-size: 14px; line-height: 23px; color: var(--text-leise); }
.contact__info h2 { margin: 0; font-weight: 600; font-size: 18px; line-height: 36px; color: var(--text); }
.contact__info p { margin: 0; }
.contact__info strong { font-weight: 600; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(10,18,40,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; }
.lightbox img { max-width: 100%; max-height: 80vh; display: block; }
.lightbox__bar { display: flex; align-items: center; gap: 20px; color: #fff; }
.lightbox__bar span { font-weight: 600; font-size: 18px; min-width: 200px; text-align: center; }
.lightbox button { width: 48px; height: 48px; border-radius: 999px; border: 2px solid #fff; background: transparent; color: #fff; font-size: 20px; cursor: pointer; }
