/* Garage Morina – Stylesheet */

:root {
  --red: #c8102e;
  --red-dark: #9e0c24;
  --ink: #16181d;
  --ink-2: #23262d;
  --text: #2b2f36;
  --muted: #5d6470;
  --line: #e3e5e9;
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  --wrap: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* Header */
.topbar { background: var(--ink); color: #c9ccd2; font-size: .875rem; }
.topbar .wrap { display: flex; gap: 20px; justify-content: flex-end; align-items: center; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand img { width: 180px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 6px; }
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--red); }
.nav .btn { margin-left: 8px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; background: var(--red); }
.nav a.btn-primary:hover { background: var(--red-dark); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 12px 22px; border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .95rem; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero { --split: max(46%, calc(50% - 10px)); }
.hero picture { position: absolute; top: 0; bottom: 0; right: 0; left: var(--split); }
.hero picture img { width: 100%; height: 100%; object-fit: cover; object-position: 32% 30%; }
.hero::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--split); width: 18%; background: linear-gradient(90deg, var(--ink), rgba(22,24,29,0)); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(64px, 12vw, 140px); padding-bottom: clamp(64px, 12vw, 140px); }
.hero-content { max-width: 520px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.2rem; color: #e6e7ea; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--red); padding: 4px 10px; border-radius: 4px; margin-bottom: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.open-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: .95rem; color: #e6e7ea; }
.open-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #9aa0a8; }
.open-status.is-open::before { background: #2ecc71; box-shadow: 0 0 0 4px rgba(46,204,113,.25); }
.open-status.is-closed::before { background: #e67e22; }

.page-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.page-hero picture, .page-hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,24,29,.9), rgba(22,24,29,.55)); }
.page-hero .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #e6e7ea; max-width: 620px; font-size: 1.15rem; margin: 0; }
.page-hero.plain { background: var(--ink-2); }
.page-hero.plain::after { display: none; }
.page-hero.plain .wrap { padding-top: 48px; padding-bottom: 48px; }

