/* Vermietung Hauptplatz Stadtschlaining - ohne externe Schriften, Skripte oder Cookies */
:root {
  --papier: #f6f2ea;
  --karte: #fffdf8;
  --tinte: #231f1a;
  --grau: #625a4f;
  --linie: #e2d9ca;
  --ziegel: #8c3a22;
  --ziegel-hell: #f3dccf;
  --wa: #17784a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rund: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--papier); color: var(--tinte); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ziegel); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.4em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); }
p { margin: 0 0 1em; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 20px; }
.kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ziegel); margin: 0 0 0.7em; }
.klein { font-size: 0.9rem; color: var(--grau); margin: 12px 0 0; }

/* Leiste */
.leiste { position: sticky; top: 0; z-index: 10; background: rgba(246, 242, 234, 0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); }
.leiste .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.marke { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; color: var(--tinte); text-decoration: none; }
.leiste-link { font-size: 0.92rem; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* Titelbild Startseite */
.hero { position: relative; display: flex; align-items: flex-end; min-height: 78vh; min-height: min(78svh, 760px); color: #fff; background: #3a3027; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 14, 8, 0.08) 15%, rgba(20, 14, 8, 0.55) 45%, rgba(20, 14, 8, 0.86) 100%); }
.hero-text { position: relative; z-index: 1; width: 100%; padding-block: 40px 96px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.hero .kicker { color: var(--ziegel-hell); }
.hero h1 { font-size: clamp(2.1rem, 6.4vw, 3.6rem); max-width: 16ch; }
.hero p { max-width: 38rem; font-size: 1.08rem; }

/* Karten */
.karten { display: grid; gap: 22px; margin-top: -56px; position: relative; z-index: 2; }
.karten-einzeln { margin-top: 0; max-width: 520px; }
@media (min-width: 760px) { .karten:not(.karten-einzeln) { grid-template-columns: 1fr 1fr; } }
.karte { display: flex; flex-direction: column; background: var(--karte); border-radius: var(--rund); overflow: hidden; color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(40, 25, 10, 0.06), 0 12px 32px rgba(40, 25, 10, 0.12); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.karte:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(40, 25, 10, 0.08), 0 18px 40px rgba(40, 25, 10, 0.16); }
.karte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.karte-text { padding: 20px 22px 24px; }
.karte h2 { font-size: 1.5rem; }
.fakten { color: var(--grau); margin-bottom: 0.4em; }
.preis { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1.2; margin: 0.2em 0 0; }
.preis span { font-family: var(--sans); font-size: 0.95rem; font-weight: 400; color: var(--grau); }
.mehr { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--ziegel); }
.mehr::after { content: " \2192"; }

/* Abschnitte */
.abschnitt { margin-block: 56px; }
.text p { max-width: 65ch; }
.lage-link { font-weight: 700; }

/* Einheit */
.bild-kopf { width: 100%; aspect-ratio: 16 / 10; max-height: 72vh; object-fit: cover; background: #3a3027; }
.kopf { padding-top: 28px; }
.kopf h1 { font-size: clamp(1.9rem, 5.4vw, 3rem); }
.unter { color: var(--grau); font-size: 1.08rem; }
.preisbox { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--rund); padding: 22px; margin-top: 20px; }
.preis-zusatz { color: var(--grau); margin: 6px 0 0; }

/* Knoepfe */
.knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.knopf { flex: 1 1 220px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; }
.knopf.wa { background: var(--wa); color: #fff; }
.knopf.wa:hover { background: #12613b; }
.knopf.mail { border: 1.5px solid var(--tinte); color: var(--tinte); }
.knopf.mail:hover { background: var(--tinte); color: var(--papier); }

/* Galerie */
.galerie { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 760px) { .galerie { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
.galerie a { display: block; overflow: hidden; border-radius: 10px; background: #e9e2d6; }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.35s ease; }
.galerie a:hover img { transform: scale(1.04); }

/* Eckdaten */
.eckdaten { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; margin: 0; border-top: 1px solid var(--linie); }
.eckdaten dt, .eckdaten dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--linie); }
.eckdaten dt { color: var(--grau); padding-right: 14px; }

/* Kontakt */
.kontakt { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--rund); padding: 28px 22px; }
.kontakt p { max-width: 50ch; }

/* Lightbox */
.lightbox { width: 100vw; max-width: 100vw; height: 100vh; height: 100svh; max-height: 100svh; margin: 0; padding: 0; border: 0; background: rgba(14, 11, 8, 0.96); color: #fff; }
.lightbox::backdrop { background: rgba(14, 11, 8, 0.96); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); max-height: calc(100svh - 120px); object-fit: contain; }
.lb-leiste { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 16px; width: 100%; }
.lb-text { margin: 0; font-size: 0.9rem; opacity: 0.85; text-align: center; flex: 1; max-width: 32rem; }
.lightbox button { flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 1.25rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.26); }
.lb-zu { position: absolute; top: 12px; right: 12px; }

/* Fuss */
.fuss { margin-top: 64px; padding-block: 28px 44px; border-top: 1px solid var(--linie); color: var(--grau); font-size: 0.92rem; }
.fuss p { margin: 0 0 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
