/* Öffentliche Seiten: Startseite (Hero, Swipe-Demo, Unis, Fragen) und Unterseiten /staedte, /unis, /suchen, Rechtliches.
   Handy zuerst: alles ist für 375 px gebaut, größere Breiten bekommen nur mehr Platz. Tokens aus styles.css. */

/* Kopf: auf der Startseite über dem Foto weiß und durchsichtig, sonst hell und fest. Gemeinsam: public/teile/kopf.html, kopf.js */
.kopf { position: absolute; top: 0; left: 0; right: 0; z-index: 40; color: #fff; padding-top: env(safe-area-inset-top, 0px); transition: background .25s, color .25s, box-shadow .25s; }
.kopf.fest, .menue-offen .kopf { background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 1px 0 var(--linie); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); --loch: #fff; }
.kopf-in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.kopf .logo { font-size: 21px; flex: none; min-height: 44px; }
.kopf-nav { display: none; }
.kopf-nav a { text-decoration: none; font-weight: 500; opacity: .85; padding: 0 2px; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-bottom: 2px solid transparent; }
.kopf-nav a:hover, .kopf-nav a[aria-current="page"] { opacity: 1; }
.kopf-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.kopf-rechts { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.kopf-knopf { white-space: nowrap; min-height: 44px; padding: 0 16px; font-size: 14.5px; }
.kopf.fest .kopf-knopf, .menue-offen .kopf .kopf-knopf { background: var(--ink); color: #fff; }
.kopf-konto { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 44px; height: 44px; border-radius: 50%; text-decoration: none; font-weight: 700; font-size: 14.5px; box-shadow: inset 0 0 0 1.5px currentColor; overflow: hidden; flex: none; }
.kopf-konto svg { width: 20px; height: 20px; }
/* Mein Feed direkt in der Kopfzeile am Handy (Paul 02.11.: „bei der Handy-Ansicht sehe ich mein Feed nicht“); am PC steht er in der Navigation */
.kopf-feed { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; flex: none; }
.kopf-feed svg { width: 20px; height: 20px; }
.kopf-feed[aria-current="page"] { background: currentColor; }
.kopf-feed[aria-current="page"] svg { color: var(--loch, #0c0c0d); }
.kopf-konto-text { display: none; }
.kopf-konto.an { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; font-size: 17px; } /* Paul: Profilbild durchsichtig, nur Buchstabe mit Rahmen */
.kopf-konto img { width: 100%; height: 100%; object-fit: cover; }
.kopf-menue { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: inherit; display: grid; place-content: center; gap: 6px; cursor: pointer; flex: none; }
.kopf-menue span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--sanft); }
.kopf-menue[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.kopf-menue[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
/* Handy-Menü: Vollbild unter der Kopfzeile, große Daumen-Ziele.
   backdrop-filter würde das fixierte Menü in die Kopfzeile einsperren, darum bei offenem Menü aus. */
.menue-offen .kopf { background: var(--weiss); backdrop-filter: none; -webkit-backdrop-filter: none; }
.menue { position: fixed; inset: calc(64px + env(safe-area-inset-top, 0px)) 0 0; background: var(--weiss); color: var(--ink); overflow-y: auto; animation: menue-rein .25s var(--sanft); }
@keyframes menue-rein { from { opacity: 0; transform: translateY(-8px); } }
.menue-in { display: grid; gap: 10px; padding-block: 16px calc(28px + env(safe-area-inset-bottom, 0px)); }
.menue-in a { display: grid; grid-template-columns: 44px minmax(0, 1fr) 14px; align-items: center; gap: 14px; min-height: 68px; padding: 12px 16px 12px 12px; border-radius: 20px; background: var(--grund); text-decoration: none; transition: background .15s, transform .15s var(--feder); }
.menue-in a:active { transform: scale(.985); background: var(--linie); }
.menue-in a::after { content: ""; width: 8px; height: 8px; border-top: 2px solid var(--ink-2); border-right: 2px solid var(--ink-2); transform: rotate(45deg); justify-self: end; margin-right: 2px; opacity: .7; }
.menue-in i { width: 44px; height: 44px; border-radius: 14px; background: var(--weiss); color: var(--ink); display: grid; place-items: center; box-shadow: 0 1px 0 rgba(0, 0, 0, .05); }
.menue-in i svg { width: 22px; height: 22px; }
.menue-in .m-text { display: grid; gap: 2px; min-width: 0; color: inherit; }
.menue-in b { font-size: 18px; letter-spacing: -.02em; line-height: 1.15; }
.menue-in .m-text > span { color: var(--ink-2); font-size: 14px; line-height: 1.3; }
.menue-in a[aria-current="page"] { background: #e8f0fe; }
.menue-in a[aria-current="page"] b, .menue-in a[aria-current="page"] i { color: var(--blau-tief); }
.menue-konto { margin-top: 10px; background: var(--ink) !important; color: #fff; }
.menue-konto i { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
.menue-konto b { color: #fff; }
.menue-in .menue-konto .m-text > span { color: rgba(255, 255, 255, .72); }
.menue-konto::after { border-color: #fff; }
.menue-offen { overflow: hidden; }
@media (min-width: 520px) { .kopf-konto:not(.an) { width: auto; padding: 0 14px; border-radius: 999px; } .kopf-konto:not(.an) .kopf-konto-text { display: inline; } .kopf-konto:not(.an) svg { display: none; } }
@media (min-width: 901px) {
  .kopf-in { gap: var(--s5); min-height: 70px; }
  .kopf-nav { display: flex; gap: var(--s5); margin-left: auto; }
  .kopf-rechts { margin-left: 0; }
  .kopf-menue, .menue, .kopf-feed { display: none !important; }
}
/* Schmale Handys (360-400 px): Knopf heißt nur „swipen“, engere Abstände, damit Konto und Menü nie aus dem Bild rutschen */
@media (max-width: 400px) { .kopf-in { gap: 8px; } .kopf-rechts { gap: 4px; } .kopf .logo { font-size: 19px; gap: 7px; } .kopf-knopf { padding: 0 14px; } .kopf-jetzt { display: none; } .kopf-knopf { text-transform: capitalize; } }

/* Hero */
.hero { position: relative; min-height: min(100svh, 980px); color: #fff; background: var(--nacht); overflow: hidden; overflow: clip; display: grid; align-items: center; } /* clip: lässt sich auch per Skript nicht verschieben */
.hero-bilder, .hero-bilder img, .hero-schleier { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bilder img { object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.hero-bilder img.an { opacity: 1; animation: hero-zoom 9s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.12) translateX(1.5%); } to { transform: scale(1.0); } }
.hero-schleier { background: linear-gradient(90deg, rgba(8, 8, 9, .82) 0%, rgba(8, 8, 9, .55) 45%, rgba(8, 8, 9, .25) 100%), linear-gradient(0deg, rgba(8, 8, 9, .55), rgba(8, 8, 9, 0) 40%); }
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: 110px 56px; }
.hero-text { display: grid; gap: var(--s5); min-width: 0; }
.vorzeile { font-weight: 500; font-size: var(--t-m); color: rgba(255, 255, 255, .8); }
.hero h1 { font-size: var(--t-hero); letter-spacing: -.05em; line-height: .92; }
.hero h1 span { display: inline-block; white-space: nowrap; } /* immer „Swipe dich / nach Hause.“, nie dreizeilig */
.js .hero h1 span { animation: wort-rein .9s var(--sanft) both; }
.js .hero h1 .zeile2 { animation-delay: .12s; }
@keyframes wort-rein { from { opacity: 0; transform: translateY(40px); } }
.hero-sub { font-size: clamp(18px, 1.6vw, 21px); color: rgba(255, 255, 255, .85); max-width: 36ch; line-height: 1.45; }
.leise { color: rgba(255, 255, 255, .72); font-weight: 500; }
.hero-deck { display: grid; gap: var(--s4); justify-items: center; width: 100%; max-width: 420px; justify-self: center; }
.demo-stapel { width: 100%; aspect-ratio: 3 / 4; max-height: 560px; }
/* Rückgängig auf dem dunklen Foto: helles Glas statt Dunkelgrau, sonst unsichtbar (Paul: „kein Zurück-Button“) */
.hero .rund.dunkel { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero .rund.dunkel:disabled { opacity: .45; }
.demo-stapel .leer-box { position: absolute; inset: 0; display: grid; place-content: center; gap: var(--s4); text-align: center; padding: var(--s5); border-radius: var(--r-l); background: rgba(255, 255, 255, .1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.demo-stapel .leer-box h3 { font-size: 28px; }


/* Hero am Handy */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); padding-block: calc(88px + env(safe-area-inset-top, 0px)) 36px; gap: 36px; }
  .hero { min-height: 0; }
  .hero-deck { max-width: 460px; }
}
@media (max-width: 600px) {
  .hero-text { gap: var(--s4); }
  .hero h1 { font-size: clamp(46px, 14vw, 64px); }
  .hero-sub { font-size: 17px; }
  .demo-stapel { max-height: 70svh; }
}

/* Startseite: allgemeine Abschnitte (Vermieter) */
.abschnitt { padding-block: 0 clamp(48px, 8vw, 104px); }
.abschnitt[hidden] { display: none; }
.abschnitt-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.abschnitt-titel { font-size: var(--t-2xl); letter-spacing: -.045em; line-height: 1.02; }
.abschnitt-sub { color: var(--ink-2); margin-top: 8px; max-width: 46ch; }
.mehr { flex: none; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--blau-tief); text-decoration: none; white-space: nowrap; }
.mehr::after { content: "→"; margin-left: 6px; transition: transform .2s var(--sanft); }
.mehr:hover::after { transform: translateX(3px); }
/* „Gut zu wissen“: Fragen als ruhige Karten, zwei Spalten am PC */
.wissen { padding-block: clamp(64px, 10vw, 128px); }
.wissen-titel { font-size: var(--t-2xl); letter-spacing: -.045em; line-height: 1.02; max-width: 18ch; margin-bottom: var(--s6); }
.wissen-raster { display: grid; gap: 10px; align-items: start; }
@media (min-width: 900px) { .wissen-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.wissen-frage { background: var(--grund); border-radius: 22px; transition: background .3s var(--sanft), box-shadow .3s var(--sanft); }
.wissen-frage[open] { background: var(--weiss); box-shadow: 0 0 0 1px var(--linie), var(--sh-1); }
.wissen-frage summary { display: grid; grid-template-columns: 34px minmax(0, 1fr) 36px; gap: 10px; align-items: center; min-height: 64px; padding: 12px 14px 12px 20px; cursor: pointer; list-style: none; }
.wissen-frage summary::-webkit-details-marker { display: none; }
.wissen-nr { font-size: 13px; font-weight: 800; color: var(--blau-tief); font-variant-numeric: tabular-nums; }
.wissen-frage b { font-size: 17px; letter-spacing: -.02em; line-height: 1.25; }
.wissen-frage summary i { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--weiss); transition: transform .35s var(--feder), background .3s; }
.wissen-frage[open] summary i { transform: rotate(45deg); background: var(--grund); }
.wissen-frage summary i::before, .wissen-frage summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; border-radius: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.wissen-frage summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.wissen-frage p { padding: 0 20px 22px 64px; color: var(--ink-2); line-height: 1.6; animation: wissen-auf .4s var(--sanft); }
@keyframes wissen-auf { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 599px) { .wissen-frage p { padding-left: 20px; } }
.fragen-hinweis { margin-top: var(--s5); font-size: 13px; color: var(--grau); }

/* Vermieter: Foto als Hintergrund, dunkler Verlauf von links, Höhe kommt vom Text */
.vermieter { position: relative; display: block; overflow: hidden; border-radius: var(--r-xl); background: var(--nacht); color: #fff; text-decoration: none; isolation: isolate; }
.vermieter img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--sanft); }
.vermieter::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 8, 9, .92) 0%, rgba(8, 8, 9, .55) 55%, rgba(8, 8, 9, .2) 100%); }
.vermieter:hover img { transform: scale(1.04); }
.vermieter-text { display: grid; gap: var(--s4); justify-items: start; padding: clamp(28px, 6vw, 64px); padding-top: clamp(160px, 30vw, 220px); }
.vermieter-text h2 { font-size: var(--t-2xl); letter-spacing: -.045em; line-height: 1.02; }
.vermieter-text p { color: rgba(255, 255, 255, .82); max-width: 46ch; }
.vermieter:hover .knopf { transform: translateY(-1px); }
@media (min-width: 900px) {
  .vermieter::before { background: linear-gradient(90deg, rgba(8, 8, 9, .9) 0%, rgba(8, 8, 9, .6) 45%, rgba(8, 8, 9, .05) 80%); }
  .vermieter-text { padding-top: clamp(28px, 6vw, 64px); min-height: 380px; align-content: center; }
}
@media (max-width: 600px) { .abschnitt-kopf { flex-direction: column; align-items: flex-start; gap: 4px; } .vermieter-text .knopf { width: 100%; } }

/* Unterseiten: hell, fester Kopf, großer Titel, dann Inhalt */
.unterseite main { padding-top: calc(64px + env(safe-area-inset-top, 0px)); }
@media (min-width: 901px) { .unterseite main { padding-top: 70px; } }
.seiten-kopf { padding-block: clamp(28px, 6vw, 72px) clamp(20px, 3vw, 36px); display: grid; gap: 10px; }
.seiten-kopf .vorzeile { color: var(--ink-2); font-size: var(--t-s); }
.seiten-kopf h1, .seiten-kopf h2.wie-h1 { font-size: var(--t-2xl); letter-spacing: -.05em; line-height: .98; }
.seiten-sub { color: var(--ink-2); font-size: var(--t-m); max-width: 52ch; }
.seiten-suche { margin-top: 10px; max-width: 560px; }
.seiten-suche input { width: 100%; min-height: 54px; border: 0; border-radius: 999px; background: var(--grund); padding: 0 22px; font: inherit; font-size: 16px; color: var(--ink); }
.seiten-suche input:focus { outline: 2px solid var(--blau); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.seiten-inhalt { padding-bottom: clamp(48px, 8vw, 104px); display: grid; gap: clamp(28px, 5vw, 56px); }
.seiten-inhalt:empty { min-height: 100vh; } /* Go-Live 05.11.: Platz halten, bis die Liste da ist (sonst springt der Text darunter, CLS bis 0,7) */
.gruppe { display: grid; gap: 12px; }
.gruppe h2 { font-size: clamp(22px, 5vw, 32px); letter-spacing: -.04em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.gruppe h2 small { font-size: 14px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.leer-hinweis { color: var(--ink-2); padding: var(--s5) 0; }

/* /staedte: Fotokacheln */
.kachel-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ort-kachel { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-l); overflow: hidden; color: #fff; text-decoration: none; background: var(--nacht-2); }
.ort-kachel img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--sanft); }
.ort-kachel:hover img { transform: scale(1.06); }
.ort-kachel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .82)); }
.ort-kachel div { position: absolute; z-index: 1; inset: auto 0 0 0; padding: 14px; display: grid; gap: 2px; }
.ort-kachel b { font-size: clamp(22px, 6vw, 30px); letter-spacing: -.04em; line-height: 1; }
.ort-kachel span { font-size: 14px; font-weight: 700; }
.ort-kachel small { font-size: 12px; color: rgba(255, 255, 255, .8); line-height: 1.3; }
@media (max-width: 699px) { .kachel-raster > .ort-kachel:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 10; } }
@media (min-width: 700px) { .kachel-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1100px) { .kachel-raster { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* /unis: Zeilenkarten mit Foto */
.uni-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.uni-karte { display: grid; grid-template-columns: 76px minmax(0, 1fr) 22px; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; border-radius: var(--r-m); background: var(--grund); color: var(--ink); text-decoration: none; min-height: 92px; transition: background .15s; }
.uni-karte:hover { background: #ebebe8; }
.uni-karte img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; }
.uni-karte div { display: grid; gap: 2px; min-width: 0; }
.uni-karte b { font-size: 16.5px; letter-spacing: -.02em; line-height: 1.2; }
.uni-karte span { font-size: 13.5px; color: var(--ink-2); }
.uni-karte svg { width: 20px; height: 20px; color: var(--ink-2); transition: transform .2s var(--feder); }
.uni-karte:hover svg { transform: translateX(3px); color: var(--blau); }
@media (min-width: 700px) { .uni-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .uni-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* /suchen: drei große Wege und Schnellwahl Stadt × Art */
.wege { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.weg-karte { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--r-l); overflow: hidden; color: #fff; text-decoration: none; background: var(--nacht-2); }
.weg-karte img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--sanft); }
.weg-karte:hover img { transform: scale(1.05); }
.weg-karte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, .85)); }
.weg-karte div { position: absolute; z-index: 1; inset: auto 56px 0 0; padding: 18px; display: grid; gap: 4px; justify-items: start; }
.weg-karte b { font-size: clamp(28px, 8vw, 40px); letter-spacing: -.045em; line-height: 1; }
.weg-karte span { font-size: 14px; color: rgba(255, 255, 255, .88); }
.weg-karte em { font-style: normal; font-weight: 700; font-size: 13px; background: var(--blau); border-radius: 999px; padding: 4px 10px; margin-top: 4px; }
.weg-karte svg { position: absolute; z-index: 1; right: 18px; bottom: 20px; width: 28px; height: 28px; }
@media (min-width: 600px) and (max-width: 899px) { .weg-karte { aspect-ratio: 21 / 9; } }
@media (min-width: 900px) { .wege { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } .weg-karte { aspect-ratio: 3 / 4; } }
.schnell { display: grid; border-top: 1px solid var(--linie); }
.deine-stadt { display: inline-flex; align-items: center; align-self: flex-start; font-style: normal; font-weight: 700; font-size: 12px; letter-spacing: 0; line-height: 1; padding: 5px 9px; border-radius: 999px; background: var(--blau); color: #fff; }
.ort-kachel .deine-stadt { margin-bottom: 4px; }
.ort-kachel.meine { box-shadow: 0 0 0 3px var(--blau); }
.schnell-zeile > b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.schnell-zeile { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.schnell-zeile > b { font-size: 18px; letter-spacing: -.02em; }
.schnell-zeile > div { display: flex; flex-wrap: wrap; gap: 6px; }
.schnell-zeile a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--grund); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.schnell-zeile a span { font-weight: 500; color: var(--ink-2); }
.schnell-zeile a:hover { background: var(--ink); color: #fff; }
.schnell-zeile a:hover span { color: rgba(255, 255, 255, .7); }
.schnell-zeile a.leer { opacity: .45; }
@media (min-width: 700px) { .schnell-zeile { grid-template-columns: 200px minmax(0, 1fr); align-items: center; } }

/* Fuß: gemeinsam, public/teile/fuss.html */
.fuss { background: var(--nacht); color: var(--gedimmt); padding-block: var(--s7) calc(var(--s6) + env(safe-area-inset-bottom, 0px)); font-size: var(--t-s); }
.fuss .logo { color: #fff; min-height: 44px; justify-self: start; }
.fuss-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s5); }
.fuss-marke { grid-column: 1 / -1; display: grid; gap: 10px; }
.fuss-marke p { max-width: 36ch; }
.fuss-spalte { display: grid; gap: 0; align-content: start; }
.fuss-spalte b { color: #fff; font-size: 14px; margin-bottom: 4px; }
.fuss-spalte a { color: var(--gedimmt); text-decoration: none; display: flex; align-items: center; min-height: 44px; } /* Tippziel ≥ 44 px */
.fuss-spalte a:hover { color: #fff; }
.fuss-klein { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: var(--s3); padding-top: var(--s5); border-top: 1px solid var(--nacht-3); font-size: 14px; line-height: 1.6; } /* Paul 02.11.: „zusammengestaucht“ → mehr Luft, zwei Teile */
.fuss-klein span { max-width: 62ch; }
.fuss-klein a { color: inherit; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding-block: 11px; margin-block: -11px; }
.fuss-klein a:hover { color: #fff; }


.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: #fff; color: var(--ink); font-weight: 700; padding: 12px 18px; border-radius: 999px; opacity: 0; transition: .25s; pointer-events: none; z-index: 50; max-width: calc(100vw - 32px); text-align: center; box-shadow: var(--sh-2); }
.toast.an { opacity: 1; transform: translate(-50%, 0); }

/* Bildnachweis-Seite */
.nachweis { background: var(--weiss); }
.nachweis-kopf { padding-block: 24px; }
.nachweis main h1 { font-size: var(--t-2xl); margin: var(--s5) 0 var(--s3); }
.nachweis-lead { color: var(--ink-2); max-width: 70ch; margin-bottom: var(--s6); }
.nachweis-liste { list-style: none; margin: 0 0 var(--s8); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.nachweis-liste li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 13px; }
.nachweis-liste img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.nachweis-liste div { display: grid; gap: 2px; min-width: 0; }
.nachweis-liste span { color: var(--grau); }
.nachweis-liste a { color: var(--blau-tief); }
.nachweis-liste div > a { display: inline-flex; align-items: center; min-height: 44px; }

/* Impressum und Datenschutz: ruhig zum Lesen, gleiche Kopfzeile wie der Bildnachweis */
.recht { max-width: 820px; padding-bottom: var(--s8); }
.recht-vorzeile { font-weight: 700; font-size: var(--t-xs); color: var(--ink-2); margin: var(--s5) 0 0; }
.recht h1 { margin-top: var(--s2) !important; }
.recht h2 { font-size: var(--t-xl); letter-spacing: -.035em; margin: var(--s7) 0 var(--s3); scroll-margin-top: 20px; }
.recht h3 { font-size: var(--t-l); letter-spacing: -.02em; margin: var(--s5) 0 var(--s3); }
.recht p, .recht li { color: var(--ink-2); line-height: 1.6; max-width: 70ch; }
.recht ul { padding-left: 1.2em; display: grid; gap: 4px; }
.recht a { color: var(--blau-tief); }
.recht code { font-size: 13px; background: var(--grund); border-radius: 6px; padding: 2px 6px; }
.recht-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s3); margin: var(--s3) 0; }
.recht-karten dl { margin: 0; background: var(--grund); border-radius: var(--r-l); padding: var(--s4) var(--s5); display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.recht-karten dt { font-weight: 700; font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.recht-karten dt:first-child { font-size: var(--t-m); color: var(--ink); margin-top: 0; }
.recht-karten dd { margin: 0; overflow-wrap: anywhere; }
.recht-liste { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 10px var(--s5); margin: 0; }
.recht-liste dt { font-weight: 700; }
.recht-liste dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.recht-inhalt { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s4) 0 0; }
.recht-inhalt a { background: var(--grund); color: var(--ink) !important; text-decoration: none; border-radius: 999px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 13px; font-weight: 500; }
.recht-tabelle { display: grid; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--linie); margin: var(--s3) 0; }
.recht-tabelle > div { display: grid; grid-template-columns: 170px minmax(0, 1fr) 160px; gap: var(--s4); padding: 12px 16px; border-top: 1px solid var(--linie); font-size: 14px; color: var(--ink-2); }
.recht-tabelle.zwei > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.recht-tabelle > div:first-child { border-top: 0; background: var(--grund); color: var(--ink); }
.recht-links { margin-top: var(--s7); font-weight: 500; }
@media (max-width: 640px) {
  .recht-liste { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .recht-liste dd { margin-bottom: 10px; }
  .recht-tabelle > div, .recht-tabelle.zwei > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .recht-tabelle > div:first-child { display: none; }
}

/* ---------- Hero schlicht (Paul 01.11.: „massiv überladen“): Überschrift, ein Satz, ein Knopf; Fotos der Städte dahinter ---------- */
.hero .hero-text { gap: 18px; justify-items: start; }
.hero h1 { line-height: 1.02; } /* vorher .92: das „p“ von „Swipe“ stieß ins „nach“ */
.hero h1 .zeile2 { margin-top: -.04em; }
.hero .hero-sub { color: rgba(255, 255, 255, .86); max-width: 34ch; }
.hero-los { margin-top: 6px; min-width: 220px; min-height: 60px; font-size: 18px; box-shadow: 0 14px 40px rgba(26, 115, 232, .45); }
.hero .hero-in { padding-block: clamp(100px, 11vw, 136px) clamp(44px, 6vw, 80px); }
@media (max-width: 900px) { .hero .hero-in { padding-block: calc(86px + env(safe-area-inset-top, 0px)) 40px; } }
@media (max-width: 600px) { .hero-los { width: 100%; } }

/* Kleine Überzeile in Versalien über Abschnittstiteln */
.ueberzeile { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blau-tief); margin-bottom: 10px; }

/* Abschnitte unter dem Hero: gleicher Rhythmus, ruhig, gleiche Ränder */
.neu-start, .unis-start, .staedte-start { padding-block: clamp(56px, 9vw, 112px) 0; }
.neu-start[hidden] { display: none; }

/* Neu frei: ruhige Reihe echter Inserate; am Handy seitlich swipen (nur die Reihe scrollt), am PC vier je Zeile */
/* Paul 03.11.: „am Handy rüberscrollen ist richtig nervig“ → Raster nach unten: Handy 2×2, Tablet 3×2, PC 4×2. Fällt ein Foto aus, rückt die nächste Karte nach. */
.neu-reihe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
.neu-reihe > .neu-karte:nth-child(n+5) { display: none; }
.neu-reihe::-webkit-scrollbar { display: none; }
.neu-karte { display: grid; gap: 2px; align-content: start; color: var(--ink); text-decoration: none; min-width: 0; }
.neu-bild { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; background: var(--grund); margin-bottom: 8px; }
.neu-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--sanft); }
.neu-karte:hover img { transform: scale(1.04); }
.neu-von { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.neu-karte b { font-size: 22px; letter-spacing: -.04em; line-height: 1.1; }
.neu-karte > span:not(.neu-bild) { font-size: 14px; color: var(--ink-2); }
.neu-karte small { font-size: 13px; color: var(--grau); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 699px) {
  .neu-bild { margin-bottom: 6px; }
  .neu-karte b { font-size: 19px; }
  .neu-karte > span:not(.neu-bild) { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .neu-karte small { font-size: 12.5px; }
  .neu-von { left: 6px; bottom: 6px; max-width: calc(100% - 12px); font-size: 12px; padding: 2px 7px; }
}
@media (min-width: 700px) { .neu-reihe { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; } .neu-reihe > .neu-karte:nth-child(n+5) { display: grid; } .neu-reihe > .neu-karte:nth-child(n+7) { display: none; } }
@media (min-width: 1000px) { .neu-reihe { grid-template-columns: repeat(4, minmax(0, 1fr)); } .neu-reihe > .neu-karte:nth-child(n+7) { display: grid; } .neu-reihe > .neu-karte:nth-child(n+9) { display: none; } }

/* Städte: Liste ohne Fotos, Zahl rechts */
.stadt-liste { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--linie); }
.stadt-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 12px; min-height: 60px; padding: 8px 4px; border-bottom: 1px solid var(--linie); color: var(--ink); text-decoration: none; }
.stadt-zeile span { display: grid; min-width: 0; }
.stadt-zeile b { font-size: 18px; letter-spacing: -.02em; }
.stadt-zeile small { font-size: 13px; color: var(--grau); }
.stadt-zeile em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.stadt-zeile.meine b, .stadt-zeile.meine small { color: var(--blau-tief); }
.stadt-zeile.meine small { font-weight: 700; }
.stadt-zeile svg { width: 18px; height: 18px; color: var(--grau); transition: transform .2s var(--feder); }
.stadt-zeile:hover svg { transform: translateX(3px); color: var(--blau); }
@media (min-width: 700px) { .stadt-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
@media (min-width: 1100px) { .stadt-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Unis auf der Startseite: Zeilen wie auf /unis */
.unis-start .abschnitt-titel { max-width: 16ch; }

/* Vermieter klein: flacher Streifen statt großer Fläche */
.vermieter.klein .vermieter-text { padding: clamp(24px, 5vw, 44px); padding-top: clamp(96px, 22vw, 140px); gap: 10px; }
.vermieter.klein .vermieter-text h2 { font-size: clamp(26px, 4vw, 40px); }
/* Am PC: Hochformat-Foto als Spalte rechts statt als flacher Streifen über die ganze Breite (sonst nur ein vergrößerter Ausschnitt) */
@media (min-width: 900px) { .vermieter.klein img { left: auto; width: 36%; } .vermieter.klein::before { background: linear-gradient(90deg, var(--nacht) 0%, var(--nacht) 64%, rgba(8, 8, 9, 0) 78%); } .vermieter.klein .vermieter-text { padding-right: 40%; } }
@media (min-width: 900px) { .vermieter.klein .vermieter-text { min-height: 280px; padding-top: clamp(24px, 5vw, 44px); grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: stretch; } .vermieter.klein h2 { grid-column: 1; } .vermieter.klein p { grid-column: 1; } .vermieter.klein .knopf { grid-column: 2; grid-row: 1 / span 2; } }

/* Paul 02.11.: „etwas größer machen“: höher, größere Schrift und größerer Knopf, Foto breiter */
.vermieter.klein .vermieter-text { padding-top: clamp(150px, 40vw, 220px); gap: 14px; }
.vermieter.klein .vermieter-text h2 { font-size: clamp(34px, 5vw, 60px); }
.vermieter.klein .vermieter-text p { font-size: clamp(16px, 1.6vw, 20px); }
.vermieter.klein .knopf { min-height: 56px; padding: 0 30px; font-size: 17px; }
@media (min-width: 900px) {
  .vermieter.klein .vermieter-text { min-height: 400px; padding: clamp(40px, 5vw, 64px); padding-right: 46%; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: start; gap: 16px; }
  .vermieter.klein .knopf { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .vermieter.klein .vermieter-text h2 { white-space: nowrap; }
  .vermieter.klein img { width: 44%; }
  .vermieter.klein::before { background: linear-gradient(90deg, var(--nacht) 0%, var(--nacht) 56%, rgba(8, 8, 9, 0) 70%); }
}

/* Modus Normal: nur zwei Wege (Wohnung, WG-Zimmer) statt drei; „Für Studierende“-Seite */
@media (min-width: 900px) { html[data-modus="normal"] .wege { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.seiten-aktion { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }

.menue-abmelden { display: block; width: 100%; min-height: 48px; margin-top: 4px; border: 0; background: none; color: var(--ink-2); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.menue-abmelden[hidden] { display: none; }

/* ---------- Startseite im Normal-Modus (02.11.): Bezirke, Foto-Reihen, Mietcheck-Teaser, Wohnformen ---------- */
.bezirke-start, .reihe-start, .wohnformen, .mc-start { padding-block: clamp(56px, 9vw, 112px) 0; }
.bezirke-start[hidden] { display: none; }
/* Handy: ruhige Liste (Name links, €/m² rechts), ab 700 px Kacheln. Nichts bricht mitten im Wort, „€/m²“ bleibt beisammen (Paul 03.11.) */
.bezirk-raster { display: grid; gap: 8px; }
.bezirk-kachel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border-radius: var(--r-m); background: var(--weiss, #fff); box-shadow: inset 0 0 0 1px var(--linie); color: var(--ink); text-decoration: none; min-width: 0; transition: box-shadow .15s, transform .15s; }
.bezirk-kachel:hover { box-shadow: inset 0 0 0 1.5px var(--blau); transform: translateY(-1px); }
.bz-ort { display: grid; gap: 1px; min-width: 0; }
.bz-ort b { font-size: 16px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-ort span { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-preis { display: grid; justify-items: end; gap: 1px; text-align: right; }
.bz-preis strong { font-size: 16px; font-weight: 800; color: var(--blau-tief); white-space: nowrap; letter-spacing: -.01em; }
.bz-preis small { font-size: 12px; color: var(--grau); white-space: nowrap; }
@media (max-width: 699px) { .bezirk-kachel:nth-child(n+7) { display: none; } } /* Handy: höchstens 6 Zeilen */
@media (min-width: 700px) {
  .bezirk-raster { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .bezirk-kachel { grid-template-columns: minmax(0, 1fr); align-content: space-between; align-items: start; gap: 14px; min-height: 120px; padding: 16px; }
  .bz-preis { justify-items: start; text-align: left; }
}
.mc-teaser { display: grid; gap: 18px; padding: 24px 20px; border-radius: var(--r-l); background: var(--blau-hell); color: var(--ink); text-decoration: none; }
.mc-teaser h2 { font-size: clamp(30px, 8vw, 44px); letter-spacing: -.045em; line-height: 1.02; margin-bottom: 8px; }
.mc-teaser p { color: var(--ink-2); max-width: 52ch; }
.mc-teaser .ueberzeile { color: var(--blau-tief); margin-bottom: 8px; }
.mc-teaser-zahl { margin-top: 10px; font-weight: 700; color: var(--ink) !important; }
.mc-teaser .knopf { justify-self: start; }
@media (min-width: 800px) { .mc-teaser { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 36px; } }
.wohnform-raster { display: grid; gap: 10px; margin-top: var(--s5, 24px); }
.wohnform { padding: 18px; border-radius: var(--r-m); background: var(--weiss, #fff); box-shadow: inset 0 0 0 1px var(--linie); }
.wohnform h3 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 6px; }
.wohnform p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
@media (min-width: 800px) { .wohnform-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1100px) { .wohnform-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ort-kachel small.ort-miete { display: block; margin-top: 2px; font-weight: 700; color: #fff; } /* /staedte: Median-Miete (Normal-Modus) */

/* Profilbild-Menü (angemeldet) */
.konto-menue { position: absolute; top: calc(100% + 10px); right: 0; z-index: 70; min-width: 260px; display: grid; padding: 8px; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 18px 50px rgba(0, 0, 0, .22), 0 0 0 1px rgba(0, 0, 0, .06); animation: menue-rein .18s var(--sanft); }
.konto-menue[hidden] { display: none; }
.konto-menue a, .konto-menue button { display: grid; gap: 2px; min-height: 52px; padding: 10px 14px; border: 0; border-radius: 14px; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; align-content: center; }
.konto-menue a:hover, .konto-menue button:hover { background: var(--grund); }
.konto-menue b { font-size: 16px; letter-spacing: -.01em; }
.konto-menue small { color: var(--ink-2); font-size: 13px; }
.konto-menue button { color: var(--ink-2); font-weight: 700; border-top: 1px solid var(--linie); border-radius: 0 0 14px 14px; margin-top: 4px; }
/* Kopf am Handy (Paul 03.11.): „Mein Feed“ als Knopf, Swipen als rundes Symbol; am PC „Jetzt swipen“ */
.kopf-rechts .kopf-knopf-handy { display: none; }
@media (max-width: 900px) { .kopf-rechts .kopf-knopf-pc, .kopf-rechts .kopf-konto, .kopf-rechts .konto-menue { display: none; } .kopf-rechts .kopf-knopf-handy { display: inline-flex; } } /* Paul 03.11.: „massiv gestopft“ → am Handy nur Mein Feed + Menü, Profil im Menü */
.kopf-knopf-handy[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--blau); }
/* /suchen am PC (Paul 03.11.: „Horror“): Kacheln nicht mehr bildschirmhoch */
@media (min-width: 900px) {
  .weg-karte { aspect-ratio: 4 / 3; max-height: 380px; }
  html[data-modus="normal"] .weg-karte { aspect-ratio: 16 / 10; }
  .weg-karte b { font-size: 34px; }
}

/* /suchen „Direkt in deine Stadt“ (Paul 03.11.: „sieht aus wie 1 Milliarde Landingpages“) → ruhige Foto-Kacheln mit kleinen Chips */
.stadt-kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.sk { display: grid; gap: 8px; align-content: start; min-width: 0; }
.sk-bild { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; background: var(--nacht-2); color: #fff; text-decoration: none; }
.sk-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--sanft); }
.sk-bild:hover img { transform: scale(1.05); }
.sk-bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .75)); }
.sk-text { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; display: grid; gap: 1px; }
.sk-text b { font-size: 20px; letter-spacing: -.03em; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-text small { font-size: 12.5px; opacity: .85; }
.sk-bild em { position: absolute; z-index: 1; top: 10px; left: 10px; font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--blau); color: #fff; }
.sk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sk-chips a { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--grund); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; }
.sk-chips a span { font-weight: 500; color: var(--ink-2); }
.sk-chips a.leer { opacity: .45; }
.sk-chips a:hover { background: var(--ink); color: #fff; }
@media (min-width: 700px) { .stadt-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; } }
@media (min-width: 1200px) { .stadt-kacheln { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 699px) { .sk-chips { display: none; } } /* Handy: die ganze Kachel ist der Tipp (≥ 44 px), die Art wählt man im Swiper */

/* Kontaktlinks in Impressum und Bildnachweis: Tippfläche mindestens 44 px hoch (iPad, Paul 03.11.), Text bleibt in der Zeile */
.recht a[href^="mailto:"], .recht a[href^="tel:"], .nachweis main a { display: inline-block; min-width: 44px; padding-block: 13px; margin-block: -13px; }

.neu-reihe.foto-pruefung, .rg-reihe.foto-pruefung { visibility: hidden; }
.neu-reihe > .neu-karte.ueber { display: none !important; } /* angefangene Zeile ausblenden (start.js reiheGlatt) */

/* ---------- Marken-Moment (Startseite nach „Städte“ und oben im Fuß), Paul 03.11.: neues Zeichen als Fenster auf die eigene Stadt ----------
   Flüssig am Handy: zwei HTML-Ebenen mit clip-path (Dach, Haus) und ein Strich; animiert wird NUR transform/opacity (läuft auf der GPU),
   einmal, sobald .marke-anim im Bild ist (public/marke.js). Punkte = Logo-Polygone in % der Box (viewBox 14 6 100 104). */
.marke-zeichen { position: relative; width: min(84vw, 400px); aspect-ratio: 100 / 104; }
.z-teil { position: absolute; inset: 0; background: #1d1d20 50% 50% / auto 100% no-repeat; }
.z-haus { clip-path: polygon(6% 73.08%, 86% 57.69%, 86% 94.23%, 6% 94.23%); }
.z-dach { clip-path: polygon(12% 41.35%, 52% 7.69%, 92% 41.35%, 92% 48.08%, 12% 63.46%); transform-origin: 12% 63%; transition: transform 1s cubic-bezier(.2, .8, .2, 1) .15s; will-change: transform; }
.z-schnitt { position: absolute; left: 2%; top: 70.96%; width: 95.9%; height: clamp(4px, 1.1vw, 7px); margin-top: calc(clamp(4px, 1.1vw, 7px) / -2); border-radius: 99px; background: var(--blau); box-shadow: 0 0 14px rgba(26, 115, 232, .75);
  transform-origin: 0 50%; transform: rotate(-11.3deg) scaleX(0); transition: transform .8s cubic-bezier(.2, .8, .2, 1) .3s; will-change: transform; }
.marke-anim.an .z-dach { transform: translate(7%, -5.5%) rotate(4deg); }
.marke-anim.an .z-schnitt { transform: rotate(-11.3deg) scaleX(1); }
.marke { background: var(--nacht); color: #fff; padding-block: clamp(72px, 14vw, 150px); margin-top: clamp(56px, 9vw, 112px); overflow: hidden; }
.marke-in { display: grid; gap: 28px; justify-items: center; text-align: center; }
.marke-text { opacity: 0; transform: translateY(18px); transition: opacity .6s ease .55s, transform .6s cubic-bezier(.2, .8, .2, 1) .55s; }
.marke-anim.an .marke-text { opacity: 1; transform: none; }
.marke-text { display: grid; gap: 12px; justify-items: center; }
.marke-text h2 { margin: 0; font-size: clamp(46px, 13vw, 104px); line-height: .95; letter-spacing: -.055em; font-weight: 800; }
.marke-text h2 span { color: var(--blau); }
.marke-text p { margin: 0; max-width: 32ch; font-size: clamp(16px, 2vw, 19px); line-height: 1.5; color: rgba(255, 255, 255, .72); }
.marke-text .knopf { margin-top: 6px; }
@media (min-width: 900px) {
  .marke-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); text-align: left; justify-items: start; gap: 48px; }
  .marke-zeichen { width: min(40vw, 480px); justify-self: center; }
  .marke-text { justify-items: start; min-width: 0; }
  .marke-text h2 { font-size: min(4.6vw, 88px); white-space: nowrap; }
}
/* Fuß-Marke (Paul 03.11.): PC wie gehabt linksbündig – Zeichen, darunter klein „wohnfix“, dann der Satz.
   Handy: kompakte Zeile – Zeichen links (72 px), rechts Name und Satz; darunter eine feine Linie, dann die Links. */
.fuss-marke { grid-column: 1 / -1; display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; row-gap: 2px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--nacht-3, #2a2a2e); }
.fuss-lockup { display: contents; color: #fff; text-decoration: none; }
.fuss-lockup .marke-zeichen { grid-column: 1; grid-row: 1 / span 2; width: 72px; }
.fuss-wortmarke { grid-column: 2; grid-row: 1; align-self: end; color: #fff; font-weight: 800; font-size: 22px; letter-spacing: -.04em; line-height: 1.1; text-decoration: none; }
.fuss-marke p { grid-column: 2; grid-row: 2; align-self: start; margin: 0; max-width: 36ch; font-size: 14px; line-height: 1.45; }
@media (min-width: 900px) {
  .fuss-in { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
  .fuss-marke { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: none; row-gap: 0; justify-items: start; align-content: start; padding-bottom: 0; border-bottom: 0; }
  .fuss-lockup .marke-zeichen { grid-column: 1; grid-row: auto; width: 140px; }
  .fuss-wortmarke { grid-column: 1; grid-row: auto; margin-top: 10px; font-size: 19px; }
  .fuss-marke p { grid-column: 1; grid-row: auto; margin-top: 14px; font-size: inherit; }
}
.fuss-lockup .marke-zeichen { justify-self: start; } /* nicht von .marke-zeichen (Marken-Abschnitt) zentrieren lassen */

/* Marken-Zeichen: zuerst ein GANZES Haus (Dach sitzt auf), erst im Bild schneidet der Swipe es (Paul 03.11.).
   Das Dach startet um den Schnitt versetzt (−6 % / +9,6 % der Box) auf dem Haus; das Foto darin läuft gegengleich, damit das Bild durchgehend ist. */
.z-dach { background: none; transform: translate(-6%, 9.6%); }
.z-dach .z-foto { position: absolute; inset: 0; background: #1d1d20 50% 50% / auto 100% no-repeat; transform: translate(6%, -9.6%); transition: transform 1s cubic-bezier(.2, .8, .2, 1) .15s; will-change: transform; }
.marke-anim.an .z-dach .z-foto { transform: none; }
@media (prefers-reduced-motion: reduce) { .z-dach .z-foto { transition: none; } }
/* „Jetzt swipen“ im Marken-Abschnitt: Glas statt kräftiges Blau */
.marke .marke-knopf { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s, box-shadow .2s; }
.marke .marke-knopf span { transition: transform .2s; }
@media (hover: hover) { .marke .marke-knopf:hover { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); } .marke .marke-knopf:hover span { transform: translateX(3px); } }
/* Fuß am PC: „wohnfix“ mittig unter dem Hausboden (Boden liegt bei 6–86 % der Zeichenbreite → Mitte 46 %) */
@media (min-width: 900px) { .fuss-wortmarke { width: 140px; padding-right: 11px; text-align: center; box-sizing: border-box; } }
/* Kein weißer Streifen unter dem Fuß: der Platz für den Lisa-Knopf liegt im Fuß (schwarz) */
body:has(> .fuss) { padding-bottom: 0 !important; }
body:has(> .fuss) .fuss { padding-bottom: calc(var(--s6, 32px) + 84px + env(safe-area-inset-bottom, 0px)); }
.marke-text { align-content: center; align-self: center; }
.marke .marke-knopf { align-self: start; justify-self: center; }
@media (min-width: 900px) { .marke .marke-knopf { justify-self: start; } }

/* „Kurz erklärt“ (Startseite): aufklappbare Begriff-Liste – war beim Fuß-Umbau 8abe2ea verloren gegangen, wiederhergestellt 03.11. */
   großer Begriff, ein Satz daneben, aufklappen für die Erklärung; ruhig, viel Luft, keine Kästen */
.begriffe { margin-top: var(--s5, 24px); border-top: 1px solid var(--linie); }
.begriff { border-bottom: 1px solid var(--linie); }
.begriff summary { list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr) 40px; grid-template-areas: "nr wort plus" "nr kurz plus"; column-gap: 14px; align-items: center; padding: 18px 0; min-height: 44px; cursor: pointer; }
.begriff summary::-webkit-details-marker { display: none; }
.begriff-nr { grid-area: nr; align-self: start; padding-top: .55em; font-size: 12px; font-weight: 800; color: var(--blau); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.begriff summary b { grid-area: wort; font-size: clamp(26px, 6vw, 46px); line-height: 1.05; letter-spacing: -.045em; font-weight: 800; transition: color .2s; }
.begriff summary small { grid-area: kurz; margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.begriff summary i { grid-area: plus; position: relative; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--linie); transition: transform .3s var(--feder, ease), background .2s; }
.begriff summary i::before, .begriff summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: var(--ink); }
.begriff summary i::after { transform: rotate(90deg); }
.begriff[open] summary i { transform: rotate(45deg); background: var(--ink); box-shadow: none; }
.begriff[open] summary i::before, .begriff[open] summary i::after { background: #fff; }
.begriff p { margin: 0 0 22px; padding-left: calc(2ch + 14px); max-width: 62ch; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
@media (hover: hover) { .begriff summary:hover b { color: var(--blau); } }
@media (min-width: 900px) {
  .begriff summary { grid-template-columns: 48px minmax(0, 1.1fr) minmax(0, 1fr) 44px; grid-template-areas: "nr wort kurz plus"; padding: 26px 0; }
  .begriff summary small { margin: 0; font-size: 16px; }
  .begriff-nr { padding-top: 0; align-self: center; }
  .begriff p { padding-left: 62px; font-size: 17px; }
}

/* Fuß-Marke (Paul 03.11. abends): ohne Satz, nur Haus mit „wohnfix“ darunter, mittig in der eigenen Spalte bzw. am Handy mittig über den Links */
.fuss-marke { grid-template-columns: 1fr !important; grid-template-rows: none !important; justify-items: center; align-content: center; row-gap: 0; }
.fuss-lockup { display: grid; justify-items: center; color: #fff; text-decoration: none; }
.fuss-lockup .marke-zeichen { grid-column: auto; grid-row: auto; width: 96px; justify-self: center; }
.fuss-wortmarke { grid-column: auto; grid-row: auto; width: 96px; margin-top: 8px; padding-right: 7px; box-sizing: border-box; text-align: center; font-size: 17px; }
@media (min-width: 900px) { .fuss-marke { align-self: center; } .fuss-lockup .marke-zeichen { width: 140px; } .fuss-wortmarke { width: 140px; padding-right: 11px; font-size: 19px; } }

/* SEO 04.11.: „Wohnungssuche in ganz Österreich“ als sichtbare Überzeile in der H1; Städte-Links im Fuß */
.hero h1 .h1-ober { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 800; letter-spacing: .1em; line-height: 1.3; text-transform: uppercase; color: rgba(255, 255, 255, .82); white-space: normal; }
.fuss-staedte { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; padding-top: 20px; border-top: 1px solid var(--nacht-3, #2a2a2e); }
.fuss-staedte b { flex-basis: 100%; color: #fff; font-size: 14px; margin-bottom: 2px; }
.fuss-staedte a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--gedimmt); text-decoration: none; } /* kurze Namen (Linz, Graz, Wels) waren 28 px breit: Daumen trifft daneben */
@media (hover: hover) { .fuss-staedte a:hover { color: #fff; } }

/* SEO-Blöcke (lib/seo-bloecke.mjs): echte Zahlen und Links, auch ohne JavaScript lesbar */
.seo-block { padding-block: var(--s7, 48px) var(--s6, 32px); }
.seo-block h2 { font-size: clamp(26px, 4.4vw, 40px); letter-spacing: -.045em; line-height: 1.05; }
.seo-block > p { max-width: 64ch; margin: 12px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.seo-block > p a { color: var(--blau-tief); font-weight: 700; text-underline-offset: 3px; }
.seo-liste { list-style: none; margin: 22px 0 18px; padding: 0; display: grid; border-top: 1px solid var(--linie); }
.seo-liste a { display: grid; gap: 2px; min-height: 44px; padding: 12px 0; border-bottom: 1px solid var(--linie); color: var(--ink); text-decoration: none; }
.seo-liste b { font-size: 16.5px; letter-spacing: -.01em; } .seo-liste span { font-size: 13.5px; color: var(--grau); }
@media (hover: hover) { .seo-liste a:hover b { color: var(--blau-tief); } }
@media (min-width: 800px) { .seo-liste { grid-template-columns: 1fr 1fr; column-gap: 40px; } }

/* Stadt-Pille unter dem Hero: Grundform schon im Stylesheet (Performance 03.11.: vorher nur im CSS aus stadtwahl.js, das am Seitenende läuft;
   bis dahin waren die Symbole 300 × 150 px groß und der Hero sprang beim Laden, CLS 0,32). Feinheiten und Blatt bleiben in stadtwahl.js. */
.stadt-pille { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 16px; font-weight: 700; font-family: inherit; }
.stadt-pille svg { width: 18px; height: 18px; flex: none; }
.stadt-pille .stadt-pille-pfeil { width: 14px; height: 14px; opacity: .8; }
/* „Neu frei“ ohne Stadt: wo suchst du? (Paul 05.11.) – Standort, fünf Städte, andere Stadt. Am Handy seitlich wischbar, Daumen-Höhe 44 px */
.neu-ort { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.neu-ort::-webkit-scrollbar { display: none; }
.neu-ort[hidden] { display: none; }
.neu-ort button { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--linie, #e3e3e0); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.neu-ort button:active { transform: scale(.97); }
.neu-ort .neu-ort-nah { background: var(--blau, #1a73e8); color: #fff; box-shadow: none; }
.neu-ort .neu-ort-nah svg { width: 18px; height: 18px; }
.neu-ort .neu-ort-mehr { color: var(--blau-tief, #1557b0); }
.neu-ort button:disabled { opacity: .7; cursor: progress; }
@media (hover: hover) { .neu-ort button:not(.neu-ort-nah):hover { box-shadow: inset 0 0 0 1.5px var(--blau, #1a73e8); } }
@media (min-width: 900px) { .neu-ort { flex-wrap: wrap; overflow: visible; } }
/* Die wischbare Reihe darf ihren Block nicht breiter machen (sonst lief der Satz darüber rechts aus dem Bild, 375 px) */
#neuAbschnitt .abschnitt-kopf > div { min-width: 0; width: 100%; max-width: 100%; }

/* Foto-Nachweis (Unsplash) dezent im Bild: Name des Fotografen, ausführlich auf /bildnachweis (Go-Live 06.11.) */
figure:has(> .foto-von) { position: relative; }
.foto-von { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
