/* apartment.php — Redesign "Midnight Glass", Variante B Split-Screen (09/2026)
   Baut auf apartments-glass.css auf (Farben, Schrift, Kopfleiste, Footer). */

.apt-noscroll { overflow: hidden; }
.apt-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; }
.apt-muted { color: var(--mut); }

/* ---------- Vorheriges / Nächstes ---------- */
.apt-pn { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 12px 0 18px; padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); font-size: 13.5px; }
.apt-pn a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 12px; border: 1px solid var(--line); color: #fff; white-space: nowrap; transition: background .2s; }
.apt-pn a:hover { background: rgba(255, 255, 255, .06); }
.apt-pn a.mid { border-color: transparent; color: var(--mut); }
.apt-pn a.mid:hover { color: #fff; }
.apt-pn-off { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 12px; border: 1px solid var(--line); color: #fff; white-space: nowrap; opacity: .33; cursor: default; }

/* ---------- Kopfbereich ---------- */
.apt-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: stretch; }
.apt-hero > * { min-width: 0; }

.apt-stage { position: relative; height: 470px; border-radius: 26px; overflow: hidden; background: #0d0c18; cursor: zoom-in; }
.apt-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .35s; pointer-events: none; }
.apt-slide.is-on { opacity: 1; pointer-events: auto; }
video.apt-slide { object-fit: contain; background: #000; cursor: default; }
.apt-stage-empty { cursor: default; }
.apt-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 10, 20, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .22); font-size: 18px; color: #fff; transition: background .2s; }
.apt-nav:hover { background: rgba(10, 10, 20, .85); }
.apt-nav.l { left: 14px; }
.apt-nav.r { right: 14px; }
.apt-count { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 6px 12px; border-radius: 99px; background: rgba(10, 10, 20, .65); font-size: 12px; border: 1px solid rgba(255, 255, 255, .18); color: #fff; }
.apt-count b { font-weight: 600; }

.apt-thumbs { display: flex; gap: 8px; margin-top: 10px; padding: 3px; overflow-x: auto; scrollbar-width: none; }
.apt-thumbs::-webkit-scrollbar { display: none; }
.apt-thumbs button { flex: none; width: 84px; height: 64px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #15142a; opacity: .5; transition: opacity .2s; }
.apt-thumbs button:hover { opacity: .85; }
.apt-thumbs button.is-on { opacity: 1; outline: 2px solid #ff5a92; outline-offset: 2px; }
.apt-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apt-vid { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font-size: 18px; }

.apt-intro { padding: 30px; display: flex; flex-direction: column; }
.apt-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.apt-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #ffb3cd; background: rgba(255, 61, 127, .12); padding: 5px 11px; border-radius: 99px; }
.apt-tag svg { width: 12px; height: 12px; }
.apt-tag-v { color: #cdbdff; background: rgba(139, 92, 246, .16); }
.apt-tag-n { color: #d6d3e6; background: rgba(255, 255, 255, .07); }
.apt-intro h1 { font-size: 32px; line-height: 1.14; font-weight: 700; letter-spacing: -.02em; margin: 16px 0 12px; color: #fff; }
.apt-intro h1 span { background: linear-gradient(90deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.apt-lead { color: #d8d5e8; font-size: 16px; line-height: 1.6; font-weight: 400; margin: 0; }

.apt-adr { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin: 22px 0 16px; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.apt-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(255, 61, 127, .22), rgba(139, 92, 246, .22)); color: #f3c6ff; }
.apt-adr-txt p { margin: 0; color: var(--mut); font-size: 13px; line-height: 1.5; }
.apt-adr-txt p.apt-adr-1 { color: #fff; font-weight: 600; font-size: 14.5px; }
.apt-maps { font-size: 13px; padding: 9px 13px; border-radius: 11px; border: 1px solid var(--line); white-space: nowrap; transition: background .2s; }
.apt-maps:hover { background: rgba(255, 255, 255, .07); }
.apt-web { margin: -4px 0 14px; font-size: 13.5px; }
.apt-web a { color: #ffb3cd; }

.apt-contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.apt-contact-note { flex: 0 0 100%; margin: -2px 2px 4px; color: var(--mut); font-size: 13px; }
.apt-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px; border-radius: 14px; font: inherit; font-weight: 600; font-size: 14.5px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; text-align: center; transition: background .2s, transform .2s; }
.apt-btn:hover { background: rgba(255, 255, 255, .11); }
.apt-contact .apt-btn { flex: 1 1 auto; padding-inline: 16px; font-size: 14px; }
.apt-contact .apt-btn span { white-space: nowrap; }
.apt-btn-wa { background: linear-gradient(135deg, #25d366, #128c7e); border-color: transparent; box-shadow: 0 10px 34px -12px rgba(37, 211, 102, .6); }
.apt-btn-wa:hover { background: linear-gradient(135deg, #2ee273, #149a8a); transform: translateY(-1px); }
.apt-btn-grad { background: var(--grad); border-color: transparent; }

/* ---------- Beschreibung ---------- */
.apt-desc { margin-top: 26px; padding: 30px 34px; display: grid; grid-template-columns: 220px 1fr; gap: 30px; }
.apt-desc h2, .apt-info h2 { font-size: 22px; font-weight: 600; color: #fff; }
.apt-desc .apt-muted { font-size: 13px; margin-top: 6px; }
.apt-desc-text { color: #c9c7d8; line-height: 1.8; font-size: 15px; overflow-wrap: anywhere; }

/* ---------- Informationen ---------- */
.apt-info { margin-top: 26px; padding: 30px 34px; }
.apt-tabs-wrap { position: relative; }
.apt-tabs-more { position: absolute; top: calc(50% - 1px); right: 0; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #14132a; color: #fff; font-size: 20px; line-height: 1; display: none; align-items: center; justify-content: center; padding: 0 0 2px; z-index: 3; }
.apt-tabs-wrap.has-more .apt-tabs-more { display: flex; animation: aptNudge 1.4s ease-in-out 3; }
.apt-tabs-wrap.has-more::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 56px; background: linear-gradient(90deg, rgba(17,16,28,0), #11101c 78%); pointer-events: none; z-index: 2; border-radius: 0 12px 12px 0; }
@keyframes aptNudge { 0%, 100% { transform: translateY(-50%) translateX(0); } 50% { transform: translateY(-50%) translateX(3px); } }
.apt-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 18px; }
.apt-tabs a { font-size: 13px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--mut); white-space: nowrap; transition: color .2s, background .2s; }
.apt-tabs a:hover { color: #fff; }
.apt-tabs a.is-on { background: #fff; color: #0b0b14; font-weight: 600; border-color: #fff; }
.apt-cols { columns: 2; column-gap: 34px; }
.apt-sec { break-inside: avoid; padding: 18px 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.apt-sec h3 { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: #fff; margin: 0 0 12px; }
.apt-sec h3 i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.apt-kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 18px; font-size: 14px; margin: 0; }
.apt-kv dt { color: var(--mut); font-weight: 400; }
.apt-kv dd { margin: 0; color: #ecebf5; overflow-wrap: anywhere; }

/* ---------- Vollbild ---------- */
.apt-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4, 4, 10, .94); display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; }
.apt-lightbox[hidden] { display: none; }
.apt-lb-stage { height: 100vh; display: grid; place-items: center; padding: 30px 0; }
.apt-lb-stage img, .apt-lb-stage video { max-width: 100%; max-height: calc(100vh - 60px); object-fit: contain; border-radius: 12px; }
.apt-lb-nav, .apt-lb-close { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; font-size: 20px; justify-self: center; }
.apt-lb-close { position: absolute; top: 18px; right: 18px; z-index: 2; font-size: 26px; }

/* ---------- Dialoge ---------- */
.apt-modal { position: fixed; inset: 0; z-index: 210; background: rgba(4, 4, 10, .75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.apt-modal[hidden] { display: none; }
.apt-modal-box { width: 100%; max-width: 560px; background: #12111f; border: 1px solid rgba(255, 255, 255, .14); border-radius: 24px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .9); color: var(--txt); }
.apt-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.apt-modal-head h5 { margin: 0; font-size: 19px; font-weight: 600; color: #fff; }
.apt-modal-x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: #fff; font-size: 22px; line-height: 1; }
.apt-modal-body { padding: 20px 24px; display: grid; gap: 12px; }
.apt-modal-body label { display: grid; gap: 6px; font-size: 13px; color: var(--mut); }
.apt-modal-body input[type=text], .apt-modal-body input[type=tel], .apt-modal-body input[type=email], .apt-modal-body input[type=date], .apt-modal-body textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 15px; outline: 0; color-scheme: dark;
}
.apt-modal-body input:focus, .apt-modal-body textarea:focus { border-color: var(--a2); }
.apt-modal-body textarea { resize: vertical; min-height: 80px; }
.apt-form-h { margin: 6px 0 0; color: #fff; font-weight: 600; font-size: 14.5px; }
.apt-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.apt-file input[type=file] { font: inherit; font-size: 13px; color: #d6d3e6; padding: 10px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .03); }
.apt-file input[type=file]::file-selector-button { margin-right: 12px; padding: 7px 12px; border-radius: 9px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font: inherit; cursor: pointer; }
.apt-file-cur { display: flex; gap: 10px; align-items: center; font-size: 12.5px; }
.apt-file-cur a { color: #ffb3cd; }
.apt-file-cur .apt-danger { color: #ff6b6b; }
.apt-modal-foot { padding: 16px 24px 22px; display: flex; justify-content: flex-end; }
.apt-modal-foot .apt-btn { min-width: 160px; }
.apt-choice { gap: 10px; }

/* ---------- Tablet ---------- */
@media (max-width: 1060px) {
  .apt-hero { grid-template-columns: 1fr; gap: 16px; }
  .apt-stage { height: 420px; }
}

/* ---------- Handy ---------- */
@media (max-width: 640px) {
  .apt-pn { margin: 6px 0 14px; }
  .apt-pn a span { display: none; }
  .apt-pn a.mid span { display: inline; }
  .apt-stage { height: 290px; border-radius: 20px; }
  .apt-nav { width: 40px; height: 40px; }
  .apt-thumbs button { width: 64px; height: 50px; border-radius: 10px; }
  .apt-intro { padding: 20px; }
  .apt-intro h1 { font-size: 24px; }
  .apt-lead { font-size: 15px; }
  .apt-adr { grid-template-columns: auto 1fr; }
  .apt-maps { grid-column: 1 / -1; text-align: center; }
  .apt-contact .apt-btn { flex-basis: 100%; }
  .apt-desc { grid-template-columns: 1fr; gap: 10px; padding: 22px 20px; margin-top: 16px; }
  .apt-desc-text { font-size: 14.5px; line-height: 1.75; }
  .apt-info { padding: 22px 20px; margin-top: 16px; }
  .apt-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .apt-tabs::-webkit-scrollbar { display: none; }
  .apt-tabs-wrap.has-more .apt-tabs { padding-right: 34px; }
  .apt-cols { columns: 1; }
  .apt-kv { grid-template-columns: 1fr; gap: 2px; }
  .apt-kv dd { margin-bottom: 10px; }
  .apt-lightbox { grid-template-columns: 1fr; }
  .apt-lb-nav { position: absolute; bottom: 24px; }
  .apt-lb-nav.l { left: calc(50% - 64px); }
  .apt-lb-nav.r { right: calc(50% - 64px); }
  .apt-lb-stage { padding: 70px 10px 100px; }
  .apt-lb-stage img, .apt-lb-stage video { max-height: calc(100vh - 170px); }
  .apt-modal { padding: 12px 10px; }
  .apt-grid2 { grid-template-columns: 1fr; }
  .apt-modal-body input[type=text], .apt-modal-body input[type=tel], .apt-modal-body input[type=email], .apt-modal-body input[type=date], .apt-modal-body textarea { font-size: 16px; }
  .apt-modal-foot .apt-btn { width: 100%; }
}
