.angebotskopf, .objekttitel, .angebotsart, .objektband { padding-inline: var(--rand); }
.angebotskopf, .objekttitel { padding-block: clamp(24px, 3vw, 48px); }
.angebotskopf { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.angebotskopf nav, .kartenlinks { display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.angebotskopf h1, .objekttitel h1, .auswahl h3, .angebotsart h2, :is(.objektband, .expose-daten) h2 {
  font-weight: 300; line-height: 1.09; letter-spacing: -.035em;
}
.angebotskopf h1, .objekttitel h1 { font-size: clamp(32px, 3.2vw, 50px); }
.angebotsart { padding-block: clamp(44px, 5vw, 86px) clamp(28px, 3.8vw, 64px); scroll-margin-top: var(--kopf); }
.angebotsart:nth-of-type(odd) { background: var(--leinen); }
.objektband h2 { font-size: clamp(28px, 3vw, 48px); }
.angebotsart > h2 {
  display: flex; align-items: center; gap: 14px; margin-bottom: clamp(28px, 3vw, 48px);
  font-size: clamp(14px, 1.1vw, 16px); font-weight: 500; line-height: 1.4;
  letter-spacing: .1em; text-transform: uppercase;
}
.angebotsart > h2::after { content: ""; width: 32px; border-top: 1px solid #877667; }
.objektliste { display: grid; gap: 28px 8px; }
.objektverweis { display: block; }
.objektort, .raumfolge figcaption, .kennzahlen { font-size: 13px; }
.objektverweis > .objektort { margin-bottom: 6px; font-size: 12px; color: #55564f; }
.objektverweis img, .objektmotiv { display: block; width: 100%; aspect-ratio: 2.12; object-fit: cover; object-position: center 47%; }
.objektverweis img { aspect-ratio: 1.7; }
.objektlegende { margin-top: 9px; }
.objektlegende h3 { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.4; }
.objektlegende h3 span { font-size: 12px; font-weight: 400; }
.objektverweis:is(:hover, :focus-visible) h3 { text-decoration: underline; text-underline-offset: 3px; }
.objektlegende .kennzahlen { margin-top: 2px; font-size: 14px; color: #55564f; }
.bildkopf { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 12px clamp(20px, 3vw, 56px); }
@media (min-width: 681px) {
  .objektliste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .magazinobjekt:only-child { grid-column: 1 / -1; }
  .magazinobjekt:only-child img { aspect-ratio: 2.12; }
}
.auswahl h3 { margin: 0 0 10px; font-size: clamp(25px, 2.3vw, 42px); }
.auswahl .textlink, .angebotskopf nav, .angebotsart > .textlink, .objekttitel .textlink { font-size: 14px; }
.objekttitel h1 { margin-top: 5px; }
.objekttitel > .textlink { margin-bottom: 12px; }
.objekttitel .bildkopf .textlink { padding: 0; }
.objekttitel ~ :is(.objektband, .expose-daten) h2 { font-size: clamp(25px, 2.5vw, 40px); }
.auswahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "geschichte bild" "legende bild"; grid-template-rows: 1fr auto; scroll-margin-top: var(--kopf); }
.auswahl .kartentext { grid-area: geschichte; padding: clamp(16px, 1.8vw, 28px) var(--rand) 0; }
.auswahl h2 { margin-bottom: clamp(32px, 4.6vw, 74px); font-size: 14px; font-weight: 400; }
.auswahl .projektzeile { max-width: 39ch; }
.auswahl .angebotslegende { grid-area: legende; padding: clamp(28px, 4vw, 56px) var(--rand) 0; }
.auswahl .projektfakten { font-size: 14px; }
.auswahl img { grid-area: bild; width: 100%; height: 100%; min-height: 300px; aspect-ratio: 3 / 2; object-fit: cover; }
.auswahl .kartenlinks { margin-top: 6px; }
.auswahl .kartenlinks a { padding-bottom: 0; }
.objektband { padding-block: clamp(44px, 6vw, 110px); display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(28px, 8vw, 160px); align-items: start; }
.objektband h2 { max-width: 20ch; text-wrap: balance; }
.objektband p { max-width: 53ch; margin-top: 18px; }
.objektband h3 { font-size: 19px; font-weight: 400; margin: 30px 0 0; }
.objektdaten { margin: 0; }
.objektdaten div { display: flex; justify-content: space-between; gap: 20px; padding-block: 7px; border-bottom: 1px solid #c4c6b8; }
.objektdaten dd { margin: 0; text-align: right; }
.expose-intro p:first-child { margin-top: 0; }
.expose-intro details { margin-top: 20px; max-width: 56ch; }
.expose-intro summary { width: fit-content; padding-block: 6px; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.objekt-langtext {
  max-height: min(45vh, 23rem);
  overflow-y: auto;
  scrollbar-gutter: stable;
  margin-top: 8px;
  padding: 16px clamp(14px, 2vw, 24px);
  background: #f1eee7;
}
.objekt-langtext:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.expose-merkmale, .expose-daten { padding: clamp(40px, 5vw, 76px) var(--rand); }
.expose-merkmale, .expose-merkmale ~ .anfragen { background: #f1eee7; }
.expose-merkmale h2, .expose-daten h2 { margin: 0 0 14px; text-align: left; }
.expose-merkmale ul, .expose-daten dl { margin: 0; padding: 0; }
.expose-merkmale ul { list-style: none; font-size: clamp(17px, 1.5vw, 21px); font-weight: 300; line-height: 1.55; }
.expose-daten dl { max-width: 36rem; font-size: 15px; line-height: 1.5; }
.expose-daten dl > div { display: grid; grid-template-columns: minmax(7rem, .8fr) minmax(0, 1.2fr); column-gap: 18px; padding-block: 3px; }
.expose-daten dt { color: #57594f; }
.expose-daten dd { margin: 0; }
.expose-daten { display: grid; row-gap: 0; background: #fff; scroll-margin-top: var(--kopf); }
.expose-daten > .studiorubrik { grid-column: 1 / -1; margin: 0 0 14px; }
@media (min-width: 681px) {
  .expose-daten, .grundrissband, .medienbeispiel, .expose-daten ~ .anfragen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(32px, 6vw, 96px);
  }
}
@media (max-width: 680px) {
  .expose-daten .nachbarschaft { margin-top: 32px; }
}
.nachbarschaft p { max-width: 53ch; }
.nachbarschaft { scroll-margin-top: calc(var(--kopf) + 16px); }
.nachbarschaft p + p { margin-top: 1em; }
.lagebilder { margin-top: 20px; }
.lagebilder .miniaturen { grid-template-columns: 9fr 8fr; gap: 5px; }
.lagebilder a:first-child { grid-row: span 2; }
.lagebilder .miniaturen img { width: 100%; height: 100%; object-fit: cover; }
.lagebilder figcaption { margin-top: 6px; font-size: 13px; }
.nachbarschaft .textlink { margin-top: clamp(18px, 2vw, 30px); }
.raumfolge { padding: clamp(24px, 4vw, 60px) clamp(10px, 1.6vw, 32px); background: #e4e5dc; display: grid; align-items: start; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(22px, 3vw, 52px) clamp(12px, 2vw, 34px); }
.raumfolge figure:first-child, .raumfolge figure:last-child:nth-child(even) { grid-column: 1 / -1; }
.raumfolge img { width: 100%; height: auto; }
.raumfolge figure:first-child img { aspect-ratio: 1.95; object-fit: cover; }
.raumfolge figure:last-child:nth-child(even) img { max-width: 1094px; margin-inline: auto; }
.raumfolge figure:last-child:nth-child(even) figcaption { max-width: 1094px; margin-inline: auto; }
.raumfolge figcaption { margin-top: 8px; }
.fotogalerie { padding: clamp(32px, 4.8vw, 82px) var(--rand); background: var(--leinen); scroll-margin-top: var(--kopf); }
.fotogalerie header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.fotogalerie header p, .bildsteuerung p, .galerieschluss { font-size: 13px; }
.miniaturen { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.miniaturen a { display: block; cursor: zoom-in; }
.miniaturen img { width: 100%; height: auto; }
.miniaturen a:is(:hover, :focus-visible) { outline: 2px solid var(--tinte); outline-offset: 1px; }
.fotoansicht { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 12px var(--rand) max(12px, env(safe-area-inset-bottom)); background: #24231f; color: #faf8f2; }
.fotoansicht[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 9px; }
html:has(.fotoansicht[open]) { overflow: hidden; }
.fotoansicht button { border: 0; background: transparent; color: inherit; cursor: pointer; min-width: 44px; min-height: 44px; }
.fotoansicht button:hover { background: #393832; }
.galerieschluss { justify-self: end; padding-inline: 12px; }
.grossfoto { width: 100%; height: 100%; object-fit: contain; }
.bildsteuerung { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.bildsteuerung button { font-size: 23px; }
.bildsteuerung p { text-align: center; }
.bildnummer { color: #c6c4b9; margin-right: .65em; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 900px) { .miniaturen { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .miniaturen { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .bildnummer { display: block; margin: 0; }
}
/* Der hochformatige Plan bleibt bei gleicher Spaltenbreite niedriger als die 3D-Vorschau. */
.grundrissvorschau { display: block; width: min(62%, 345px); border: 1px solid #d1cec6; background: white; cursor: zoom-in; }
.grundrissvorschau img { width: 100%; height: auto; }
.grundrisslink { margin-top: clamp(20px, 2.5vw, 36px); }
.grundrissband .nachbarschaft { margin-top: clamp(48px, 5vw, 80px); }
#grundriss { scroll-margin-top: var(--kopf); }
.anfragen { background: #e1d8c8; scroll-margin-top: var(--kopf); }
.anfragen p { margin-block: 8px; }
.anfragen .studiorubrik, .grundrissband .studiorubrik { margin: 0 0 14px; }
.projektkopf { padding: clamp(30px, 4.5vw, 78px) var(--rand); }
.projektkopf h1 { margin: 22px 0; font-size: clamp(38px, 4vw, 76px); font-weight: 300; line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }
.projektkopf > p:not(.objektort) { max-width: 32ch; }
.modulsprung { margin-top: clamp(64px, 7.5vw, 120px); padding-inline: 14px; background: #fff; }
.projektblick p:first-child, .projektweiter p:first-child { margin-top: 0; }
.leistungsseite .studiorubrik + :is(h1, h2) { margin-top: var(--titelabstand); }
.leistungsmodule { padding: var(--abschnitt-oben) var(--rand) clamp(46px, 6vw, 100px); scroll-margin-top: var(--kopf); }
.leistungsmodule h2 { font-size: clamp(32px, 3.6vw, 60px); font-weight: 300; line-height: 1.1; letter-spacing: -.035em; }
.leistungsmodule > p { max-width: 62ch; margin-top: 16px; }
.modulkopf { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
.modulkopf > h2 { grid-column: 1; }
.modulkopf > img {
  grid-area: 1 / 2 / 3 / 3; align-self: start;
  width: clamp(165px, 24vw, 360px); height: auto;
}
@media (max-width: 540px) {
  .modulkopf > h2 { grid-column: 1 / -1; grid-row: 2; }
  .modulkopf > img { grid-row: 1; width: clamp(120px, 36vw, 144px); }
}
.leistungsmodule > #projektbegleitung { margin-top: clamp(48px, 6vw, 88px); scroll-margin-top: calc(var(--kopf) + 24px); }
.modulgruppe { display: grid; grid-template-columns: 1fr 2fr; gap: var(--rand); margin-top: clamp(32px, 4vw, 65px); }
.modulgruppe h3 { margin: 12px 0 0; font-size: clamp(19px, 1.7vw, 27px); font-weight: 300; }
.modulgruppe[id] { scroll-margin-top: calc(var(--kopf) + 16px); }
.modulliste { --modulakzent: #9c9083; }
.modulliste details { border-top: 1px solid #b8b9ab; }
.modulliste summary[id] { scroll-margin-top: calc(var(--kopf) + 24px); }
.modulliste summary { display: grid; grid-template-columns: 68px 1fr auto; padding: 10px 8px; background-color: var(--modulgrund, transparent); color: var(--modulschrift, inherit); font-size: clamp(17px, 1.55vw, 24px); gap: 14px; }
.modulliste summary img { width: 68px; height: auto; filter: var(--modulfilter, none); }
.modulliste summary:focus-visible { --modulgrund: var(--modulakzent); --modulschrift: #fff; --modulfilter: brightness(0) invert(1); }
@media (hover: hover) {
  .modulliste summary:hover { --modulgrund: var(--modulakzent); --modulschrift: #fff; --modulfilter: brightness(0) invert(1); }
}
@media (hover: none) {
  .modulliste details[open] > summary { --modulgrund: var(--modulakzent); --modulschrift: #fff; --modulfilter: brightness(0) invert(1); }
}
.modultext { padding: 0 0 20px 90px; max-width: 64ch; }
.modulpreis { margin-top: 10px; font-size: 14px; }
.projektweiter {
  background: var(--leinen); scroll-margin-top: var(--kopf);
  padding-top: var(--abschnitt-oben); grid-template-rows: auto 1fr;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  grid-template-areas: "foto frage" "foto einladung";
  gap: 18px clamp(32px, 5vw, 84px);
}
.projektweiter > h2 { grid-area: frage; }
.projektweiter > img { grid-area: foto; align-self: center; width: 100%; height: auto; }
.projektweiter > div { grid-area: einladung; }
.projektweiter .textlink { margin-top: clamp(20px, 2.5vw, 36px); }
@media (max-width: 680px) {
  .modulgruppe { grid-template-columns: 1fr; gap: 12px; }
  .modulliste summary { grid-template-columns: 46px 1fr auto; gap: 8px; }
  .modulliste summary img { width: 46px; }
  .modulliste .lesehinweis { font-size: 12px; gap: 5px; }
  .modultext { padding-left: 0; }
  .projektkopf h1 { max-width: 15ch; margin-block: 14px; }
  .objektliste, .objektband { grid-template-columns: 1fr; }
  .projektweiter { grid-template-areas: "frage" "foto" "einladung"; grid-template-rows: auto auto auto; gap: 24px; }
  .angebotskopf { align-items: center; }
  .angebotskopf nav { gap: 14px; }
  .auswahl { grid-template-columns: 1fr; grid-template-areas: "geschichte" "bild" "legende"; grid-template-rows: auto; }
  .auswahl .kartentext { padding-bottom: 24px; }
  .auswahl .angebotslegende { padding-top: 16px; }
  .auswahl img, .objektmotiv { height: auto; min-height: 0; aspect-ratio: 5 / 4; }
  .bildkopf { grid-template-columns: 1fr; gap: 6px; }
  .objekttitel .bildkopf .textlink { justify-self: start; }
  .objektverweis img { aspect-ratio: 3 / 2; }
  .raumfolge { grid-template-columns: 1fr; }
  .raumfolge figure:first-child img { aspect-ratio: auto; }
}

.agenturauftakt { background: #e5e1d8; }
.agenturauftakt .projektkopf { align-self: start; padding-top: var(--abschnitt-oben); }
.agenturauftakt h1 { margin-top: var(--titelabstand); }
.agenturauftakt .projektkopf > p { max-width: 43ch; }
.gruender { align-items: stretch; gap: 0; padding: 0; background: #dfdcd1; scroll-margin-top: var(--kopf); }
.gruenderfoto img { width: 100%; height: auto; }
@media (min-width: 681px) {
  .gruenderfoto { position: relative; min-width: 0; min-height: 0; }
  .gruenderfoto img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 50% 55%; }
  .gruender {
    min-height: clamp(697.5px, 83.25vw, 1035px);
    grid-template-columns: min(64%, 920px) minmax(0, 1fr);
  }
}
.gruender > div { align-self: center; padding: clamp(32px, 4vw, 64px) var(--rand); }
.gruender .objektort { margin-top: 0; }
.objektfilm { background: var(--leinen); }
.filmflaeche { width: min(100%, 1280px); aspect-ratio: 16 / 9; margin: auto; }
.filmstart { position: relative; display: block; height: 100%; }
.filmstart img, .filmflaeche iframe { display: block; width: 100%; height: 100%; border: 0; }
.objektfilm .filmstart img { object-fit: cover; object-position: center 59%; }
.filmstart span { position: absolute; bottom: 6%; left: var(--rand); background: var(--papier); padding: 12px 18px; font-size: 15px; }
.filmstart:hover span { text-decoration: underline; text-underline-offset: 4px; }
.filmlegende { padding: 6px var(--rand); display: flex; gap: 8px 24px; justify-content: space-between; flex-wrap: wrap; align-items: center; font-size: 13px; }
@media (max-width: 680px) {
  .gruender > div { padding-bottom: var(--abstand-zum-fuss); }
  .filmstart span { font-size: 14px; padding: 8px 14px; }
}

.agentursignet { width: clamp(155px, 14vw, 215px); height: auto; }
#agenturprofil { scroll-margin-top: var(--kopf); }
#agenturprofil > div { min-width: 0; }
#agenturprofil p + .textlink, .gruender p + .textlink { margin-top: clamp(32px, 4vw, 64px); }
#agenturprofil .agentursignet {
  width: min(100vw, clamp(310px, 28vw, 430px));
  margin-inline-start: min(0px, calc((100vw - 310px) / 2 - var(--rand)));
  margin-bottom: clamp(20px, 2.6vw, 42px);
}
.anschrift { margin-top: 32px; }
.anschrift .agentursignet { margin-bottom: 12px; }

/* Arbeitsproben im Auftakt der Leistungsseite */
.studioauftakt { background: #e5e9e5; }
.studiotext { align-self: start; padding: var(--abschnitt-oben) var(--rand) clamp(36px, 5vw, 88px); }
.studiorubrik, .objekttitel ~ section h2.studiorubrik { font-size: 13px; letter-spacing: .035em; font-weight: 400; line-height: 1.55; }
.studiotext h1, .filmredaktion h2 {
  font-weight: 300; letter-spacing: -.045em; line-height: 1.06; text-wrap: balance;
}
.studiotext h1 { margin-bottom: .35em; font-size: var(--auftakttitel); }
.studiostimme { font-size: 13px; color: #4d574f; }
.studioeinleitung { max-width: 40ch; margin-top: clamp(24px, 2.5vw, 40px); }
@media (max-width: 680px) {
  .studiotext { display: contents; }
  .studioauftakt { padding-block: var(--abschnitt-oben) 28px; }
  .studioauftakt :is(.studiorubrik, h1, .studiostimme, .studioeinleitung, .modulsprung) { margin-inline: var(--rand); }
  .studiofoto { grid-row: 4; margin-top: 20px; }
  .studioeinleitung { margin-top: 20px; }
  .studioauftakt .modulsprung { justify-self: start; }
}

.medienbeispiel {
  padding: var(--abschnitt-oben) var(--rand) clamp(42px, 5.5vw, 96px);
  background: #e1dcd3; scroll-margin-top: var(--kopf);
}
.filmredaktion h2 { max-width: 18ch; margin-top: var(--titelabstand); font-size: clamp(25px, 2.5vw, 40px); }
.objekttitel ~ .studiorundgang h2 em { font-size: inherit; }
.filmredaktion > p { max-width: 50ch; margin-top: 18px; }
.studiofilm { background: var(--papier); }
.medienbeispiel .objektfilm { background: transparent; }
.medienbeispiel .filmlegende { padding: 12px 0 0; justify-content: start; }
.studiorundgang .filmflaeche { aspect-ratio: 1034 / 750; }
.studiorundgang .filmstart img { object-fit: contain; background: #2e322e; }
@media (min-width: 681px) {
  .medienbeispiel { display: grid; align-items: start; }
  .medienbeispiel > :last-child { width: 100%; max-width: 560px; }
  .studiofilm > .objektfilm { grid-area: 1 / 1; }
  .studiofilm > .filmredaktion { grid-area: 1 / 2; }
  .leistungsseite .medienbeispiel { container-type: inline-size; }
  .leistungsseite .medienbeispiel > :last-child {
    /* Vom linken Seitenrand bis zum Bildbeginn im gleich breiten Atelierauftakt. */
    max-width: calc((100cqw + 2 * var(--rand)) * var(--auftakt-textanteil) - var(--rand));
  }
  .leistungsseite .medienbeispiel .filmflaeche { width: 100%; }
  .leistungsseite .studiorundgang {
    --spaltenabstand: clamp(32px, 6vw, 96px);
    grid-template-columns: calc((100% + 2 * var(--rand)) * var(--auftakt-textanteil) - var(--rand) - var(--spaltenabstand)) minmax(0, 1fr);
    column-gap: var(--spaltenabstand);
  }
}
@media (max-width: 680px) {
  .medienbeispiel .filmredaktion { margin-bottom: clamp(26px, 3vw, 54px); }
}
#matterport { scroll-margin-top: var(--kopf); }
@media (max-width: 680px) {
  .studiorundgang .filmflaeche { aspect-ratio: 4 / 5; }
  .studiorundgang .filmflaeche:has(.filmstart) { aspect-ratio: 1034 / 750; }
}

.einrichtungsplan { background: #edece4; scroll-margin-top: var(--kopf); --auszug: 0; --einzug: 0; }
.einrichtungsplan:has(input[value="leer"]:checked) { --auszug: 1; }
.einrichtungsplan:has(input[value="neu"]:checked) { --auszug: 1; --einzug: 1; }
.planbuehne { padding: var(--abschnitt-oben) var(--rand) clamp(16px, 2.8vh, 40px); display: grid; gap: clamp(12px, 2vh, 28px); }
.leistungsseite :is(.filmredaktion h2, .studienkopf h2) { font-size: clamp(29px, 3.4vw, 60px); }
.studienkopf h2 { font-weight: 300; line-height: 1.05; letter-spacing: -.04em; }
.studienansichten { display: grid; grid-template-columns: minmax(0,3.6fr) minmax(158px,1fr); gap: clamp(20px,3vw,56px); min-height: 0; }
.raumrender { position: relative; align-self: center; width: 100%; height: 100%; max-height: 66svh; min-height: 0; aspect-ratio: 3 / 2; }
.raumrender img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: contain; object-position: left center; }
.raumrender .leer { opacity: var(--auszug); }
.raumrender .neu, .raumskizze .neu { opacity: var(--einzug); }
.raumskizze .alt { opacity: calc(1 - var(--auszug)); }
.studiendetail { display: flex; flex-direction: column; justify-content: center; gap: clamp(18px,4vh,48px); }
.raumskizze { width: min(100%, 310px); }
.raumskizze svg { width: 100%; height: auto; display: block; }
.raumskizze figcaption, .studiennotiz .studiorubrik { font-size: 12px; color: #615d51; }
.raumskizze figcaption { text-align: center; margin-top: 6px; }
.studiennotiz { max-width: 32ch; }
.studiennotiz .zustand { display: none; margin-top: 7px; }
.einrichtungsplan:has([value="bewohnt"]:checked) .zustand.bewohnt,
.einrichtungsplan:has([value="leer"]:checked) .zustand.leer,
.einrichtungsplan:has([value="neu"]:checked) .zustand.neu { display: block; }
.zustandswahl { display: flex; flex-wrap: wrap; gap: 0 clamp(12px,2vw,34px); padding: 0; margin: 0; border: 0; }
.zustandswahl label { position: relative; display: inline-flex; cursor: pointer; }
.zustandswahl input { position: absolute; opacity: 0; }
.zustandswahl span { display: inline-flex; align-items: center; min-height: 36px; border-bottom: 2px solid transparent; font-size: 14px; }
.zustandswahl input:focus-visible + span { outline: 2px solid currentColor; outline-offset: 2px; }
.zustandswahl input:checked + span { border-color: #83644d; font-weight: 600; }
.einrichtungsplan.animiert::after { content: ""; display: block; height: 180svh; }
.animiert .planbuehne { --hinweisgrund: #edece4; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); position: sticky; top: var(--kopf); height: calc(100svh - var(--kopf)); grid-template-rows: auto minmax(0,1fr) auto; }
@media (max-width: 700px) {
  .planbuehne { align-content: start; }
  .studienansichten { display: flex; flex-direction: column; gap: 12px; }
  .raumrender { flex: 1 1 auto; min-height: 0; height: auto; max-height: none; width: calc(100% + 2 * var(--rand)); }
  .raumrender img { object-position: center; }
  .studiendetail { flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 16px; }
  .raumskizze { flex: 0 0 min(36vw, 155px); }
  .raumskizze figcaption { display: none; }
  .studiennotiz { font-size: 14px; }
  .zustandswahl { gap: 0 12px; }
  .zustandswahl span { font-size: 13px; }
  .animiert .planbuehne { grid-template-rows: auto minmax(0,auto) auto; }
}
