/* =============================================================
   UKZ Base — minimaler Reset + geteilte Bausteine
   (Jedes Design bringt darüber seine eigene theme.css mit.)
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, picture, svg, video { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }

:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.ukz-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* Bild-Fallback, falls das Original-CDN nicht erreichbar ist */
.ukz-img { width: 100%; height: 100%; object-fit: cover; background: rgba(0,0,0,.05); }
.ukz-img--failed {
  display: block !important;
  overflow: hidden;
  min-height: 180px;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.05) 0 12px, rgba(0,0,0,.09) 12px 24px);
}

.ukz-ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: #fdfaf3;
  background:
    radial-gradient(120% 120% at 20% 10%, color-mix(in srgb, var(--ph) 38%, #fff) 0%, color-mix(in srgb, var(--ph) 14%, #fff) 60%, #fff 100%);
}
.ukz-ph span { font-size: clamp(2.4rem, 8vw, 4.2rem); line-height: 1; filter: saturate(1.1); }

/* Reveal-Animation (Designs können sie überschreiben) */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1);
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* -------------------------------------------------------------
   Design-Umschalter (auf allen 10 Entwürfen identisch)
   ------------------------------------------------------------- */
.ukz-switch {
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(18, 18, 20, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 34px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.12);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #fff;
  max-width: calc(100vw - 20px);
}

.ukz-switch a, .ukz-switch button { color: #fff; text-decoration: none; }

.ukz-switch__nav {
  display: grid;
  place-items: center;
  width: 34px;
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
  opacity: .8;
  transition: background .2s, opacity .2s;
}
.ukz-switch__nav:hover { background: rgba(255,255,255,.16); opacity: 1; }

.ukz-switch__nums {
  display: flex;
  align-items: stretch;
  gap: 2px;
}
.ukz-switch__num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  text-decoration: none;
  background: rgba(255,255,255,.1);
  transition: background .15s, color .15s, transform .15s;
}
.ukz-switch__num:hover { background: rgba(255,255,255,.26); transform: translateY(-1px); }
.ukz-switch__num.is-current { background: #fff; color: #16161a; }

.ukz-switch__home {
  display: grid;
  place-items: center;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(255,255,255,.14);
  transition: background .2s;
}
.ukz-switch__home:hover { background: rgba(255,255,255,.26); }

@media (max-width: 720px) {
  .ukz-switch__num { width: 25px; height: 28px; flex-basis: 25px; font-size: 10px; border-radius: 6px; }
  .ukz-switch__nav { width: 30px; }
  .ukz-switch__home { font-size: 10px; padding: 0 9px; }
  .ukz-switch__nums { max-width: 56vw; overflow-x: auto; scrollbar-width: none; }
  .ukz-switch__nums::-webkit-scrollbar { display: none; }
}

@media (max-width: 420px) {
  .ukz-switch__num { width: 24px; height: 26px; flex-basis: 24px; font-size: 9px; }
  .ukz-switch__home { font-size: 9px; padding: 0 7px; }
  .ukz-switch__nums { max-width: 50vw; }
}

/* -------------------------------------------------------------
   Studio-Pager (vor/zurück + Galerie + aktuelle Position)
   ------------------------------------------------------------- */
.ukz-pager {
  max-width: 1180px;
  width: min(1180px, 100% - 2.5rem);
  margin: 2.8rem auto 0;
  padding: 1rem 1.2rem;
  border: 1px solid #e8dcc6;
  border-radius: 16px;
  background: #fffaf0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .88rem;
  color: #2e2a24;
}
.ukz-pager__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1rem;
  justify-content: space-between;
}
.ukz-pager__hub {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  background: #2e2a24;
  color: #fffbf2;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.ukz-pager__hub:hover { background: #1a1714; }
.ukz-pager__cur { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .6rem; min-width: 0; }
.ukz-pager__cur b { font-size: .95rem; }
.ukz-pager__cur span { color: #6b6155; font-size: .82rem; }
.ukz-pager__links { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
.ukz-pager__nav {
  display: inline-flex;
  align-items: center;
  padding: .45rem .75rem;
  border-radius: 999px;
  border: 1px solid #e8dcc6;
  background: #fff;
  color: #2e2a24;
  font-weight: 600;
  font-size: .84rem;
  text-decoration: none;
  white-space: nowrap;
}
.ukz-pager__nav:hover { background: #fdf3e0; }
@media (max-width: 760px) {
  .ukz-pager { font-size: .82rem; }
  .ukz-pager__in { flex-direction: column; align-items: stretch; }
  .ukz-pager__links { margin-left: 0; }
  .ukz-pager__hub-long { display: none; }
  .ukz-pager__links { display: grid; grid-template-columns: 1fr 1fr; }
  .ukz-pager__nav { justify-content: center; }
}

/* Platz für Umschalter + Pager am Seitenende */
body::after { content: ""; display: block; height: 74px; }
