*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--ink);
  background:var(--bg);
}

/* NOTE: Penthouse-Walls + Window Light (ohne Bild) */
.penthouse-bg{
  /* NOTE: Optional echtes Foto:
     assets/bg/penthouse.jpg ablegen und aktivieren
  background-image: url("../assets/bg/penthouse.jpg");
  background-size: cover;
  background-position: center;
  */

  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.18) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 44%, rgba(255,255,255,.14) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 62%, rgba(0,0,0,.05) 0 2px, transparent 3px),
    radial-gradient(1100px 640px at 78% 14%, rgba(255,255,255,.40), transparent 60%),
    radial-gradient(900px 520px at 12% 20%, rgba(255,255,255,.22), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 66%, rgba(15,15,16,.10) 67%, rgba(15,15,16,.18) 100%);
  background-size: 240px 240px, 240px 240px, 260px 260px, auto, auto, auto;
}

/* Layout */
.layout{
  display:grid;
  grid-template-columns: 360px 1fr;
  height:100vh;
}

/* Sidebar (glass/paper) */
.sidebar{
  padding:28px 22px 18px 28px;
  border-right:1px solid var(--hair);
  background: rgba(244,241,236,.38);
  backdrop-filter: blur(10px);
  display:flex;
  flex-direction:column;
}

.side-brand{display:flex; gap:12px; align-items:flex-end; margin-bottom:14px;}
.side-logo{width:44px; height:auto; opacity:.95}
.side-line1{font-weight:900; letter-spacing:-.02em; font-size:22px}
.side-line2{margin-top:4px; font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:var(--muted)}

.side-top{margin-bottom:18px}
.side-title{font-weight:900; font-size:18px}
.side-sub{margin-top:8px; font-size:12px; color:var(--muted); line-height:1.5}

.rubrics{display:flex; flex-direction:column; gap:12px; margin-top:10px;}
.rubrics a{
  color:var(--ink);
  text-decoration:none;
  font-size:16px;
  padding:6px 0;
  width:fit-content;
  border-bottom:1px solid transparent;
  transition: transform .14s ease, opacity .14s ease, border-color .14s ease;
}
.rubrics a:hover{transform: translateY(-1px); border-bottom-color: rgba(15,15,16,.55);}
.rubrics a.active{border-bottom-color: var(--accent);}

.side-meta{
  margin-top:auto;
  padding-top:16px;
  border-top:1px solid var(--hair);
  display:flex;
  flex-direction:column;
  gap:10px;
  color:var(--muted);
  font-size:12px;
}
.mono{font-family:var(--mono); font-variant-numeric:tabular-nums}
.side-link{
  color:var(--ink);
  text-decoration:none;
  border-bottom:1px solid var(--ink);
  width:fit-content;
  padding-bottom:2px;
}
.side-link:hover{opacity:.8}
.tiny{opacity:.9}

/* Main */
.main{height:100vh; overflow-y:auto; padding:0 26px;}

/* HERO */
.hero{
  min-height: 62vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 56px 0 12px 0;
}
.hero-inner{
  width:min(980px, 92%);
  text-align:center;
  border:1px solid rgba(15,15,16,.12);
  border-radius: var(--radius2);
  background: rgba(244,241,236,.52);
  box-shadow: var(--shadow);
  padding: 54px 26px 38px 26px;
  position:relative;
}
.hero-logo-img{width: 140px; height:auto; margin-bottom: 14px; opacity:.96}
.hero-aurea{
  font-weight:900;
  letter-spacing:-0.02em;
  font-size: clamp(52px, 6vw, 72px); /* NOTE: Logo-Größe responsive */
  color:var(--ink);
}
.hero-essentials{
  margin-top:10px;
  font-size:12px;
  letter-spacing:.26em;
  text-transform:uppercase;
  color:var(--muted);
}
.hero-tag{margin-top:14px; font-size:13px; color: rgba(15,15,16,.52);}
.hero-rule{margin: 26px auto 0 auto; height:1px; width:min(760px, 86%); background: rgba(15,15,16,.16);}
.hero-note{margin: 18px auto 0 auto; font-size:12px; color: rgba(15,15,16,.50); line-height:1.6; width:min(720px, 86%);}
.hero-scroll{position:absolute; right:22px; bottom:18px; font-size:12px; color: rgba(15,15,16,.46);}

