/* CSI - Clever & Smart Immo GmbH · Zeitraffer-Galerie */

@font-face { font-family: "Capoon"; src: url(schrift/capoon-thin.woff2) format("woff2"); font-weight: 250; font-display: swap; }
@font-face { font-family: "Capoon"; src: url(schrift/capoon-light.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Capoon"; src: url(schrift/capoon-medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Capoon"; src: url(schrift/capoon-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Jost"; src: url(schrift/jost-300.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Jost"; src: url(schrift/jost-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url(schrift/jost-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --akzent: #e9e9ea;        /* Silber: Knoepfe, Markierungen */
  --akzent-text: #141315;
  --dunkel: #232224;        /* Kopfleiste, Flaechen */
  --grund: #161517;         /* Seitenhintergrund */
  --flaeche: #232224;
  --flaeche-2: #2c2b2e;
  --text: #f2f2f3;
  --leise: #a2a1a6;
  --linie: #3b3a3e;
  --radius: 2px;
  --titel: "Capoon", "Eurostile", "Arial", sans-serif;
  --schrift: "Jost", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: var(--schrift); font-weight: 300; font-size: 16px;
  color: var(--text); background: var(--grund);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); }
.seite { max-width: 1200px; margin: 0 auto; padding: 28px 16px 32px; }
body.einbetten { background: transparent; }
body.einbetten .seite { padding: 0; max-width: none; }

/* Kopfleiste wie csi.solutions */
.leiste-oben { background: var(--dunkel); border-bottom: 1px solid #000; }
.leiste-innen {
  max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; min-height: 96px;
}
.leiste-oben .logo { height: 76px; width: 76px; display: block; }
.leiste-oben .firma { font-family: var(--titel); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.abmelden {
  font-family: var(--titel); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem;
  color: var(--text); text-decoration: none; padding: 6px 0;
}
.abmelden:hover { text-decoration: underline; text-underline-offset: 6px; }

/* Titel */
.kopf {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 20px;
}
body.einbetten .kopf { margin-bottom: 10px; }
h1 {
  font-family: var(--titel); font-weight: 500; text-transform: lowercase;
  font-size: clamp(1.3rem, 3vw, 2.1rem); letter-spacing: .03em; margin: 0; line-height: 1.2; text-wrap: balance;
}
.stand { margin: 4px 0 0; color: var(--leise); font-family: var(--titel); font-weight: 300; text-transform: lowercase; font-size: 1rem; letter-spacing: .05em; }

/* Reiter als unterstrichene Textlinks */
.reiter { display: flex; gap: 22px; }
.reiter button {
  border: 0; background: none; padding: 4px 0; font-family: var(--titel); font-weight: 500; text-transform: lowercase;
  font-size: 1.1rem; letter-spacing: .06em; color: var(--leise); cursor: pointer;
}
.reiter button.aktiv { color: var(--text); text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.reiter button:hover { color: var(--text); }

/* Buehne */
.buehne {
  position: relative; background: #000; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 16 / 9; width: 100%;
}
.buehne img { width: 100%; height: 100%; object-fit: contain; display: block; }
.zeitmarke, .original {
  position: absolute; bottom: 12px; padding: 6px 12px; background: rgba(22,21,23,.72);
  color: #fff; font-size: .88rem; letter-spacing: .03em; backdrop-filter: blur(4px);
}
.zeitmarke { left: 12px; font-variant-numeric: tabular-nums; }
.original { right: 12px; text-decoration: none; font-family: var(--titel); font-weight: 500; text-transform: lowercase; font-size: .85rem; letter-spacing: .06em; }
.original:hover { text-decoration: underline; text-underline-offset: 4px; }
.leer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--leise); background: #000; }

/* Steuerung */
.steuerung {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 16px 0 8px;
}
.tagwahl, .abspielen { display: flex; align-items: center; gap: 8px; }
select {
  font: inherit; font-weight: 400; font-size: .95rem; padding: 8px 12px; border: 1px solid var(--linie);
  border-radius: var(--radius); background: var(--flaeche); color: var(--text);
}
.knopf {
  font: inherit; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--linie);
  background: transparent; color: var(--text); cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.knopf:hover:not(:disabled) { border-color: var(--text); }
.knopf:disabled { opacity: .3; cursor: default; }
.knopf.haupt { width: 46px; height: 46px; background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); font-size: .95rem; }
.knopf.haupt:hover { background: #fff; }
.schalter { font-size: .95rem; color: var(--leise); display: flex; align-items: center; gap: 7px; cursor: pointer; }
.schalter input { accent-color: var(--akzent); width: 16px; height: 16px; }

input[type=range] { width: 100%; accent-color: var(--akzent); margin: 8px 0 12px; }

/* Vorschauleiste */
.leiste {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: var(--linie) transparent;
}
.mini {
  flex: 0 0 auto; width: 100px; border: 1px solid transparent; padding: 0; border-radius: var(--radius); font: inherit;
  background: var(--flaeche); cursor: pointer; overflow: hidden; text-align: center; color: var(--leise);
}
.mini img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #000; opacity: .75; }
.mini span { display: block; font-size: .75rem; padding: 3px 0; font-variant-numeric: tabular-nums; }
.mini:hover img { opacity: 1; }
.mini.aktiv { border-color: var(--akzent); }
.mini.aktiv img { opacity: 1; }
.mini.aktiv span { color: var(--text); font-weight: 500; }

/* Videos */
.video-haupt video { width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; border-radius: var(--radius); }
.video-titel { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 16px; font-weight: 400; }
.video-titel a { text-decoration: underline; text-underline-offset: 5px; font-family: var(--titel); font-weight: 500; text-transform: lowercase; font-size: .9rem; letter-spacing: .05em; }
.video-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.video-eintrag {
  font: inherit; text-align: left; padding: 12px 14px; border: 1px solid var(--linie); border-radius: var(--radius);
  background: var(--flaeche); color: var(--text); cursor: pointer; display: flex; justify-content: space-between; gap: 8px;
}
.video-eintrag:hover { border-color: var(--leise); }
.video-eintrag.aktiv { border-color: var(--akzent); }
.v-info { color: var(--leise); font-size: .85rem; white-space: nowrap; }
.hinweis { color: var(--leise); }

.fuss {
  margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--linie); font-size: .82rem; color: var(--leise);
  text-align: center; letter-spacing: .04em;
}

/* Anmeldung */
body.anmeldung {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 16px; background: radial-gradient(ellipse at 70% 40%, #2a292c 0%, var(--grund) 65%);
}
.anmelde-karte { width: 100%; max-width: 400px; text-align: center; padding: 8px 4px; }
.anmelde-logo { width: 132px; height: 132px; margin: 0 auto 26px; display: block; }
.anmelde-karte h1 { font-size: 1.45rem; margin-bottom: 8px; }
.anmelde-text { color: var(--leise); margin: 0 0 26px; font-family: var(--titel); font-weight: 300; text-transform: lowercase; letter-spacing: .05em; }
.anmelde-karte input {
  width: 100%; font: inherit; font-weight: 400; padding: 13px 16px; margin-bottom: 14px;
  background: transparent; color: var(--text); border: 1px solid var(--linie); border-radius: var(--radius);
}
.anmelde-karte input::placeholder { color: var(--leise); }
.anmelde-karte input:focus { outline: none; border-color: var(--text); }
.anmelde-karte button {
  width: 100%; padding: 14px; border: 1px solid var(--akzent); border-radius: var(--radius);
  background: var(--akzent); color: var(--akzent-text); cursor: pointer;
  font-family: var(--titel); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; font-size: .9rem;
}
.anmelde-karte button:hover { background: #fff; }
.hinweis-fehler { color: #ff8a80; font-size: .92rem; margin: 0 0 14px; }
body.anmeldung .fuss { border-top: 0; margin-top: 40px; }

@media (max-width: 600px) {
  .leiste-innen { min-height: 72px; }
  .leiste-oben .logo { height: 56px; width: 56px; }
  .steuerung { flex-direction: column; align-items: stretch; }
  .tagwahl select { flex: 1; min-width: 0; }
  .abspielen { justify-content: space-between; }
}
