
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body { margin: 0; }
/* Layout: ruhiger Kopf mit Logo links, Suche als einzige Fläche im Hero, danach Objektraster mit dünnen Linien. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f5f5f5;
  --fg: #111111;
  --muted: #5e5e5e;
  --line: #dcdcdc;
  --brand: #111111;
  --brand-fg: #ffffff;
  --focus: #2b6cff;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: 16px; }

/* Kopf: schwarzes Band über die ganze Breite */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; background: var(--brand); color: var(--brand-fg); box-shadow: 0 0 0 100vmax var(--brand); clip-path: inset(0 -100vmax); }
.logo { display: inline-flex; align-items: center; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--brand-fg); }
.logo img { height: clamp(64px, 12vw, 110px); width: auto; display: block; mix-blend-mode: screen; }.nav { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--brand-fg); padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: #555; }
.nav a[aria-current="page"] { border-bottom-color: var(--brand-fg); }
.nav .iconbtn { border: 1px solid #555; border-radius: 4px; padding: 7px 14px; display: inline-flex; gap: 8px; background: transparent; }
.nav .iconbtn:hover { border-color: var(--brand-fg); }
.nav .iconbtn[aria-current="page"] { border-color: var(--brand-fg); }

/* Hero */
.hero { padding-block: 48px 36px; display: grid; gap: 28px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); max-width: 26ch; }
.hero p.lead { color: var(--muted); max-width: 56ch; font-size: 1.08rem; margin-top: 14px; }
.search { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: grid; gap: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); background: var(--surface); border-radius: 4px; padding: 3px; width: fit-content; }
.seg button { border: 0; background: transparent; padding: 7px 20px; border-radius: 3px; cursor: pointer; font-weight: 500; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--brand-fg); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field label { font-size: .82rem; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea { border: 1px solid var(--line); background: var(--surface); border-radius: 4px; padding: 10px 12px; width: 100%; min-width: 0; }
.field textarea { resize: vertical; min-height: 120px; }
.btn { border: 1px solid var(--brand); border-radius: 4px; padding: 11px 22px; font-weight: 500; cursor: pointer; background: var(--brand); color: var(--brand-fg); display: inline-block; text-decoration: none; text-align: center; }
.btn:hover { filter: brightness(1.15); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--fg); }
.btn.ghost:hover { border-color: var(--brand); filter: none; }

/* Objekte */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 24px; padding-bottom: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card:hover { border-color: var(--brand); }
.card .pic { position: relative; display: block; width: 100%; border: 0; padding: 0; background: none; text-decoration: none; }
.ph { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2; background: var(--soft); color: #98a1ab; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph .ico { display: grid; justify-items: center; gap: 8px; font-size: .82rem; }
.ph svg { width: 84px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.tag { position: absolute; left: 12px; top: 12px; background: var(--surface); color: var(--fg); font-weight: 600; font-size: .75rem; padding: 3px 9px; border-radius: 2px; }
.fav { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer; background: var(--surface); display: grid; place-items: center; }
.fav svg { width: 18px; height: 18px; fill: none; stroke: var(--fg); stroke-width: 2; }
.fav[aria-pressed="true"] svg { fill: var(--brand); stroke: var(--brand); }
.card .body { padding: 16px; display: grid; gap: 6px; flex: 1; align-content: start; }
.price { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--font-body); font-size: .88rem; font-weight: 400; color: var(--muted); }
.card h3 { font-size: 1.05rem; font-weight: 600; font-family: var(--font-body); letter-spacing: 0; }
.loc { color: var(--muted); font-size: .92rem; }
.facts { display: flex; gap: 16px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; }
.facts b { font-weight: 600; color: var(--fg); }
.card .more { margin-top: auto; padding: 0 16px 16px; }
.card .more .btn { display: block; }
.empty { grid-column: 1 / -1; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: 36px 20px; text-align: center; display: grid; gap: 12px; justify-items: center; }

/* Seitenkopf, Abschnitte */
.pagehead { padding-block: 36px 8px; }
.pagehead h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.pagehead p { color: var(--muted); margin-top: 10px; max-width: 58ch; }
.crumb { display: inline-block; margin-block: 18px 14px; color: var(--muted); text-decoration: none; font-size: .95rem; }
.crumb:hover { color: var(--fg); }
.sec { padding-block: 16px 24px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.sec-head a { font-weight: 500; }
.note { font-size: .86rem; color: var(--muted); }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; padding-block: 44px; border-top: 1px solid var(--line); }
.why h3 { font-size: 1.2rem; margin-bottom: 6px; }
.why p { color: var(--muted); }
.banner { background: var(--brand); color: var(--brand-fg); border-radius: 4px; padding: 30px 26px; display: flex; gap: 18px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-block: 8px 48px; }
.banner h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.banner .btn { background: var(--surface); border-color: var(--surface); color: var(--brand); }

/* Detail */
.detail { display: grid; gap: 22px; padding-bottom: 32px; }
.detail .ph { border-radius: 4px; }
.detail-main { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.detail-main > div { display: grid; gap: 22px; min-width: 0; align-content: start; }
@media (min-width: 860px) { .detail-main { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); align-items: start; } }
.aside {background: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: 16px 20px; display: grid;gap: 10px;}.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin: 0; }
.specs div { background: var(--surface); padding: 12px 14px; }
.specs dt { color: var(--muted); font-size: .82rem; }
.specs dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.feat { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.feat li { border: 1px solid var(--line); border-radius: 2px; padding: 4px 11px; font-size: .9rem; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Leistungen, Kontakt */
.svc { display: grid; gap: 28px; padding-block: 24px 40px; }
.svc article { display: grid; gap: 8px; max-width: 64ch; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.svc h2 { font-size: 1.5rem; }
.svc p, .svc li { color: var(--muted); }
.svc ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 4px; }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; padding-block: 40px 56px; }
.contact .info { display: grid; gap: 10px; margin-top: 20px; }
.contact .info div { display: flex; gap: 12px; flex-wrap: wrap; }
.contact .info dt { color: var(--muted); min-width: 88px; }
.contact dl, .contact dd { margin: 0; }
.form { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 20px; display: grid; gap: 14px; align-content: start; }
.out { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 14px; display: grid; gap: 10px; }
.out pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--font-body); font-size: .92rem; user-select: all; }
footer { border-top: 1px solid var(--line); padding-block: 24px 40px; color: var(--muted); font-size: .9rem; }