/* NOTE: Abstand wird in JS via config gesetzt */
.breathing-room{height: 16vh;}

/* Feed header */
.feed-wrap{width:min(1100px, 100%); margin:0 auto 48px auto; padding-bottom: 28px;}
.feed-head{display:flex; justify-content:space-between; align-items:flex-end; gap:18px; padding: 10px 2px 14px 2px;}
.feed-kicker{font-size:12px; letter-spacing:.18em; text-transform:uppercase; color: var(--muted);}
.feed-title{margin-top:8px; font-size:34px; font-weight:900; letter-spacing:-0.02em;}
.feed-sub{margin-top:10px; font-size:12px; color: rgba(15,15,16,.55); line-height:1.6; max-width:720px;}
.feed-actions{display:flex; gap:16px; align-items:flex-end}

/* Links (keine Buttons) */
.link{
  color:var(--ink);
  text-decoration:none;
  border-bottom:1px solid var(--ink);
  padding-bottom:2px;
  transition: opacity .14s ease, transform .14s ease;
}
.link:hover{opacity:.78; transform: translateY(-1px);}

/* TikTok / Gallery Feed */
.feed{
  height: 86vh; /* NOTE: Feed-Höhe */
  border:1px solid rgba(15,15,16,.12);
  border-radius: var(--radius2);
  background: rgba(244,241,236,.62);
  box-shadow: var(--shadow);
  overflow-y:auto;
  scroll-snap-type:y mandatory;
  -webkit-overflow-scrolling: touch;
  outline:none;
}

/* Cards */
.card{
  height: 86vh; /* NOTE: muss zur .feed Höhe passen */
  scroll-snap-align:start;
  display:grid;
  grid-template-rows: 1fr auto;
  background: var(--paper);
}
.card-media{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
  background:
    radial-gradient(980px 520px at 50% 20%, rgba(0,0,0,.06), transparent 66%),
    linear-gradient(135deg, rgba(184,139,42,.08), rgba(0,0,0,.03));
}
.badges{position:absolute; left:26px; top:22px; display:flex; gap:10px; font-size:12px; color:var(--muted);}
.badge{
  padding:6px 10px;
  border:1px solid rgba(15,15,16,.12);
  border-radius:999px;
  background: rgba(244,241,236,.82);
}
.visual{
  width:min(860px, 92%);
  aspect-ratio: 4/3;
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(15,15,16,.12);
  background: var(--paper2);
}
.visual img{width:100%;height:100%;object-fit:cover;display:block}

.card-body{
  padding:18px 22px 22px 22px;
  border-top:1px solid rgba(15,15,16,.12);
  display:grid;
  grid-template-columns: 1fr auto;
  gap:18px;
  background: rgba(244,241,236,.80);
}
.title{margin:0 0 6px 0; font-size:18px; font-weight:900;}
.subtitle{margin:0; color:var(--muted); font-size:13px; line-height:1.55;}
.meta{margin-top:12px; display:flex; gap:10px; flex-wrap:wrap; font-size:12px; color:var(--muted);}
.meta span{padding:6px 10px; border:1px solid rgba(15,15,16,.12); border-radius:999px; background: rgba(255,255,255,.55);}

.actions{display:flex; flex-direction:column; align-items:flex-end; justify-content:center; gap:10px; font-size:13px;}
.like{cursor:pointer; user-select:none; font-weight:800;}
.like.liked{color:var(--accent);}

