:root{
  --brand:#002b5c;
  --gold:#d4af37;
  --bg:#f8f9fa;
  --text:#222;
  --line:#e5e7eb;
}
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{ font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; background:var(--bg); color:var(--text); }
a{ color:inherit; }

/* Layout */
.wrap{ max-width:1100px; margin:0 auto; padding:0 16px; }

/* Header */
header{ background:var(--brand); color:#fff; position:sticky; top:0; z-index:10; }
.header-bar{ display:flex; align-items:center; gap:12px; justify-content:space-between; min-height:80px; }
.brand img{ max-height:48px; width:auto; display:block; }

/* Nav */
.nav{ display:flex; gap:10px; }
.nav a{ color:#fff; text-decoration:none; padding:.4rem .6rem; border-radius:8px; }
.nav a:hover{ background:rgba(255,255,255,.12); }

/* Mobile Toggle */
.menu-toggle{ display:none; }
@media (max-width: 900px){
  .menu-toggle{
    display:inline-flex; align-items:center; justify-content:center;
    width:48px; height:44px; border-radius:10px; background:transparent;
    color:var(--gold); border:2px solid var(--gold); font-size:1.6rem; line-height:1; cursor:pointer;
  }
  .nav{ display:none; position:absolute; right:16px; top:68px; flex-direction:column; background:var(--brand); padding:10px; border-radius:10px; box-shadow:0 10px 30px rgba(0,0,0,.25); }
  .nav a{ min-width:200px; text-align:right; }
  .nav.active{ display:flex; }
}

/* Sections */
section{ padding: 1.25rem 0; }
section h2{margin:0 0 .6rem 0; color:var(--brand); }
p{ line-height:1.6; }

/* Hero */
.hero{ background:#fff; }
.hero-inner{ display:grid; grid-template-columns: 1.1fr .9fr; gap:20px; align-items:center; }
@media (max-width: 900px){ .hero-inner{ grid-template-columns:1fr; } }
.hero-text h1{ margin:.2rem 0 .2rem 0; font-size:clamp(1.8rem,4vw,2.4rem); }
.hero-text p{ margin:.3rem 0 .8rem 0; color:#444; }
.hero-media img{ width:100%; height:auto; border-radius:12px; display:block; }

/* Buttons */
.btn{ display:inline-flex; align-items:center; gap:8px; padding:.7rem 1rem; border-radius:10px; border:1px solid var(--line); background:#fff; color:var(--brand); text-decoration:none; font-weight:600; }
.btn.primary{ background:var(--gold); border-color:transparent; color:#111; }

/* About / Bild */
.about-photo{ display:block; margin:.6rem auto 0; max-width:320px; width:100%; border-radius:12px; }

/* Occasionen */
.offer-photo{ display:block; margin:.6rem auto 0; max-width:320px; width:100%; border-radius:12px; }

/* Galerie – gleich grosse Kacheln */
.gallery{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  column-gap: 12px;
  row-gap: 8px;
  margin-top: .5rem;
}
.gallery a{ display:block; border-radius:10px; overflow:hidden; }
.gallery img{
  display:block;
  width:100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .25s ease;
}
.gallery a:hover img{ transform: scale(1.03); }

/* CSS-Lightbox (via :target) */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.85);
  z-index: 1000;
}
.lightbox:target{ display: flex; }
.lightbox img{
  max-width: min(1100px, 95vw);
  max-height: 90vh;
  width: auto; height: auto;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.lb-close{
  position: fixed;
  top: 16px; right: 16px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  text-decoration: none;
  font-size: 26px; color: #fff;
  background: rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.25);
  border-radius: 50%;
}

/* Footer */
footer{ background:var(--brand); color:#fff; }
.footer-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0; flex-wrap:wrap; }
footer a{ color:#fff; text-decoration:underline; }

/* Rechtliches via :target (ohne JS) */
.legal-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.45);
  z-index: 1200;
}
.legal-overlay:target{ display: flex; }
.legal-box{
  background:#fff; color:#111;
  width:min(880px, 92vw);
  max-height: 86vh;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  box-shadow:0 10px 40px rgba(0,0,0,.15);
}
.legal-head{
  position: sticky; top:0; z-index:1;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 14px; background:#fff; border-bottom:1px solid #eee;
}
.legal-close{
  text-decoration:none; color:#111; font-size:22px;
  display:inline-grid; place-items:center;
  width:36px; height:36px; border-radius:8px; background:#f5f5f5;
}
.legal-close:focus{ outline:2px solid #111; outline-offset:2px; }
.legal-body{ padding: 12px 14px 18px; line-height:1.6; }
.legal-body h3{ margin: 14px 0 6px; }

/* Top Button */
#topBtn{
  position: fixed;
  right: 12px; bottom: 12px;
  display: none;
  z-index: 1300;
  min-width: 44px; min-height: 44px;
  padding: 10px 12px; border:0; border-radius:999px;
  background: var(--brand); color:#fff; cursor:pointer;
}
#topBtn.is-visible{ display: grid; place-items: center; }
#topBtn:hover{ background:#001c3d; }

header { position: relative; z-index: 10; }
.menu-toggle { position: relative; z-index: 11; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
/* optionaler Style, wenn du .is-open aus dem JS nutzt */
.menu-toggle.is-open { background: rgba(212,175,55,.12); }

/* === Texte im Inhalt zentrieren (betrifft nur <main>) === */
main, 
main h1, 
main h2, 
main h3, 
main p {
  text-align: center;
}

/* Bilder im Content sicher mittig (falls noetig) */
.about-photo,
.offer-photo,
.hero-media img {
  margin-left: auto;
  margin-right: auto;
}

/* Footer-Text mittig (optional, wenn du willst) */
.footer-row {
  justify-content: center;   /* statt space-between */
  text-align: center;
}
.footer-row p { margin: 4px 0; }

/* === Bereiche, die linksbuendig bleiben sollen === */
.nav, .nav a { text-align: left; }                 /* Navigation */
.legal-body, 
.legal-body h2, 
.legal-body h3, 
.legal-body p, 
.legal-body li { text-align: left; }               /* Impressum/Datenschutz */

/* ===== Occasionen (Karten ohne Bilder) ===== */
.offers{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: .5rem;
}

.offer{
  background:#fff;
  color:#111;
  border:1px solid var(--line);
  border-radius:12px;
  padding:14px;
  box-shadow:0 8px 22px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.offer:hover{
  transform: translateY(-2px);
  box-shadow:0 12px 28px rgba(0,0,0,.12);
}

.offer-title{
  margin:0 0 6px 0;
  font-size:1.05rem;
  display:flex; align-items:center; gap:.4rem;
}

/* kleines Boots-Icon per Emoji – kein Bild noetig */
.offer-title::before{
  content: "🚤";
  font-size: 1.1em;
  line-height: 1;
}

.offer-meta{
  list-style: none;
  margin: 6px 0 10px 0;
  padding: 0;
  color: #555;
  font-size: .95rem;
}
.offer-meta li{ margin: 2px 0; }

.offer-actions{ margin-top: 8px; }
.offer .btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}