/* Seasonal notice */
.notice { background: #fff4d6; border-bottom: 1px solid #f0dc9f; color: #5c4600; font-size: .95rem; }
.notice .wrap { padding-top: 10px; padding-bottom: 10px; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; }
.notice a { color: #5c4600; font-weight: 700; }
.notice[hidden] { display: none; }
.notice-closure { background: #fde8e8; border-bottom-color: #f3c2c2; color: #6b1414; font-weight: 600; }

/* Saison-Button (nur mobil, ersetzt den Hinweisbalken) */
.season-fab { display: none; }
.season-fab {
  position: fixed; right: 16px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); z-index: 59;
  width: 56px; height: 56px; border-radius: 50%; place-items: center;
  background: #fff; color: var(--ink);
  box-shadow: 0 2px 6px rgba(0,0,0,.18), 0 8px 24px rgba(0,0,0,.18);
  animation: fab-in .45s cubic-bezier(.2,.9,.3,1.3) .3s both;
}
.season-fab { border: 0; padding: 0; cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; }
.season-fab:hover, .season-fab:active { color: var(--ink); }

.season-pop { display: none; }
.season-pop {
  position: fixed; right: 16px; bottom: calc(140px + env(safe-area-inset-bottom, 0px)); z-index: 61;
  width: min(300px, calc(100vw - 32px)); padding: 18px 18px 16px;
  background: #fff; color: var(--text); border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15), 0 16px 40px rgba(0,0,0,.2);
  font-size: .95rem; line-height: 1.5;
  animation: pop-in .2s ease-out both;
}
.season-pop::after {
  content: ""; position: absolute; right: 22px; bottom: -7px; width: 14px; height: 14px;
  background: #fff; transform: rotate(45deg); border-radius: 0 0 3px 0;
}
.season-pop strong { display: block; color: var(--ink); font-size: 1.05rem; margin: 0 28px 4px 0; }
.season-pop p { margin: 0 0 14px; color: var(--muted); }
.season-pop .btn { width: 100%; }
.notice .season-pop .btn-primary, .notice .season-pop .btn-primary:hover { color: #fff; }
.season-pop-close {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: none; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.season-pop-close:hover { background: var(--bg-soft); color: var(--ink); }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.season-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--red); opacity: 0; pointer-events: none;
  animation: fab-ring 1.4s ease-out 1.4s 2;
}
.season-fab-tyre { width: 32px; height: 32px; animation: tyre-roll 1.1s ease-in-out .5s both; }
.season-fab-badge {
  position: absolute; top: -3px; right: -3px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--red); color: #fff; border: 2px solid #fff;
}
.season-fab-badge svg { width: 13px; height: 13px; }
.notice[data-season="winter"] .i-summer, .notice[data-season="summer"] .i-winter { display: none; }

@keyframes fab-in { from { opacity: 0; transform: translateY(24px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes tyre-roll { 0% { transform: rotate(-240deg); } 75% { transform: rotate(18deg); } 100% { transform: rotate(0); } }
@keyframes fab-ring { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #c9ccd2; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p { color: #aab0b9; }
.kicker { color: var(--red); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; display: block; }

/* Value strip */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.values div { background: #fff; padding: 22px 20px; display: flex; gap: 12px; align-items: center; font-weight: 600; color: var(--ink); }
.values svg { width: 28px; height: 28px; color: var(--red); flex: none; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card .icon { width: 48px; height: 48px; border-radius: 10px; background: rgba(200,16,46,.08); color: var(--red); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.badge { display: inline-block; align-self: flex-start; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 4px; margin-bottom: 12px; }

/* About split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.checklist { list-style: none; padding: 0; margin: 24px 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.signature { font-weight: 700; color: var(--ink); }
.signature span { display: block; font-weight: 400; color: var(--muted); font-size: .95rem; }

/* Services page */
.service-group { display: grid; grid-template-columns: 300px 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.service-group:first-child { border-top: 0; padding-top: 0; }
.service-group h2 { font-size: 1.5rem; display: flex; gap: 12px; align-items: center; }
.service-group h2 svg { width: 28px; height: 28px; color: var(--red); flex: none; }
.service-group > div > p { color: var(--muted); }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.service-list li { background: var(--bg-soft); border-radius: 8px; padding: 14px 16px; }
.service-list strong { display: block; color: var(--ink); }
.service-list span { font-size: .95rem; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--red); color: #fff; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 48px; padding-bottom: 48px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 4px; }
.cta-band p { margin: 0; color: #ffe1e5; }
.cta-band .btn-primary { background: #fff; color: var(--red); }
.cta-band .btn-primary:hover { background: var(--ink); color: #fff; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.info-list { list-style: none; margin: 0 0 28px; padding: 0; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 3px; }
.info-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.info-list a:hover { color: var(--red); }
.info-list small { display: block; color: var(--muted); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 600; color: var(--ink); width: 40%; }
.hours tr.today th, .hours tr.today td { color: var(--red); }
.section-dark .hours th { color: #fff; }
.section-dark .hours th, .section-dark .hours td { border-color: #353943; }
.section-dark .hours tr.today th, .section-dark .hours tr.today td { color: #ff6b81; }
.hint { font-size: .9rem; color: var(--muted); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.form h2 { font-size: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 11px 12px; border: 1px solid #c9cdd4; border-radius: 8px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,.15); }
.field textarea { min-height: 110px; resize: vertical; }
.req { color: var(--red); }

.map-box { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); min-height: 360px; display: grid; place-items: center; text-align: center; color: #c9ccd2; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { padding: 32px; max-width: 460px; }
.map-consent strong { color: #fff; font-size: 1.15rem; display: block; margin-bottom: 8px; }
.map-consent p { font-size: .95rem; }
.map-consent .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.map-consent a:not(.btn) { color: #fff; }

/* Legal pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }
.todo { background: #fff4d6; padding: 0 4px; border-radius: 3px; }

/* Footer */
.site-footer { background: var(--ink); color: #aab0b9; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.footer-logo img { width: 150px; }
.footer-bottom { border-top: 1px solid #2c3038; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; grid-template-columns: none; }

/* Mobile call bar */
.callbar { display: none; }

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .service-group { grid-template-columns: 1fr; gap: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar { display: none; }
  .site-header .wrap { min-height: 64px; }
  .brand img { width: 150px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; }
  .hero picture { position: relative; display: block; left: auto; height: 260px; }
  .hero picture img { object-position: 35% 25%; }
  .hero::after { display: none; }
  .hero .wrap { padding-top: 32px; padding-bottom: 48px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .grid-3, .grid-2, .split, .form-row, .service-list { grid-template-columns: 1fr; }
  .values div { padding: 16px; font-size: .95rem; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }

  .notice { background: none; border: 0; }
  .notice .wrap { display: none; }
  /* Betriebsferien bleiben auch mobil ein Balken */
  .notice.notice-closure { background: #fde8e8; border-bottom: 1px solid #f3c2c2; }
  .notice.notice-closure .wrap { display: flex; }
  .season-fab { display: grid; }
  .season-pop:not([hidden]) { display: block; }

  body { padding-bottom: 64px; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -4px 16px rgba(0,0,0,.15); }
  .callbar a { display: flex; gap: 8px; align-items: center; justify-content: center; min-height: 56px; font-weight: 700; text-decoration: none; color: #fff; background: var(--red); }
  .callbar a + a { background: var(--ink); }
  .callbar svg { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .season-fab, .season-fab::after, .season-fab-tyre, .season-pop { animation: none; }
}
