/* CINARIO Film & Media – Übergangsseite
   Schriften lokal (Poppins, SIL OFL 1.1), keine externen Dienste, keine Cookies. */

@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/poppins-light.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-regular.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-medium.woff") format("woff"); }

:root {
  --bg: #141210;
  --cream: #eee5da;
  --cream-2: #d6cbbf;
  --muted: #a99d91;
  --line: rgba(238, 229, 218, 0.16);
  --line-strong: rgba(238, 229, 218, 0.32);
  --panel: rgba(20, 18, 16, 0.78);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--cream);
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; border-radius: 4px; }

/* ---------- Hintergrund ---------- */
.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.backdrop__image {
  position: absolute; inset: 0;
  background-color: var(--bg);
  background-image: url("../img/bg-landscape.jpg");
  background-image: image-set(url("../img/bg-landscape.webp") type("image/webp"), url("../img/bg-landscape.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  animation: bg-in 2.2s var(--ease) both;
}
@media (max-aspect-ratio: 4/5) {
  .backdrop__image {
    background-image: url("../img/bg-portrait.jpg");
    background-image: image-set(url("../img/bg-portrait.webp") type("image/webp"), url("../img/bg-portrait.jpg") type("image/jpeg"));
  }
}
/* sanft wanderndes Licht */
.backdrop__light {
  position: absolute; inset: -30%;
  background: repeating-linear-gradient(126deg,
    rgba(255, 236, 214, 0) 0%, rgba(255, 236, 214, 0) 7%,
    rgba(255, 236, 214, 0.055) 10%, rgba(255, 236, 214, 0) 13%,
    rgba(255, 236, 214, 0) 19%);
  mix-blend-mode: screen;
  animation: light-drift 26s ease-in-out infinite alternate;
  will-change: transform;
}
.backdrop__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 58%, rgba(12, 11, 10, 0.42), rgba(12, 11, 10, 0) 70%),
    linear-gradient(to bottom, rgba(12, 11, 10, 0) 55%, rgba(12, 11, 10, 0.55) 100%);
}
.backdrop--legal .backdrop__shade { background: rgba(12, 11, 10, 0.55); }

/* ---------- Startseite ---------- */
.page {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: max(24px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}
.hero {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  gap: clamp(22px, 4.2svh, 44px);
  padding: 4svh 0 2svh;
}
.logo {
  display: block;
  width: min(33rem, 78vw, 50svh);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.55)) drop-shadow(0 14px 28px rgba(0, 0, 0, 0.55));
}
.logo-signet { animation: rise 1.6s var(--ease) 0.15s both; transform-origin: 50% 40%; }
.logo-word   { animation: rise 1.4s var(--ease) 0.55s both; }
.logo-sub    { animation: fade 1.4s var(--ease) 0.9s both; }

.services {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  font-weight: 400;
  font-size: clamp(0.72rem, 0.62rem + 0.4vw, 0.95rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-2);
  animation: rise-sm 1.2s var(--ease) 1.2s both;
}
.services li { padding: 0 clamp(14px, 2vw, 28px); line-height: 1; white-space: nowrap; }
.services li + li { border-left: 1px solid var(--line-strong); }
/* letter-spacing-Ausgleich, damit der Text optisch mittig sitzt */
.services li span { margin-right: -0.3em; }

.intro {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(0.92rem, 0.86rem + 0.25vw, 1.05rem);
  color: var(--cream-2);
  animation: rise-sm 1.2s var(--ease) 1.4s both;
}
.intro strong { font-weight: 400; color: var(--cream); }

.contact {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin: 0; padding: 0; list-style: none;
  animation: rise-sm 1.2s var(--ease) 1.6s both;
}
.contact a {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(20, 18, 16, 0.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--cream);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.contact a:hover { background: rgba(238, 229, 218, 0.1); border-color: rgba(238, 229, 218, 0.55); transform: translateY(-1px); }
.contact svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.region {
  margin: 0;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  animation: fade 1.2s var(--ease) 1.8s both;
}

.site-footer {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px;
  padding-top: 12px;
  font-size: 0.8rem; color: var(--muted);
  animation: fade 1.2s var(--ease) 2s both;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Rechtstexte ---------- */
.legal { position: relative; z-index: 1; padding: max(20px, env(safe-area-inset-top)) 16px 40px; }
.legal__head { max-width: 760px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal__home { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; letter-spacing: 0.28em; font-size: 0.9rem; }
.legal__home .mark { width: 30px; height: auto; }
.legal__back { font-size: 0.85rem; color: var(--cream-2); text-decoration: none; }
.legal__back:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.legal__panel {
  max-width: 760px; margin: 0 auto;
  padding: clamp(24px, 5vw, 56px);
  background: var(--panel);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 18px;
  animation: rise-sm 0.9s var(--ease) both;
}
.legal h1 { margin: 0 0 6px; font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); letter-spacing: 0.02em; line-height: 1.2; }
.legal h2 { margin: 2.2em 0 0.5em; font-weight: 500; font-size: 1.05rem; letter-spacing: 0.02em; color: var(--cream); }
.legal h3 { margin: 1.6em 0 0.4em; font-weight: 500; font-size: 0.95rem; }
.legal p, .legal li { color: var(--cream-2); font-size: 0.95rem; }
.legal p { margin: 0 0 0.9em; }
.legal ul { margin: 0 0 1em; padding-left: 1.2em; }
.legal li { margin-bottom: 0.3em; }
.legal a { color: var(--cream); text-underline-offset: 3px; text-decoration-color: var(--line-strong); overflow-wrap: anywhere; }
.legal a:hover { text-decoration-color: var(--cream); }
.legal .lead { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.6em; }
.legal address { font-style: normal; color: var(--cream-2); font-size: 0.95rem; margin-bottom: 0.9em; }
.legal .note-box { border-left: 2px solid var(--line-strong); padding: 4px 0 4px 16px; margin: 1.2em 0; }
.legal .site-footer { max-width: 760px; margin: 22px auto 0; }

/* ---------- Animationen ---------- */
@keyframes rise   { from { opacity: 0; transform: translateY(14px) scale(0.985); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes rise-sm{ from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes bg-in  { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }
@keyframes light-drift { from { transform: translate3d(-4%, -2%, 0); } to { transform: translate3d(4%, 2%, 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
  .services {
    display: grid; grid-template-columns: 1fr 1fr;
    row-gap: 0; width: min(100%, 360px);
  }
  .services li { padding: 14px 6px; }
  .services li + li { border-left: 0; }
  .services li:nth-child(odd) { border-right: 1px solid var(--line-strong); }
  .services li:nth-child(-n+2) { border-bottom: 1px solid var(--line-strong); }
  .contact { display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 360px); gap: 10px; }
  .contact li { display: flex; }
  .contact a { flex: 1; justify-content: center; padding: 10px 12px; font-size: 0.9rem; }
  .contact li.wide { grid-column: 1 / -1; }
  .intro span { display: block; }
  .site-footer { font-size: 0.78rem; }
  .site-footer > span { flex-basis: 100%; text-align: center; }
}
@media (max-width: 340px) {
  .contact { grid-template-columns: 1fr; }
  .services { letter-spacing: 0.22em; }
}
/* niedrige Querformat-Displays (z. B. Handy quer) */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { gap: 14px; padding: 8px 0; }
  .logo { width: min(22rem, 44svh * 1.22); }
  .region { display: none; }
}
.legal strong { font-weight: 500; color: var(--cream); }
