:root{
  --bg:#f6f9fc;
  --card:#ffffff;
  --text:#0a1b3d;
  --muted:#4a5a7a;
  --border:rgba(10,27,61,.12);
  --shadow:0 10px 30px rgba(10,27,61,.08);
  --accent:#1a4b8f;
  --accent2:#0e3568;
  --radius:14px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
}

a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

.container{width:min(1100px, calc(100% - 32px)); margin:0 auto;}

.site-header{
  position:sticky; top:0; z-index:10;
  background:rgba(246,249,252,.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border);
}
.header-inner{
  display:flex; gap:16px; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand-title{font-weight:700; font-size:18px}
.brand-subtitle{color:var(--muted); font-size:13px}

.nav{
  display:flex; flex-wrap:wrap; gap:10px 14px; justify-content:flex-end;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size:14px;
}
.nav a{padding:8px 10px; border-radius:10px}
.nav a[aria-current="page"]{background:rgba(26,75,143,.10)}
.nav a:hover{background:rgba(26,75,143,.08); text-decoration:none}

.hero{padding:26px 0 10px}
.hero-inner{display:grid; grid-template-columns:1fr; gap:16px}
.hero h1{margin:0 0 10px; font-size:28px}
.hero p{margin:0 0 14px; color:var(--muted)}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:12px 14px;
  box-shadow:0 6px 18px rgba(10,27,61,.06);
}
.card-title{
  font-weight:700;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
.card-text{color:var(--muted); margin-top:4px}

.hero-cards{display:grid; grid-template-columns:1fr; gap:10px; margin:14px 0}
.cta-row{display:flex; gap:10px; flex-wrap:wrap; margin:8px 0 10px}

.btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:12px;
  background:var(--accent);
  color:#fff;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight:600;
  border:1px solid transparent;
}
.btn:hover{background:var(--accent2); text-decoration:none}
.btn-ghost{
  background:transparent;
  color:var(--accent);
  border:1px solid rgba(26,75,143,.25);
}
.btn-ghost:hover{background:rgba(26,75,143,.08); color:var(--accent2)}

.hero-media{
  margin:0;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.hero-media img{display:block; width:100%; height:auto}

.section{padding:18px 0 30px}
.grid-2{display:grid; grid-template-columns:1fr; gap:16px}

.page-title{margin:0 0 8px; font-size:26px}

.muted{color:var(--muted)}
.small{font-size:14px}
.spacer{height:10px}

.contact-box{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:0 6px 18px rgba(10,27,61,.06);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.photo{
  margin:0;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:0 6px 18px rgba(10,27,61,.06);
}
.photo img{display:block; width:100%; height:auto}

.map{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.map iframe{display:block; width:100%; height:300px; border:0}

.site-footer{
  border-top:1px solid var(--border);
  background:rgba(255,255,255,.5);
  padding:16px 0;
}
.footer-inner{
  display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between;
  color:var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size:13px;
}

/* Galerie-Grid für Bungalow-Seiten */
.gallery-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-top:14px;
}
.gallery-grid img{
  width:100%;
  height:240px;
  object-fit:cover;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:var(--card);
  box-shadow:0 6px 18px rgba(10,27,61,.06);
}

@media (min-width:900px){
  .hero-inner{grid-template-columns:1.2fr .8fr; align-items:start}
  .hero-cards{grid-template-columns:repeat(3, 1fr)}
  .grid-2{grid-template-columns:1fr 1fr}
}
@media (min-width:700px){
  .gallery-grid{grid-template-columns:repeat(2, 1fr)}
}
/* Galerie Thumbnails */
.thumb{
  display:block;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--border);
  background:var(--card);
  box-shadow:0 6px 18px rgba(10,27,61,.06);
}
.thumb img{
  display:block;
  width:100%;
  height:240px;
  object-fit:cover;
}

/* Lightbox */
.lightbox{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.75);
  z-index:1000;
  align-items:center;
  justify-content:center;
}
.lightbox:target{display:flex}
.lightbox img{
  max-width:90%;
  max-height:90%;
  border-radius:12px;
  background:#fff;
}
.lightbox-close{
  position:fixed;
  top:16px;
  right:20px;
  font-size:32px;
  color:#000;
  background:#fff;
  width:42px;
  height:42px;
  border-radius:50%;
  text-align:center;
  line-height:42px;
  text-decoration:none;
}
/* Galerie (Variante 2) – unabhängig von .gallery-grid */
.gallery2{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.gallery2 .thumb{
  display:block;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--border);
  background:var(--card);
  box-shadow:0 6px 18px rgba(10,27,61,.06);
}

.gallery2 .thumb img{
  display:block;
  width:100%;
  height:240px;
  object-fit:cover;
}

@media (min-width:700px){
  .gallery2{ grid-template-columns: repeat(2, 1fr); }
  .gallery2 .thumb img{ height:260px; }
}
@media (min-width:1000px){
  .gallery2{ grid-template-columns: repeat(3, 1fr); }
  .gallery2 .thumb img{ height:240px; }
}

/* Lightbox ohne JavaScript (:target) */
.lightbox{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.75);
  z-index:1000;
  padding:16px;
}

.lightbox:target{
  display:flex;
  align-items:center;
  justify-content:center;
}

.lightbox img{
  max-width:min(1100px, calc(100% - 24px));
  max-height:calc(100vh - 80px);
  width:auto;
  height:auto;
  border-radius:12px;
  background:#fff;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
}

.lightbox-close{
  position:fixed;
  top:14px;
  right:18px;
  width:42px;
  height:42px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:#111;
  display:grid;
  place-items:center;
  font-size:28px;
  line-height:1;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.6);
}
.lightbox-close:hover{ background:#fff; }
/* Lightbox-Fix (erzwingt :target Anzeige) */
.lightbox{ display:none !important; position:fixed !important; inset:0 !important; background:rgba(0,0,0,.75) !important; z-index:1000 !important; padding:16px !important; }
.lightbox:target{ display:flex !important; align-items:center !important; justify-content:center !important; }

.lightbox img{
  max-width:min(1100px, calc(100% - 24px)) !important;
  max-height:calc(100vh - 80px) !important;
  width:auto !important;
  height:auto !important;
  border-radius:12px !important;
  background:#fff !important;
}

.lightbox-close{
  position:fixed !important;
  top:14px !important;
  right:18px !important;
  width:42px !important;
  height:42px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.92) !important;
  color:#111 !important;
  display:grid !important;
  place-items:center !important;
  font-size:28px !important;
  line-height:1 !important;
  text-decoration:none !important;
}
