/* Heimat Mainfranken – v3 nach Kundenkorrektur */

@font-face { font-family: 'Vollkorn'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/vollkorn-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Vollkorn'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/vollkorn-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Vollkorn'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/vollkorn-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Vollkorn'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/vollkorn-latin-700-normal.woff2') format('woff2'); }

:root {
  --bg:       #f2ede5;
  --bg-white: #faf8f4;
  --black:    #1a1a1a;
  --red:      #c4432b;
  --red-soft: #d4604c;
  --border:   #1a1a1a;
  --border-light: #444;
  --radius:   3px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--black);
  font-family: 'Vollkorn', Georgia, serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.8;
  overflow-wrap: break-word;
  word-break: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--black); text-decoration: underline; }
a:hover { color: var(--red); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Visually hidden (a11y/SEO) */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: #fff;
  padding: 0.5rem 1.2rem; font-size: 0.9rem;
  z-index: 200; border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }

/* ── Header ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,244,0.97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0.8rem 2rem;
}
#main-nav { display: flex; gap: 2.2rem; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; }
#main-nav a { color: var(--black); text-decoration: none; font-weight: 600; }
#main-nav a:hover { color: var(--red); }

.burger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; padding: 4px;
  color: var(--black);
  position: relative;
  z-index: 101;
}
.burger svg { width: 100%; height: 100%; }
.burger .line { transition: transform 0.3s, opacity 0.2s; transform-origin: center; }
.burger[aria-expanded="true"] .line-top    { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .line-mid    { opacity: 0; }
.burger[aria-expanded="true"] .line-bottom { transform: translateY(-7px) rotate(-45deg); }

/* ── Layout ── */
.container { max-width: 820px; margin: 0 auto; padding: 0 2rem; }
section { padding: 4rem 0; scroll-margin-top: 3.5rem; }
section + section { border-top: 2px solid var(--border-light); }

/* Section headlines: spaced uppercase red */
.section-headline {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

section h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--black);
}

section p { margin-bottom: 1.1rem; }

/* ── Hero / Cover ── */
.hero {
  max-width: 820px; margin: 0 auto;
  padding: 3rem 2rem 2rem;
  text-align: center;
}
.hero-cover {
  max-width: 580px;
  margin: 0 auto 2rem;
  border-radius: 4px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.15);
}
.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 0.6rem;
}
.hero-subtitle {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}
.hero-subtitle em {
  font-style: italic;
  color: var(--red);
}
.hero-award {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 600;
  font-style: italic;
  color: var(--red);
  margin-top: 1.5rem;
  line-height: 1.4;
}