/* Galerie: Pfeile und Zähler */
.stage { position: relative; }
.stage .ph img { cursor: pointer; }
.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 1.6rem; line-height: 1; display: grid; place-items: center; padding: 0 0 4px; }
.nav-btn.prev { left: 12px; }
.nav-btn.next { right: 12px; }
.stage .count { position: absolute; right: 12px; bottom: 12px; background: rgba(17, 17, 17, .75); color: #fff; font-size: .8rem; padding: 3px 9px; border-radius: 2px; }

/* Galerie komplett */
.gal { display: grid; gap: 10px; max-width: 760px; }
.stage .ph { aspect-ratio: 16 / 10; background: var(--soft); }
.stage .ph img { object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.th { padding: 0; border: 2px solid transparent; border-radius: 4px; background: none; cursor: pointer; aspect-ratio: 3 / 2; overflow: hidden; }
.th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th[aria-current="true"] { border-color: var(--brand); }

/* Großes Bild: nie zuschneiden */
.gal .stage .ph { aspect-ratio: auto !important; background: var(--soft); }
.gal .stage .ph img { width: 100% !important; height: auto !important; max-height: 560px; object-fit: contain !important; }
.th img { object-fit: contain !important; background: var(--soft); }

.card .ph img { object-fit: contain !important; background: var(--soft); }

/* Galerie: Vorschaubilder rechts neben dem großen Bild (am Handy weiter unten) */
@media (min-width: 760px) {
  .gal { max-width: 980px; grid-template-columns: minmax(0, 1fr) 150px; align-items: start; }
  .thumbs { grid-template-columns: repeat(2, 1fr); max-height: 560px; overflow-y: auto; align-content: start; }
}

/* Detailseite: Fotos links, Preis und Eckdaten rechts */
@media (min-width: 900px) {
  .detail { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 28px; align-items: start; }
  .detail-main { display: contents; }
  .detail .pic { grid-column: 1; grid-row: 1; }
  .detail .aside { grid-column: 2; grid-row: 1; }
  .detail-main > div { grid-column: 1; grid-row: 2; }
  .gal { max-width: none; }
  .aside .specs { grid-template-columns: repeat(2, 1fr); }
}

/* Detailseite: Fotos links, alle Infos rechts */
.info { display: grid; gap: 20px; align-content: start; min-width: 0; }
.info .specs { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 960px) {
  .detail { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); column-gap: 32px; align-items: start; }
  .gal { max-width: none; }
}

/* Galerie: Pfeile und Zähler */
.stage { position: relative; }
.stage .ph img { cursor: pointer; }
.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 1.6rem; line-height: 1; display: grid; place-items: center; padding: 0 0 4px; z-index: 2; }
.nav-btn.prev { left: 12px; }
.nav-btn.next { right: 12px; }
.stage .count { position: absolute; right: 12px; bottom: 12px; background: rgba(17, 17, 17, .75); color: #fff; font-size: .8rem; padding: 3px 9px; border-radius: 2px; }

/* Galerie Container: Bild oben, Thumbnails immer darunter */
.gal { 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
  width: 100%;
}

.stage .ph { 
  background: var(--soft); 
  border-radius: 4px;
  overflow: hidden;
}

.stage .ph img { 
  width: 100%; 
  height: auto; 
  max-height: 560px; 
  object-fit: contain; 
  display: block;
}

/* Vorschaubilder-Grid (unter dem Hauptbild) */
.thumbs { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); 
  gap: 8px; 
  max-height: 220px; 
  overflow-y: auto; 
  padding: 2px;
}

.th { 
  padding: 0; 
  border: 2px solid transparent; 
  border-radius: 4px; 
  background: var(--soft); 
  cursor: pointer; 
  aspect-ratio: 4 / 3; 
  overflow: hidden; 
}

.th img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
}

.th[aria-current="true"] { 
  border-color: var(--brand); 
}

/* Layout-Anpassung für die Detailseite */
@media (min-width: 900px) {
  .detail { 
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); 
    column-gap: 32px; 
    align-items: start; 
  }
}
