/* ═══════════════════════════════════════════════════════════
   SERMER OKTOBERFEST – Stylesheet
   ═══════════════════════════════════════════════════════════ */

:root {
  --clr-primary:  #0d2a4a;
  --clr-blue:     #2e7abf;
  --clr-blue-lt:  #a8d4f5;
  --clr-hero-bg:  #0d2a4a;
  --clr-bg:       #ffffff;
  --clr-bg-alt:   #f0f6fb;
  --clr-text:     #1e2a38;
  --clr-muted:    #5a6a7a;
  --clr-border:   #c8dff0;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', sans-serif;

  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,.12);
  --max-w:  1100px;
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--clr-text); background: var(--clr-bg); line-height: 1.6; font-size: clamp(15px, 1.1vw, 16px); }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--clr-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; color: var(--clr-primary); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* ── HEADER ───────────────────────────────────────────────── */
.site-header {
  background: var(--clr-primary);
  position: sticky; top: 0; z-index: 200;
  border-bottom: 3px solid var(--clr-blue);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: .6rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo-link { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.logo-pretzel { font-size: 1.8rem; line-height: 1; }
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-family: var(--font-display); font-size: 1.2rem; font-weight: 900; color: #fff; line-height: 1.1; }
.logo-sub  { font-size: .68rem; color: var(--clr-blue-lt); letter-spacing: .08em; text-transform: uppercase; }

/* ── NAVIGATION ───────────────────────────────────────────── */
.main-nav ul { display: flex; align-items: center; gap: .2rem; list-style: none; }
.main-nav a {
  display: block; padding: .4rem .75rem;
  color: #dde8f4; font-size: .88rem; font-weight: 600;
  border-radius: var(--radius);
  transition: color .2s, background .2s; text-decoration: none;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(46,122,191,.25); }
.nav-cta { background: var(--clr-blue) !important; color: #fff !important; }
.nav-cta:hover { background: #1a5f9e !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ── TICKET NOTICE ────────────────────────────────────────── */
.ticket-notice {
  background: var(--clr-blue); color: #fff;
  text-align: center; padding: .7rem 1.25rem;
  font-weight: 600; font-size: .95rem;
}
.ticket-notice a { color: #fff; text-decoration: underline; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: var(--clr-hero-bg);
  padding: clamp(2rem, 4vh, 3.5rem) 1.25rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 80% 50%, rgba(46,122,191,.15) 0%, transparent 70%),
    repeating-linear-gradient(60deg, transparent 0px, transparent 38px, rgba(46,122,191,.04) 38px, rgba(46,122,191,.04) 40px);
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: minmax(220px, 320px) 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; position: relative;
}
.hero-poster { display: flex; justify-content: center; }
.hero-poster-img {
  width: 100%; max-width: 320px;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0,0,0,.5), 0 0 0 2px rgba(46,122,191,.3);
  transition: transform .3s;
}
.hero-poster-img:hover { transform: scale(1.02); }

.hero-content { text-align: left; }
.hero-badge {
  display: inline-block; border: 2px solid rgba(46,122,191,.5);
  color: var(--clr-blue-lt); font-size: .75rem; letter-spacing: .18em;
  text-transform: uppercase; padding: .3rem 1rem; border-radius: 999px;
  margin-bottom: 1rem; font-weight: 600;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 900; color: #fff;
  line-height: 1.05; margin-bottom: .6rem;
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
}
.hero h1 em { display: block; font-size: .52em; font-style: normal; color: var(--clr-blue-lt); letter-spacing: .04em; }
.hero-date  { font-size: 1.1rem; color: var(--clr-blue-lt); font-weight: 700; margin-bottom: .75rem; }
.hero-meta  { font-size: .9rem; color: #b0c8e0; margin-bottom: .45rem; line-height: 1.5; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ── COUNTDOWN ────────────────────────────────────────────── */
.countdown-section {
  background: var(--clr-primary);
  padding: 1.5rem 1.25rem; text-align: center;
  border-bottom: 3px solid var(--clr-blue);
}
.countdown-label { color: var(--clr-blue-lt); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; }
.countdown { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 70px; }
.cd-num {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900;
  color: #fff; line-height: 1;
  background: rgba(46,122,191,.2); border: 1px solid rgba(46,122,191,.35);
  border-radius: var(--radius); padding: .4rem .9rem; min-width: 70px; text-align: center;
}
.cd-lbl { font-size: .7rem; color: #8aa8c8; letter-spacing: .1em; text-transform: uppercase; margin-top: .35rem; }

/* ── SECTIONS ─────────────────────────────────────────────── */
.section     { padding: clamp(2.5rem, 5vh, 4rem) 1.25rem; }
.section-alt { background: var(--clr-bg-alt); }

.section-header { text-align: center; margin-bottom: 2rem; }
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .5rem; }
.section-header p  { color: var(--clr-muted); max-width: 560px; margin: 0 auto; }
.divider { width: 50px; height: 3px; background: var(--clr-blue); margin: .6rem auto .75rem; border-radius: 2px; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: .7rem 1.6rem;
  border-radius: var(--radius); font-weight: 700; font-size: .9rem;
  letter-spacing: .02em; cursor: pointer; transition: all .2s;
  text-decoration: none; border: 2px solid transparent;
}
.btn-primary { background: var(--clr-blue); color: #fff; border-color: var(--clr-blue); }
.btn-primary:hover { background: #1a5f9e; border-color: #1a5f9e; text-decoration: none; color: #fff; }
.btn-outline { background: transparent; color: var(--clr-blue); border-color: var(--clr-blue); }
.btn-outline:hover { background: var(--clr-blue); color: #fff; text-decoration: none; }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }

/* ── ABOUT / FESTTEXT ────────────────────────────────────── */
.about-wrap { max-width: 740px; margin: 0 auto 2.5rem; text-align: center; }
.about-text  { font-size: 1rem; color: var(--clr-muted); line-height: 1.8; margin-bottom: .9rem; }
.about-text strong { color: var(--clr-primary); }
.about-quote { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; color: var(--clr-primary); margin-top: 1.25rem; }

/* ── FOTO-GRID ────────────────────────────────────────────── */
.fest-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .9rem; max-width: var(--max-w); margin: 0 auto;
}
.fest-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.fest-img:hover { transform: scale(1.03); box-shadow: 0 8px 28px rgba(13,42,74,.22); }

/* ── INFO CARDS ───────────────────────────────────────────── */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem; max-width: var(--max-w); margin: 0 auto;
}
.info-card {
  background: #fff; border: 1px solid var(--clr-border);
  border-radius: var(--radius); padding: 1.5rem 1.25rem;
  text-align: center; box-shadow: var(--shadow); transition: transform .2s;
}
.info-card:hover { transform: translateY(-3px); }
.info-card-icon { font-size: 2rem; margin-bottom: .75rem; }
.info-card h3   { font-size: 1rem; margin-bottom: .4rem; }
.info-card p    { font-size: .88rem; color: var(--clr-muted); }

/* ── TICKET PAGE ──────────────────────────────────────────── */
.ticket-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem; max-width: 920px; margin: 0 auto;
}
.ticket-card {
  background: #fff; border: 2px solid var(--clr-border);
  border-radius: var(--radius); padding: 1.75rem 1.5rem;
  text-align: center; box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
  position: relative;
}
.ticket-card:hover       { transform: translateY(-4px); border-color: var(--clr-blue); }
.ticket-card.featured    { border-color: var(--clr-blue); }
.ticket-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--clr-blue); color: #fff;
  font-size: .72rem; font-weight: 700; padding: .28rem .85rem;
  border-radius: 999px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.ticket-icon  { font-size: 2rem; margin-bottom: .75rem; }
.ticket-card h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.ticket-price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 900; color: var(--clr-primary); line-height: 1; margin: .65rem 0; }
.ticket-price small { font-size: .95rem; color: var(--clr-muted); }
.ticket-features { list-style: none; margin: .9rem 0 1.25rem; text-align: left; font-size: .88rem; color: var(--clr-muted); }
.ticket-features li { padding: .28rem 0; }
.ticket-features li::before { content: '✓ '; color: var(--clr-blue); font-weight: 700; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list { max-width: 740px; margin: 0 auto; }
details { background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius); margin-bottom: .6rem; overflow: hidden; }
summary { padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: .95rem; color: var(--clr-primary); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.3rem; color: var(--clr-blue); transition: transform .3s; flex-shrink: 0; }
details[open] summary::after   { transform: rotate(45deg); }
details[open] summary          { border-bottom: 1px solid var(--clr-border); }
.faq-answer { padding: .9rem 1.25rem; color: var(--clr-muted); font-size: .92rem; line-height: 1.7; }

/* ── VORVERKAUFSSTELLEN ───────────────────────────────────── */
.vs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; max-width: var(--max-w); margin: 0 auto; }
.vs-card { background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.vs-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.vs-card p, .vs-card address { font-size: .88rem; color: var(--clr-muted); font-style: normal; line-height: 1.6; }

/* ── KONTAKT ──────────────────────────────────────────────── */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; max-width: 900px; margin: 0 auto; align-items: start; }
.contact-info h3 { margin-bottom: .9rem; }
.contact-info p  { color: var(--clr-muted); margin-bottom: .55rem; font-size: .92rem; }
.contact-info strong { color: var(--clr-primary); }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .88rem; color: var(--clr-primary); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .65rem .85rem;
  border: 1.5px solid var(--clr-border); border-radius: var(--radius);
  font: inherit; font-size: .92rem; transition: border-color .2s;
  background: #f8fbfe; color: var(--clr-text);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--clr-blue); }