/* ── Audio ── */
.audio-card {
  background: var(--bg-white);
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  padding: 2rem;
  margin-top: 1rem;
}
.audio-wrap { display: flex; gap: 2rem; align-items: flex-start; }
.audio-cover {
  width: 200px; flex-shrink: 0;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.audio-info { flex: 1; }
.audio-info p { margin-bottom: 0.8rem; }
audio { width: 100%; margin-bottom: 0.5rem; }
.audio-duration { color: var(--black); }

/* ── Photos centered ── */
.photo-centered {
  max-width: 340px;
  margin: 2rem auto;
  text-align: center;
}
.photo-centered img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.photo-centered figcaption {
  font-size: 1rem;
  color: var(--black);
  margin-top: 0.6rem;
  line-height: 1.5;
  font-style: italic;
}

/* ── Blockquote ── */
blockquote {
  margin: 2.5rem 0;
  padding: 1.8rem 2rem;
  background: var(--bg-white);
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
blockquote p {
  font-style: italic;
  font-size: inherit;
  line-height: 1.7;
  color: var(--black);
}
blockquote cite {
  display: block;
  margin-top: 0.8rem;
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  color: var(--black);
}

/* ── Credits ── */
.credits-subhead {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 2rem 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-light);
}
.credits-list { margin-bottom: 1rem; }
.credits-list p { margin-bottom: 0.3rem; }
.credits-row {
  display: flex; gap: 1rem; padding: 0.5rem 0;
  border-bottom: 1px solid #ccc;
}
.credits-row .label {
  width: 280px; flex-shrink: 0;
  font-weight: 600;
}

/* ── Making-of ── */
.making-of-banner {
  width: 100%;
  border-radius: 6px;
  margin-top: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ── Logos ── */
.logos-row {
  display: flex; flex-wrap: nowrap; gap: 2rem;
  align-items: center; margin-top: 1.5rem;
}
.logos-row img { flex: 1; height: auto; width: 0; min-width: 0; object-fit: contain; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.6rem;
  background: var(--red);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn:hover { background: var(--red-soft); color: #fff; text-decoration: none; }

/* ── Kontakt ── */
.kontakt-block {
  margin-top: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--bg-white);
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.kontakt-block p { margin-bottom: 0.4rem; }
.kontakt-block a { color: var(--black); text-decoration: none; transition: color 0.3s; }
.kontakt-block a:hover { color: var(--red); }

/* ── Legal pages ── */
.legal-content { max-width: 820px; margin: 0 auto; padding: 3rem 2rem 5rem; }
.legal-content h1 {
  font-size: 1.4rem; font-weight: 700; color: var(--red);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 2rem;
}
.legal-content h2 { font-size: 1.3rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; }
.legal-content h3 { font-size: 1.05rem; font-weight: 600; margin-top: 1.8rem; margin-bottom: 0.6rem; }
.legal-content h4 { font-size: 1rem; font-weight: 600; margin-top: 1.2rem; margin-bottom: 0.4rem; }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { margin: 0.5rem 0 1rem 1.5rem; }
.legal-content li { margin-bottom: 0.5rem; }
.legal-content address { font-style: normal; margin-bottom: 1rem; }
.legal-content a { color: var(--black); text-decoration: none; transition: color 0.3s; }
.legal-content a:hover { color: var(--red); }
.legal-source { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #ccc; font-size: 0.9rem; }
.legal-highlight {
  padding: 1.5rem 2rem;
  margin: 1rem 0;
  background: var(--bg-white);
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

/* ── Footer ── */
footer {
  border-top: 2px solid var(--border-light);
  padding: 1.5rem 2rem 2.5rem;
  font-size: 0.88rem;
  color: var(--black);
  text-align: center;
}
.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 0.6rem; }
.footer-links a { color: var(--black); font-size: 0.88rem; }

/* ── Lightbox ── */
.banner-link { cursor: pointer; display: block; }
.banner-link:hover { opacity: 0.92; }
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.92); z-index: 200;
  align-items: center; justify-content: center;
  flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain; border-radius: 4px;
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1.5rem;
  background: none; border: none; color: #fff;
  font-size: 2.5rem; cursor: pointer; line-height: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  font-size: 2rem; padding: 0.8rem 1rem; cursor: pointer;
  border-radius: 4px; line-height: 1;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-counter {
  color: rgba(255,255,255,0.6);
  font-size: 1rem; margin-top: 1rem;
}

/* ── Responsive ── */
/* ── Back to top ── */
.to-top {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 46px;
  height: 46px;
  background: #eae5dd;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s, background 0.3s, border-color 0.3s;
  z-index: 50;
}
.to-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--black);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s;
}
.to-top.visible {
  opacity: 1;
  visibility: visible;
}
.to-top:hover {
  background: #e0dbd2;
  border-color: var(--black);
}
.to-top:hover svg {
  stroke: var(--red);
}

/* Burger-Menü ab 900px */
@media (max-width: 900px) {
  header { padding: 0.7rem 1.2rem; }
  .burger { display: block; }
  #main-nav {
    display: none; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(250,248,244,0.99);
    backdrop-filter: blur(12px);
    border-bottom: 3px solid var(--black);
    padding: 4rem 1.5rem 1.5rem; gap: 0;
    z-index: 99;
  }
  #main-nav.open { display: flex; }
  #main-nav a { padding: 0.7rem 0; font-size: 1rem; border-bottom: 1px solid #ccc; }
  #main-nav a:last-child { border-bottom: none; }
}

/* Layout-Anpassungen ab 640px */
@media (max-width: 640px) {
  body { font-size: 18px; }
  .hero { padding: 2rem 1.2rem 1.5rem; }
  .hero-cover { max-width: 340px; }
  .container { padding: 0 1.2rem; }
  section { padding: 2.5rem 0; }
  .audio-card { padding: 1.2rem; }
  .audio-wrap { flex-direction: column; gap: 1.2rem; }
  .audio-cover { width: 160px; }
  .logos-row {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .logos-row img {
    flex: none;
    width: 240px;
    max-width: 100%;
    height: auto;
  }
  footer { padding: 1.5rem 1.2rem; }
  .legal-content { padding: 2rem 1.2rem 3rem; }
  .credits-row { flex-direction: column; gap: 0.2rem; }
  .credits-row .label { width: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
