/* Studenten WG Neubrandenburg – Stylesheet (keine externen Ressourcen) */
:root {
  --primary: #0f7f7a;       /* freundliches Petrol/Türkis */
  --primary-dark: #0a625e;
  --accent: #e8613f;        /* warmes Korall für Akzente */
  --sun: #ffd166;           /* sonniges Gelb für Deko */
  --ink: #23323b;
  --muted: #5d6b73;
  --bg: #fffaf3;
  --card: #ffffff;
  --line: #efe6d9;
  --soft: #e8f5f2;
  --soft-warm: #fff1e0;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(35,50,59,.05), 0 10px 30px rgba(15,127,122,.10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .6em; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin: 2em 0 .7em; }
h3 { font-size: 1.15rem; margin: 1.4em 0 .4em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand strong { display: block; font-size: 1.05rem; }
.brand small { display: block; color: var(--muted); font-size: .82rem; }
.logo { width: 36px; height: 36px; fill: var(--primary); flex: none; }
nav { display: flex; align-items: center; gap: 18px; }
nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
nav ul a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; }
nav ul a:hover { background: var(--soft); color: var(--ink); }
nav ul a[aria-current="page"] { color: var(--primary); }
nav ul a.cta { background: var(--primary); color: #fff; }
nav ul a.cta:hover { background: var(--primary-dark); color: #fff; }
.lang { font-size: .9rem; color: var(--muted); text-decoration: none; border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }
.lang:hover { color: var(--ink); border-color: var(--muted); }
.menu-btn { display: none; font: inherit; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; cursor: pointer; color: var(--ink); }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 18px; gap: 10px; }
  nav.open { display: flex; }
  nav ul { flex-direction: column; }
  .lang { align-self: flex-start; }
  .brand small { display: none; }
}

/* Buttons */
.btn { display: inline-block; border-radius: 999px !important; font: inherit; font-weight: 600; background: var(--primary); color: #fff; border: 0; border-radius: 10px; padding: 12px 22px; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.btn.ghost:hover { background: var(--primary); color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* Images: Platzhalter, falls ein Bild fehlt */
img { background: var(--soft); border-radius: var(--radius); }
.zoom { display: block; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.zoom img { transition: transform .3s; border-radius: 0; }
.zoom:hover img { transform: scale(1.03); }

/* Hero */
.banner { position: relative; overflow: hidden; background: linear-gradient(160deg, #d7f0ec 0%, #eaf7f4 45%, #fff3e2 100%); }
.banner::before { content: ""; position: absolute; width: 560px; height: 560px; right: 6%; top: 40px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #ffe08f 0%, var(--sun) 55%, #ffc94a 100%); opacity: .9; }
.banner::after { content: ""; position: absolute; width: 260px; height: 260px; right: -60px; top: -60px; border-radius: 50%; background: var(--primary); opacity: .12; }
.banner-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; align-items: end; min-height: 440px; }
.banner-text { align-self: center; padding: 48px 0; }
.eyebrow { display: inline-block; margin: 0 0 14px; padding: 5px 14px; border-radius: 999px; background: #fff; color: var(--primary); font-weight: 700; font-size: .9rem; box-shadow: var(--shadow); }
.banner h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.banner .lead { color: var(--ink); opacity: .8; }
.banner-img img { width: 100%; height: auto; background: none; border-radius: 0; filter: drop-shadow(0 18px 24px rgba(15,71,75,.18)); }
@media (max-width: 860px) {
  .banner-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .banner-text { padding: 36px 0 20px; }
  .banner-img { max-width: 480px; margin: 0 auto; width: 100%; }
  .banner::before { width: 340px; height: 340px; right: 50%; transform: translateX(50%); top: auto; bottom: -60px; }
}
.hero { padding: 56px 0 24px; background: radial-gradient(1200px 500px at 85% 0%, var(--soft) 0%, transparent 60%), radial-gradient(800px 400px at 0% 100%, var(--soft-warm) 0%, transparent 60%); }
.hero h1 span { color: var(--primary); }
.hero-img { position: relative; }
.hero-img::before { content: ""; position: absolute; inset: -14px 18px 18px -14px; background: var(--sun); border-radius: 28px; transform: rotate(-3deg); z-index: 0; opacity: .85; }
.hero-img::after { content: ""; position: absolute; width: 90px; height: 90px; right: -18px; bottom: -18px; background: var(--accent); border-radius: 50%; opacity: .9; z-index: 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-img .zoom { position: relative; z-index: 1; border-radius: 22px; box-shadow: var(--shadow); }
.hero-img img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero-img { order: -1; } }
.facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.facts li { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 16px; text-align: center; }
.facts strong { display: block; font-size: 1.7rem; color: var(--accent); }
.facts span { color: var(--muted); font-size: .9rem; }
@media (max-width: 600px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 32px; padding-bottom: 64px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 0; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-top: 0; }
.card-body p { flex: 1; color: var(--muted); font-size: .97rem; }
.more { font-weight: 600; text-decoration: none; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* Content pages */
.page { padding-top: 40px; padding-bottom: 72px; }
.feature { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; margin: 40px 0 56px; }
.feature.rev .feature-img { order: 2; }
.feature-img { display: grid; gap: 14px; }
.feature-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.feature-text p:first-child { margin-top: 0; }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; gap: 20px; } .feature.rev .feature-img { order: 0; } }
.checks { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 32px; font-weight: 600; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8rem; display: grid; place-items: center; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 40px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.two { columns: 2 320px; column-gap: 40px; }
.two p { margin-top: 0; break-inside: avoid; }

/* Consent placeholders (Video / Karte) */
.consent { background: linear-gradient(135deg, #10474b, #0f7f7a); color: #eef8f6; border-radius: var(--radius); aspect-ratio: 16/9; display: grid; place-content: center; justify-items: center; text-align: center; padding: 24px; gap: 8px; }
.consent.map { aspect-ratio: 16/8; background: linear-gradient(135deg, #1d5f6e, #2c8c83); }
.consent p { max-width: 460px; margin: 0 0 8px; font-size: .95rem; }
.consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.consent.loaded { position: relative; padding: 0; display: block; background: #000; overflow: hidden; }
.consent.map.loaded { background: var(--soft); }
.leaflet-host { position: absolute; inset: 0; }
.leaflet-container { font: 14px/1.4 var(--font); }
.consent .leaflet-popup-content a { color: var(--primary); font-weight: 600; }
.pin { background: none; border: 0; }
.pin svg { filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
@media (max-width: 600px) { .consent { aspect-ratio: 4/3; } .consent.map { aspect-ratio: 1; } }
.addrs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.addr { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.addr h3 { margin: 0 0 4px; }
.addr p { margin: 0 0 6px; color: var(--muted); }
@media (max-width: 600px) { .addrs { grid-template-columns: 1fr; } }

/* Apply */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.plans img { width: 100%; }
.form { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field > span, legend { font-weight: 600; font-size: .95rem; }
abbr { color: var(--accent); text-decoration: none; margin-left: 2px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], textarea {
  font: inherit; color: inherit; width: 100%; padding: 11px 13px; border: 1px solid #d9cfc1; border-radius: 9px; background: #fff;
}
input:focus, textarea:focus { outline: 3px solid rgba(15,127,122,.22); border-color: var(--primary); }
.invalid input, .invalid textarea, input.invalid { border-color: #c62828; background: #fff6f6; }
.radios { border: 0; padding: 0; margin: 22px 0 16px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.radios legend { margin-bottom: 8px; width: 100%; }
.radios label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 8px; cursor: pointer; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--primary); }
.check.invalid span { color: #c62828; }
input[type=radio] { accent-color: var(--primary); width: 18px; height: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; color: #c62828; font-weight: 600; }
.form-msg.ok { color: #2e7d32; }
@media (max-width: 600px) { .grid, .plans { grid-template-columns: 1fr; } .form { padding: 20px; } }
.thanks { padding-top: 80px; }
.big-check { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 2.2rem; display: grid; place-items: center; margin: 0 auto 20px; }

/* Legal */
.prose h2 { font-size: 1.25rem; }
.note { color: var(--muted); }

/* Footer */
.site-footer { background: #10474b; color: #d4e6e4; padding: 48px 0 24px; font-size: .95rem; }
.site-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 8px; }
.site-footer a { color: #fff; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .85rem; }
@media (max-width: 700px) { .cols { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,14,18,.92); z-index: 100; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 80vh; margin: 0 auto; border-radius: 8px; background: transparent; }
.lightbox figcaption { color: #dfe5ea; margin-top: 10px; font-size: .95rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; font-size: 2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; line-height: 1; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