/* Footer */
.footer{margin-top:18px; color: rgba(15,15,16,.55); font-size:12px;}
.footer-line{height:1px; background: rgba(15,15,16,.16); margin-bottom:10px;}
.footer-text{letter-spacing:.02em}
.footer-link{color:inherit; text-decoration:none; border-bottom:1px solid rgba(15,15,16,.40);}
.footer-link:hover{opacity:.8}

/* Modal */
.modal{position:fixed; inset:0; display:none; z-index:90;}
.modal.open{display:block}
.modal-backdrop{position:absolute; inset:0; background: rgba(15,15,16,.45);}
.modal-sheet{
  position:absolute; left:50%; top:50%; transform: translate(-50%,-50%);
  width:min(980px, 92vw);
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(244,241,236,.92);
  box-shadow: 0 40px 120px rgba(15,15,16,.35);
  overflow:hidden;
}
.modal-head{display:flex; justify-content:space-between; align-items:center; padding:14px 16px; border-bottom:1px solid rgba(15,15,16,.12);}
.modal-brand{font-weight:900; letter-spacing:.14em; font-size:12px; text-transform:uppercase;}
.modal-body{display:grid; grid-template-columns: 1.2fr .8fr; gap:14px; padding:16px;}
.modal-media{border:1px solid rgba(15,15,16,.12); border-radius: 16px; overflow:hidden; background: var(--paper2);}
.modal-media img{width:100%;height:100%;object-fit:cover;display:block}
.modal-copy .kicker{font-size:12px; color:var(--muted); letter-spacing:.12em; text-transform:uppercase;}
.modal-copy h3{margin:10px 0 8px 0; font-size:20px; font-weight:900;}
.modal-copy p{margin:0; color:var(--muted); line-height:1.6; font-size:13px;}
.modal-cta{margin-top:14px; display:flex; gap:14px; flex-wrap:wrap;}
.disclosure{margin-top:14px; font-size:12px; color: rgba(15,15,16,.55); line-height:1.6;}

/* Saved panel */
.saved{position:fixed; inset:0; display:none; z-index:95;}
.saved.open{display:block}
.saved-backdrop{position:absolute; inset:0; background: rgba(15,15,16,.35);}
.saved-sheet{
  position:absolute; right:0; top:0; bottom:0;
  width:min(520px, 92vw);
  background: rgba(244,241,236,.94);
  border-left:1px solid rgba(255,255,255,.22);
  box-shadow: -30px 0 120px rgba(15,15,16,.28);
  display:flex; flex-direction:column;
}
.saved-head{padding:14px 16px; border-bottom:1px solid rgba(15,15,16,.12); display:flex; justify-content:space-between; align-items:center;}
.saved-title{font-weight:900; font-size:16px;}
.saved-body{padding:14px 16px; overflow:auto; display:flex; flex-direction:column; gap:12px;}
.saved-item{border:1px solid rgba(15,15,16,.12); border-radius: 16px; background: rgba(255,255,255,.55); overflow:hidden;}
.saved-item .img{height:140px; background: var(--paper2);}
.saved-item .img img{width:100%;height:100%;object-fit:cover;display:block}
.saved-item .body{padding:12px}
.saved-item .t{margin:0 0 6px 0; font-weight:900}
.saved-item .s{margin:0; font-size:12px; color:var(--muted); line-height:1.55}
.saved-item .foot{padding:10px 12px 12px 12px; border-top:1px solid rgba(15,15,16,.10); display:flex; justify-content:space-between; align-items:center; font-size:12px; color:var(--muted);}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto !important; transition:none !important;}
}

/* Mobile */
@media (max-width: 980px){
  .layout{grid-template-columns:1fr}
  .sidebar{border-right:none; border-bottom:1px solid var(--hair)}
  .main{padding:0 16px}
  .feed{height:78vh}
  .card{height:78vh}
  .modal-body{grid-template-columns:1fr}
}