.form-group textarea { resize: vertical; min-height: 110px; }
.captcha-group label { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.alert { padding: .9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.1rem; font-size: .92rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ── PAGE HERO (Unterseiten) ─────────────────────────────── */
.page-hero { background: var(--clr-primary); padding: 2.5rem 1.25rem; text-align: center; border-bottom: 3px solid var(--clr-blue); }
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.6rem); margin-bottom: .4rem; }
.page-hero p  { color: #8aa8c8; font-size: .95rem; }

/* ── GALERIE ──────────────────────────────────────────────── */
.gallery-box { text-align: center; padding: 3.5rem 1.25rem; max-width: 480px; margin: 0 auto; }
.gallery-box .gallery-icon { font-size: 3.5rem; margin-bottom: 1.25rem; }
.gallery-box h2 { margin-bottom: .9rem; }
.gallery-box p  { color: var(--clr-muted); margin-bottom: 1.75rem; }

/* ── PROSE (Datenschutz, Impressum) ──────────────────────── */
.prose { max-width: 740px; margin: 0 auto; padding: 2.5rem 1.25rem; }
.prose h2 { margin: 1.75rem 0 .65rem; font-size: 1.3rem; }
.prose h3 { margin: 1.25rem 0 .4rem; font-size: 1.05rem; }
.prose p, .prose li { margin-bottom: .7rem; color: var(--clr-muted); font-size: .92rem; line-height: 1.75; }
.prose ul { padding-left: 1.4rem; }
.prose a { color: var(--clr-blue); }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer { background: var(--clr-hero-bg); border-top: 3px solid var(--clr-blue); padding: 1.75rem 1.25rem; text-align: center; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.footer-brand { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-size: 1.1rem; color: #fff; font-weight: 700; }
.footer-nav   { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: #8aa8c8; font-size: .82rem; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-copy  { color: #4a6a8a; font-size: .78rem; }

/* ── BACK TO TOP ──────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: var(--clr-blue); color: #fff;
  border: none; border-radius: 50%; cursor: pointer;
  font-size: 1.2rem; line-height: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s, transform .2s;
  z-index: 300; text-decoration: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover   { transform: translateY(-3px); background: #1a5f9e; text-decoration: none; color: #fff; }

/* ── SOCIAL LINK (Hero) ───────────────────────────────────── */
.hero-social { margin-top: 1.25rem; }
.social-link {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--clr-blue-lt); font-size: .9rem; font-weight: 600;
  text-decoration: none; transition: color .2s;
}
.social-link:hover { color: #fff; text-decoration: none; }

/* ── VVK HINWEIS ──────────────────────────────────────────── */
.vvk-hinweis {
  font-size: 1rem; color: var(--clr-text);
  max-width: 640px; margin: 0 auto;
  font-weight: 500;
}

/* ── VERANSTALTUNGSORDNUNG BOX ───────────────────────────── */
.festordnung-box {
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  max-width: 600px;
  margin: 2.5rem auto 0;
  box-shadow: var(--shadow);
}
.festordnung-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.festordnung-box h3 { margin-bottom: .6rem; }
.festordnung-box p  { color: var(--clr-muted); font-size: .92rem; margin-bottom: 1.25rem; }
.festordnung-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ── UTILITIES ────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.75rem; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .hero-content { text-align: center; }
  .hero-poster-img { max-width: 260px; }
  .hero-actions { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--clr-primary); border-top: 2px solid var(--clr-blue); padding: .75rem 0;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; align-items: stretch; }
  .main-nav a  { padding: .75rem 1.25rem; border-radius: 0; font-size: .95rem; }
  .contact-wrap { grid-template-columns: 1fr; }
  .fest-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-poster-img { max-width: 200px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; text-align: center; }
  .countdown { gap: .6rem; }
  .cd-num { min-width: 58px; padding: .35rem .7rem; }
}
