/* =================================================================
   Jahn Dominic – Die Holzmanufaktur · Platzhalter (Einseiter)
   Reines HTML/CSS · selbst gehostete Fonts · keine externen Aufrufe
   ================================================================= */

/* ---- Fonts (selbst gehostet) ------------------------------------ */
@font-face {
  font-family: 'Barlow';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/barlow-v13-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../assets/fonts/barlow-v13-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../assets/fonts/barlow-v13-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../assets/fonts/barlow-condensed-v13-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../assets/fonts/barlow-condensed-v13-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../assets/fonts/barlow-condensed-v13-latin-700.woff2') format('woff2');
}

/* ---- Design Tokens ---------------------------------------------- */
:root {
  --navy:       #0F2A4A;
  --navy-dark:  #081B30;
  --gold:       #B8893A;
  --gold-light: #D4A855;
  --cream:      #FCFAF6;
  --warm:       #F3EEE6;
  --line:       #E6DFD3;
  --charcoal:   #2C2C2C;
  --muted:      #6F6A63;
  --white:      #FFFFFF;

  --font-body:    'Barlow', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-display: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 30px 80px -20px rgba(20, 30, 45, 0.45),
            0 8px 24px -12px rgba(20, 30, 45, 0.35);
  --radius: 20px;
}

/* ---- Reset ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  line-height: 1.6;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 3vw, 2rem);
  /* Holzmuster-Textur + warmer Grundton */
  background-color: #cdc0b8;
  background-image:
    radial-gradient(ellipse at 50% 30%, rgba(247, 243, 235, 0.35), transparent 60%),
    radial-gradient(ellipse at center, transparent 35%, rgba(58, 44, 38, 0.30) 100%),
    url('../assets/muster.webp');
  background-size: cover, cover, cover;
  background-position: center;
  background-attachment: fixed, fixed, fixed;
  background-repeat: no-repeat;
}

img { display: block; max-width: 100%; }

/* ---- Layout: zentrierte Karte ----------------------------------- */
.page {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 680px;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  animation: rise 900ms var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card__inner {
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 5vw, 3.25rem) clamp(1.5rem, 3vw, 2.25rem);
}

/* ---- Logo ------------------------------------------------------- */
.logo {
  width: clamp(175px, 42vw, 225px);
  height: auto;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1rem;
}

/* ---- Slider ----------------------------------------------------- */
.slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 40vh;
  margin-top: 1.25rem;
  border-radius: 14px;
  overflow: hidden;
  background: var(--warm);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity, transform;
  animation: slide-cycle 40s ease-in-out infinite;
}
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 8s; }
.slide:nth-child(3) { animation-delay: 16s; }
.slide:nth-child(4) { animation-delay: 24s; }
.slide:nth-child(5) { animation-delay: 32s; }

/* Echtes Cross-Dissolve ohne Dip (5 Bilder, je 8 s, Loop 40 s):
   Das eintretende Bild blendet OBEN (z-index 2) über dem noch voll
   sichtbaren vorherigen Bild ein. Erst wenn es voll deckt, fällt das
   alte (darunter, verdeckt) auf 0 – die Deckung bleibt durchgehend 100 %.
   Segment = 20 %; Einblenden = 6 % (≈2,4 s); Übergabe ans nächste bei 20 %.
   z-index wechselt jeweils in einem 0,01-%-Fenster (≈4 ms, unsichtbar). */
@keyframes slide-cycle {
  0%     { opacity: 0; z-index: 2; transform: scale(1.0); }
  6%     { opacity: 1; z-index: 2; }
  20%    { opacity: 1; z-index: 2; transform: scale(1.04); }
  20.01% { opacity: 1; z-index: 1; }
  26%    { opacity: 1; z-index: 1; transform: scale(1.05); }
  26.01% { opacity: 0; z-index: 1; }
  100%   { opacity: 0; z-index: 0; transform: scale(1.0); }
}

/* dezenter Verlauf unten für die Punkte */
.slider::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(to top, rgba(8, 18, 30, 0.35), transparent);
  pointer-events: none;
}

.dots {
  position: absolute;
  bottom: 0.9rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  z-index: 2;
}
.dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: dot-cycle 40s ease-in-out infinite;
}
.dots span:nth-child(1) { animation-delay: 0s; }
.dots span:nth-child(2) { animation-delay: 8s; }
.dots span:nth-child(3) { animation-delay: 16s; }
.dots span:nth-child(4) { animation-delay: 24s; }
.dots span:nth-child(5) { animation-delay: 32s; }
@keyframes dot-cycle {
  0%, 28%, 100% { background: rgba(255, 255, 255, 0.45); transform: scale(1); }
  6%, 22%       { background: var(--gold-light); transform: scale(1.25); }
}

/* ---- Text ------------------------------------------------------- */
.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 6vw, 2.85rem);
  line-height: 1.04;
  letter-spacing: 0.005em;
  color: var(--navy);
  margin-top: 1.4rem;
}
.headline em {
  font-style: normal;
  color: var(--gold);
}

.gold-rule {
  width: 46px; height: 2px;
  background: var(--gold);
  margin: 1.1rem auto 0;
  border: 0;
}

.tagline {
  font-size: clamp(0.98rem, 2.4vw, 1.075rem);
  color: var(--muted);
  max-width: 42ch;
  margin: 0.9rem auto 0;
}

/* ---- Kontakt ---------------------------------------------------- */
.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2.5rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.contact__item { text-align: center; }
.contact__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.contact__item a,
.contact__item address {
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.25s ease;
}
.contact__item a:hover { color: var(--gold); }

/* ---- Buttons ---------------------------------------------------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.6rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--navy);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--gold);
  border-color: var(--gold);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
}
.btn--ghost:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---- Footer ----------------------------------------------------- */
.footer {
  flex-shrink: 0;
  width: fit-content;
  max-width: 92vw;
  margin: clamp(1rem, 2.5vw, 1.5rem) auto 0;
  text-align: center;
  font-size: 0.8rem;
  color: #4a3f36;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.55);
}
.footer a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 42, 74, 0.4);
  padding-bottom: 1px;
  font-weight: 600;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.footer a:hover { color: var(--gold); border-color: var(--gold); }
.footer .sep { margin: 0 0.55rem; opacity: 0.5; }
.footer__copy {
  display: block;
  margin-top: 0.4rem;
  opacity: 0.85;
  font-size: 0.74rem;
}

/* ---- Responsiv -------------------------------------------------- */
@media (max-width: 480px) {
  .slider { aspect-ratio: 4 / 3; }
  .contact { gap: 1.25rem 1.75rem; }
}

/* ---- Rechtsseiten (Impressum / Datenschutz) --------------------- */
.legal {
  flex: 1 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-block: clamp(1rem, 4vw, 2rem);
}
.legal .card { text-align: left; max-width: 760px; }
.legal__inner {
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 5vw, 3.25rem);
}
.legal .logo { margin: 0 0 1.5rem; }
.legal h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin: 1.9rem 0 0.5rem;
}
.legal p, .legal address {
  font-style: normal;
  color: var(--charcoal);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.legal a { color: var(--gold); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal .muted { color: var(--muted); font-size: 0.85rem; }
.legal .gold-rule { margin: 0.4rem 0 0; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  margin-bottom: 1.75rem;
}
.back:hover { color: var(--navy); }

/* ---- Reduced Motion -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  .slide { animation: none; }
  .slide:nth-child(1) { opacity: 1; }
  .slide:nth-child(n+2) { opacity: 0; }
  .dots span { animation: none; }
  .dots span:nth-child(1) { background: var(--gold-light); }
}
