/* ==========================================================================
   Ebbi's Café — Lindau am Bodensee
   Farbtoken direkt aus dem Logo gesampelt (Gold #C99815 – #F0E2AD)
   Schriften lokal eingebunden -> kein externer Request, kein Cookie-Banner
   ========================================================================== */

@font-face {
  font-family: 'Italiana';
  src: url('fonts/italiana-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('fonts/jost-latin-300-normal.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('fonts/jost-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper:       #FBF7F0;
  --paper-deep:  #F3E9D9;
  --paper-lift:  #FFFDF8;

  --ink:         #14110D;
  --ink-soft:    #4A423A;
  --muted:       #675E55;

  --gold-deep:   #C99815;
  --gold:        #E0BA33;
  --gold-pale:   #F0E2AD;

  --line:        rgba(20, 17, 13, 0.10);

  --display: 'Italiana', 'Didot', 'Bodoni MT', Georgia, serif;
  --ui: 'Jost', 'Futura', 'Century Gothic', system-ui, -apple-system, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 2.5rem);
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  color: var(--ink);
  font-family: var(--ui);
  font-weight: 300;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 72% 56% at 50% 36%, var(--paper-lift) 0%, rgba(255, 253, 248, 0) 72%),
    linear-gradient(178deg, var(--paper) 0%, var(--paper-deep) 100%);
  background-attachment: fixed;
}

/* Feines Papierkorn – hebt das Logo optisch von der Fläche ab */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.11'/%3E%3C/svg%3E");
}

/* Animierter Hintergrund. Liegt unter dem Korn und unter dem Inhalt.
   Ohne JavaScript oder WebGL bleibt er unsichtbar und der CSS-Verlauf traegt. */
.bg-shader {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.bg-shader.is-live { opacity: 0.90; }


main, .site-footer { position: relative; z-index: 2; }

/* --------------------------------------------------------------- Startseite */

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(3rem, 10vh, 6rem) var(--gutter);
}

.logo {
  display: block;
  width: min(560px, 80vw);
  height: auto;
  filter: drop-shadow(0 18px 32px rgba(96, 74, 30, 0.14));
}

.rule {
  width: min(300px, 48vw);
  height: 1px;
  margin: clamp(2.25rem, 6vh, 3.25rem) 0 clamp(1.75rem, 5vh, 2.5rem);
  border: 0;
  background: linear-gradient(90deg,
    rgba(201, 152, 21, 0) 0%,
    var(--gold-deep) 24%,
    var(--gold) 50%,
    var(--gold-deep) 76%,
    rgba(201, 152, 21, 0) 100%);
}

.coming {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.15rem, 4.2vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: 0.44em;
  text-indent: 0.44em; /* gleicht das Spacing hinter dem letzten Zeichen aus */
  text-transform: uppercase;
  color: var(--ink);
}

.where {
  margin: clamp(1.5rem, 4vh, 2.25rem) 0 0;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.19em;
  text-indent: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.9;
}

.where span { white-space: nowrap; }

/* ----------------------------------------------------------------- Fusszeile */

.site-footer {
  padding: 1.75rem var(--gutter) 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.11em;
  color: var(--muted);
}

.site-footer nav {
  display: inline;
}

.site-footer .sep {
  margin: 0 0.6em;
  opacity: 0.5;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--ink);
  border-bottom-color: var(--gold-deep);
}

a:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* -------------------------------------------------------------- Unterseiten */

.doc {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 4.5rem) var(--gutter) clamp(3rem, 8vh, 5rem);
}

.doc-mark {
  display: block;
  width: 148px;
  margin: 0 auto clamp(2.5rem, 7vh, 4rem);
  border-bottom: 0;
}

.doc-mark img { display: block; width: 100%; height: auto; }

.doc h1 {
  margin: 0 0 2.5rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 5.5vw, 2.6rem);
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
}

.doc h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 2.75rem 0 0.75rem;
  font-family: var(--ui);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Goldakzent bleibt erhalten, traegt aber keinen Text mehr */
.doc h2::before {
  content: '';
  flex: 0 0 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}

.doc h2:first-of-type { margin-top: 0; }

.doc h3 {
  margin: 1.75rem 0 0.5rem;
  font-family: var(--ui);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.doc p,
.doc li {
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.78;
  color: var(--ink-soft);
}

.doc p { margin: 0 0 1rem; }

.doc ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

.doc li { margin-bottom: 0.35rem; }

.doc address {
  font-style: normal;
  font-size: 0.97rem;
  line-height: 1.78;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.doc strong { font-weight: 400; color: var(--ink); }

.doc .meta {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ------------------------------------------------------------------ Auftritt */

@media (prefers-reduced-motion: no-preference) {
  .stage .logo,
  .stage .rule,
  .stage .coming,
  .stage .where {
    animation: rise 1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  .stage .logo  { animation-delay: 0.05s; }
  .stage .rule  { animation-delay: 0.45s; animation-name: draw; }
  .stage .coming { animation-delay: 0.7s; }
  .stage .where  { animation-delay: 0.95s; }
}

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

@keyframes draw {
  from { opacity: 0; transform: scaleX(0.2); }
  to   { opacity: 1; transform: scaleX(1); }
}

/* ------------------------------------------------------------ 404-Seite */

.stage--404 .logo { width: min(360px, 62vw); }

.stage--404 .coming {
  font-size: clamp(0.95rem, 3.2vw, 1.5rem);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}
