/* Appartements Baden – ergänzt /assets/css/style.css, nutzt dieselben Variablen */

/* Sprachwahl: am Computer rechts neben dem Menü, auf Handy/Tablet neben dem Menü-Knopf */
.site-header .brand { order: 0; }
.site-header .nav { order: 1; }
.app-lang { order: 2; display: inline-flex; gap: .15rem; padding-left: .6rem; border-left: 1px solid var(--line); }
.site-header .nav-toggle { order: 3; }
.app-lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; min-height: 2.5rem; font-size: .92rem; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: var(--radius); }
.app-lang a[aria-current="true"] { color: var(--wine); box-shadow: inset 0 -2px 0 var(--wine); }
@media (max-width: 960px) {
  .app-lang { margin-left: auto; border-left: 0; padding-left: 0; }
  .site-header .wrap { gap: .5rem .4rem; }
  .section-head a { display: inline-block; padding: .6rem 0; }
  .site-header .nav { order: 4; }
}

.app-head { margin-bottom: 1.5rem; }
.app-head .btn-row { margin-bottom: .5rem; }
.app-jump { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: .5rem; }
.app-jump a { font-weight: 600; display: inline-block; padding: .5rem 0; }

.app-muted { color: var(--muted); }
.app-small { font-size: .95rem; }
.app-lead { color: var(--muted); margin-top: -.25rem; }
.app-sub { margin-top: 2.5rem; }

.app-todo { background: #fff4c2; color: #4d3b00; border: 1px dashed #c9a400; border-radius: var(--radius); padding: .5rem .75rem; font-size: .9rem; margin: .5rem 0 1rem; max-width: none; }
.app-todo code { font-size: .85rem; }

/* Große Bildkacheln */
.app-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.app-tile { position: relative; display: block; aspect-ratio: 4 / 5; max-height: 560px; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; }
.app-tile img, .app-tile-empty { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.app-tile-empty { background: linear-gradient(135deg, var(--wine), var(--ink)); }
.app-tile:hover img { transform: scale(1.03); }
.app-tile-text { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: .2rem; padding: 3rem clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 1.75rem); background: linear-gradient(transparent, rgba(34, 26, 38, .85)); }
.app-tile-text strong { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.05; letter-spacing: -.02em; }
.app-tile-price { margin-top: .4rem; font-weight: 600; }
.app-tile:hover { color: #fff; }
.app-tile:hover .app-tile-price { text-decoration: underline; text-underline-offset: 4px; }

/* Beide Wohnungen nebeneinander */
.app-compare { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.app-apt { min-width: 0; scroll-margin-top: 5rem; }
.app-apt h2 { color: var(--wine); }
.app-apt h3 { margin-top: 1.75rem; }
.app-text { margin-top: 1.25rem; }

.app-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.app-thumb { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--paper-2); aspect-ratio: 1; }
.app-thumb.big { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.app-thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.app-thumb:hover img { opacity: .9; }
.app-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(34, 26, 38, .6); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.app-gallery-empty { aspect-ratio: 3 / 2; display: grid; place-items: center; border-radius: var(--radius); background: var(--paper-2); color: var(--muted); }

.app-facts { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; }

.app-amen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .55rem 1rem; }
.app-amen li { display: flex; gap: .6rem; align-items: center; font-size: .98rem; }
.app-amen .ico { flex: none; color: var(--wine); }

.app-price { margin-top: 1.75rem; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.app-price-main { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; }
.app-price-main strong { font-family: var(--font-display); font-size: 2rem; color: var(--wine); line-height: 1; }
.app-price-main span { color: var(--muted); }
.app-price-note { color: var(--muted); font-size: .95rem; margin: .5rem 0 0; }
.app-price .btn-row { margin: 1rem 0 0; }

.app-rules { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
.app-rules h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); }

/* Kalender und Formular */
.app-book { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.app-cal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; position: sticky; top: 5rem; }
.app-cal-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-bottom: .9rem; }
.app-cal-tabs button { font: inherit; font-weight: 600; padding: .55rem .6rem; border: 2px solid var(--wine); border-radius: var(--radius); background: transparent; color: var(--wine); cursor: pointer; }
.app-cal-tabs button[aria-selected="true"] { background: var(--wine); color: #fff; }
.app-cal-nav { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.app-cal-nav button { flex: none; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.app-cal-nav button:disabled { opacity: .35; cursor: default; }
.app-cal-status { color: var(--muted); font-size: .92rem; text-align: center; }
.app-cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.app-month h4 { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 .4rem; text-align: center; }
.app-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-variant-numeric: tabular-nums; }
.app-grid .wd { font-size: .75rem; color: var(--muted); text-align: center; padding-bottom: .2rem; text-transform: uppercase; letter-spacing: .04em; }
.app-day { aspect-ratio: 1; border: 0; border-radius: 3px; background: var(--paper); font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; padding: 0; }
.app-day:hover:not(:disabled) { outline: 2px solid var(--wine); outline-offset: -2px; }
.app-day:disabled { cursor: default; }
.app-day.past { background: transparent; color: #b9b5bd; }
.app-day.busy { background: repeating-linear-gradient(135deg, var(--paper-2) 0 4px, #d8d5dc 4px 8px); color: #9b95a1; text-decoration: line-through; }
.app-day.in { background: #ead3dc; }
.app-day.busy.in { background: repeating-linear-gradient(135deg, #ead3dc 0 4px, #d6aebd 4px 8px); }
.app-day.start, .app-day.end { background: var(--wine); color: #fff; font-weight: 600; }
.app-cal-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .9rem 0 0; font-size: .88rem; color: var(--muted); }
.app-cal-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.lg { display: inline-block; width: .9rem; height: .9rem; border-radius: 2px; }
.lg.free { background: var(--paper); border: 1px solid var(--line); }
.lg.busy { background: repeating-linear-gradient(135deg, var(--paper-2) 0 3px, #d8d5dc 3px 6px); }
.lg.sel { background: var(--wine); }

.app-form { max-width: none; }
.app-calc:empty { display: none; }
.app-calc { padding: 1rem; border-radius: var(--radius); background: var(--paper-2); }
.app-calc table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.app-calc td { padding: .2rem 0; }
.app-calc td:last-child { text-align: right; white-space: nowrap; }
.app-calc tr.sum td { border-top: 1px solid var(--line); padding-top: .5rem; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.app-calc .note { margin: .4rem 0 0; color: var(--muted); font-size: .9rem; }
.app-calc .warn { margin: 0; color: #5c1a1a; font-weight: 600; }
.app-form-msg:empty { display: none; }

/* Lage */
.app-loc { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.app-map { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.app-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.app-map-ph { height: 100%; display: grid; place-content: center; justify-items: center; gap: .6rem; text-align: center; padding: 1rem; }
.app-map-ph p { margin: 0; }
.app-dist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.app-dist li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.app-dist li span:last-child { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Bewertungen */
.app-score { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.app-score strong { font-family: var(--font-display); font-size: 3rem; color: var(--wine); line-height: 1; }
.app-score span { color: var(--muted); }
.app-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.app-quotes blockquote { margin: 0; border-top: 2px solid var(--wine); padding-top: .75rem; }
.app-quotes p { font-size: 1.1rem; }
.app-quotes footer { color: var(--muted); font-size: .95rem; }

/* Gastgeber */
.app-host { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; }
.app-host:not(:has(img)) { grid-template-columns: 1fr; }
.app-host img { width: 180px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }

/* FAQ */
.app-faq { border-top: 1px solid var(--ink); }
.app-faq details { border-bottom: 1px solid var(--line); }
.app-faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 600; list-style: none; position: relative; }
.app-faq summary::-webkit-details-marker { display: none; }
.app-faq summary::after { content: "+"; position: absolute; right: .25rem; top: .8rem; font-size: 1.4rem; color: var(--wine); }
.app-faq details[open] summary::after { content: "–"; }
.app-faq details p { margin: 0 0 1rem; color: var(--muted); }

/* Querverweise */
.app-cross { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.app-cross a { display: grid; gap: .2rem; height: 100%; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink); }
.app-cross a:hover { border-color: var(--wine); }
.app-cross strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--wine); }
.app-cross span { color: var(--muted); font-size: .98rem; }

.app-cta { text-align: center; }
.app-cta p { margin-inline: auto; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.app-cta .btn-row { justify-content: center; }

/* Lightbox */
.app-lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 15, 22, .95); }
.app-lb[open] { display: grid; place-items: center; }
.app-lb::backdrop { background: rgba(20, 15, 22, .95); }
.app-lb img { max-width: 92vw; max-height: 84vh; object-fit: contain; }
.app-lb-close { position: absolute; top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.app-lb-count { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #d9d6dd; margin: 0; max-width: none; }

@media (max-width: 900px) {
  .app-book, .app-loc { grid-template-columns: 1fr; }
  .app-cal { position: static; }
}
@media (max-width: 760px) {
  .app-tiles, .app-compare, .app-rules { grid-template-columns: 1fr; }
  .app-tile { aspect-ratio: 4 / 3; }
  .app-host { grid-template-columns: 1fr; }
  .app-lb .slide-btn { display: block; top: auto; bottom: 1rem; transform: none; }
}
@media (max-width: 480px) {
  .app-cal-months { grid-template-columns: 1fr; }
  .app-cal-months .app-month + .app-month { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .app-tile img { transition: none; }
}

/* Schmale Handys: Menü-Knopf nur als Symbol, damit Marke, Sprache und Menü in eine Zeile passen */
@media (max-width: 480px) {
  .site-header .nav-toggle { padding: .4rem .7rem; }
  .site-header .nav-toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-header .brand { font-size: .98rem; }
  .app-lang a { min-width: 2.25rem; }
  .site-header .wrap { gap: .5rem .3rem; }
}

/* Mit Sprachwahl ist das Menü breiter: Menü-Knopf schon bis 1100px (gleiche Regeln wie in style.css bis 960px) */
@media (min-width: 961px) and (max-width: 1100px) {
  .site-header .wrap { flex-wrap: wrap; gap: .5rem 1rem; padding-block: .55rem; }
  .js .site-header .nav-toggle { display: inline-flex; }
  .js .site-header .nav { display: none; }
  .site-header .nav { order: 4; flex-basis: 100%; flex-direction: column; gap: 0; padding: .25rem 0 .5rem; }
  .js .site-header.nav-open .nav { display: flex; }
  .site-header .nav a { padding: .8rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .site-header .nav a:last-child { border-bottom: 0; }
  .app-lang { margin-left: auto; border-left: 0; padding-left: 0; }
}
/* Einfache Kopfzeile (Gästemappe): Marke, Zurück-Link, Sprache in einer Zeile */
.site-header.simple .wrap { flex-wrap: wrap; }
.site-header.simple .simple-link { order: 1; margin-left: auto; display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.site-header.simple .app-lang { order: 2; margin-left: 0; }
@media (max-width: 480px) {
  .site-header.simple .brand { flex-basis: 100%; }
  .site-header.simple .simple-link { margin-left: 0; }
  .site-header.simple .app-lang { margin-left: auto; }
}