@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Source+Sans+3:wght@300;400;600&display=swap');

:root {
  --braun: #6B3A1F;
  --gold: #C8951A;
  --hellgold: #F0C84A;
  --creme: #FAF5EC;
  --dunkel: #2C1A0E;
  --gruen: #3D5A2E;
  --hellgruen: #7A9B5F;
  --text: #3A2510;
  --border: #D4B896;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Source Sans 3', sans-serif; background: var(--creme); color: var(--text); font-size: 17px; line-height: 1.7; }

/* HEADER */
header { background: var(--dunkel); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.header-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; gap: 20px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.logo-emblem { width: 54px; height: 54px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; border: 2px solid var(--hellgold); }
.logo-text strong { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; display: block; color: var(--hellgold); line-height: 1.2; }
.logo-text span { font-size: 0.75rem; color: var(--border); letter-spacing: 0.08em; text-transform: uppercase; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { color: var(--creme); text-decoration: none; padding: 6px 14px; border-radius: 4px; font-size: 0.9rem; font-weight: 600; transition: background 0.2s, color 0.2s; }
nav a:hover, nav a.active { background: var(--gold); color: var(--dunkel); }

/* PAGE TITLE */
.page-title { background: linear-gradient(135deg, var(--braun) 0%, var(--dunkel) 100%); color: white; padding: 40px 24px; text-align: center; }
.page-title h1 { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 900; color: var(--hellgold); }
.page-title p { color: rgba(255,255,255,0.7); margin-top: 6px; }

/* CONTAINER */
.container { max-width: 1100px; margin: 0 auto; padding: 50px 24px; }

/* SECTION TITLE */
.section-title { font-family: 'Playfair Display', serif; font-size: 1.9rem; font-weight: 700; color: var(--braun); margin-bottom: 8px; }
.section-title::after { content: ''; display: block; width: 50px; height: 3px; background: var(--gold); margin-top: 8px; margin-bottom: 28px; }
.section-lead { color: #7A6050; margin-bottom: 32px; max-width: 640px; }

/* CARDS */
.card { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 24px; margin-bottom: 20px; border-left: 4px solid var(--gold); transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: 0 4px 20px rgba(107,58,31,0.12); transform: translateY(-1px); }
.card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--braun); margin-bottom: 8px; }
.card .meta { font-size: 0.78rem; color: var(--hellgruen); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.card p { font-size: 0.93rem; color: #5A4030; line-height: 1.7; }

/* GRID */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

/* INFO BOX */
.info-box { background: var(--gruen); color: white; border-radius: 8px; padding: 22px 28px; margin-bottom: 28px; }
.info-box h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--hellgold); margin-bottom: 6px; }
.info-box p { font-size: 0.92rem; color: rgba(255,255,255,0.88); }

/* HIGHLIGHT */
.highlight-banner { background: var(--gold); color: var(--dunkel); text-align: center; padding: 18px 24px; font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; }
.highlight-banner span { font-weight: 300; font-family: 'Source Sans 3', sans-serif; font-size: 0.92rem; display: block; margin-top: 3px; }

/* TERMIN LIST */
.termine-list { list-style: none; }
.termin-item { display: flex; gap: 20px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border); }
.termin-item:last-child { border-bottom: none; }
.termin-datum { background: var(--braun); color: white; border-radius: 6px; padding: 10px 14px; text-align: center; min-width: 72px; flex-shrink: 0; font-family: 'Playfair Display', serif; }
.termin-datum .tag { font-size: 1.4rem; font-weight: 700; line-height: 1; }
.termin-datum .monat { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--hellgold); }
.termin-info h4 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--braun); margin-bottom: 4px; }
.termin-info p { font-size: 0.88rem; color: #6A5040; }

/* VORSTAND */
.vorstand-card { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 20px 22px; }
.vorstand-rolle { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 4px; }
.vorstand-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--braun); font-weight: 700; margin-bottom: 8px; }
.vorstand-card p { font-size: 0.83rem; color: #6A5040; line-height: 1.7; }
.vorstand-card a { color: var(--braun); text-decoration: none; }
.vorstand-card a:hover { color: var(--gold); }

/* MEISTER */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 28px; }
.tab-btn { padding: 8px 18px; border: 2px solid var(--border); background: white; color: var(--braun); border-radius: 6px; cursor: pointer; font-family: 'Source Sans 3', sans-serif; font-size: 0.9rem; font-weight: 600; transition: all 0.2s; }
.tab-btn.active, .tab-btn:hover { background: var(--braun); color: white; border-color: var(--braun); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.meister-year h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--braun); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); }
.meister-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-bottom: 16px; }
.meister-entry { background: var(--creme); border: 1px solid var(--border); border-radius: 6px; padding: 12px 16px; }
.meister-entry .kategorie { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--hellgruen); letter-spacing: 0.1em; margin-bottom: 3px; }
.meister-entry .name { font-weight: 600; color: var(--braun); }

/* IMPRESSUM */
.impressum-box { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 32px; max-width: 720px; }
.impressum-box h3 { font-family: 'Playfair Display', serif; color: var(--braun); margin: 20px 0 10px; font-size: 1.1rem; }
.impressum-box h3:first-child { margin-top: 0; }
.impressum-box p, .impressum-box address { font-size: 0.92rem; color: #5A4030; font-style: normal; line-height: 1.8; }
.impressum-box a { color: var(--braun); }

/* KONTAKT */
.kontakt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-bottom: 40px; }
.kontakt-card { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
.kontakt-card .icon { font-size: 2rem; margin-bottom: 12px; }
.kontakt-card h3 { font-family: 'Playfair Display', serif; color: var(--braun); margin-bottom: 10px; }
.kontakt-card p, .kontakt-card a { font-size: 0.93rem; color: #5A4030; text-decoration: none; display: block; line-height: 1.8; }
.kontakt-card a:hover { color: var(--gold); }

/* GALERIE */
.galerie-sektion { padding: 40px 0 20px; border-bottom: 1px solid var(--border); }
.galerie-sektion:last-child { border-bottom: none; }
.galerie-sektion h2 { font-family: 'Playfair Display', serif; font-size: 1.45rem; color: var(--braun); margin-bottom: 6px; }
.galerie-sektion h2::after { content: ''; display: block; width: 36px; height: 3px; background: var(--gold); margin-top: 6px; margin-bottom: 16px; }
.galerie-beschreibung { font-size: 0.92rem; color: #7A6050; margin-bottom: 18px; max-width: 700px; }
.foto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.foto-slot { position: relative; aspect-ratio: 4/3; background: #EDE3D6; border: 2px dashed var(--border); border-radius: 6px; overflow: hidden; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.foto-slot:hover { border-color: var(--gold); background: #F5ECD8; }
.foto-slot input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.foto-slot .placeholder-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; pointer-events: none; }
.foto-slot .placeholder-inner .icon { font-size: 2rem; opacity: 0.4; }
.foto-slot .placeholder-inner .hint { font-size: 0.72rem; color: #9A7A5A; text-align: center; padding: 0 10px; line-height: 1.4; }
.foto-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 500; align-items: center; justify-content: center; flex-direction: column; gap: 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 6px; }
.lightbox-caption { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.lightbox-close { position: fixed; top: 20px; right: 28px; color: white; font-size: 2rem; cursor: pointer; background: none; border: none; }
.lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: none; color: white; font-size: 2rem; padding: 12px 18px; cursor: pointer; border-radius: 6px; }
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

/* MARKTPLATZ */
.anzeige-box { background: #FFF8E8; border: 1px solid var(--gold); border-radius: 8px; padding: 24px 28px; margin-bottom: 28px; }
.anzeige-box h3 { font-family: 'Playfair Display', serif; color: var(--braun); margin-bottom: 10px; }
.anzeige-box p { font-size: 0.93rem; color: #7A5010; line-height: 1.7; }
.anzeige-box a { color: var(--braun); font-weight: 600; }

/* FOOTER */
footer { background: var(--dunkel); color: rgba(255,255,255,0.6); text-align: center; padding: 32px 24px; font-size: 0.85rem; margin-top: 60px; }
footer strong { color: var(--hellgold); }

/* HERO (nur index) */
.hero { background: linear-gradient(160deg, var(--gruen) 0%, #2A4020 50%, var(--dunkel) 100%); color: white; padding: 70px 24px 60px; text-align: center; position: relative; overflow: hidden; }
.hero-badge { display: inline-block; background: var(--gold); color: var(--dunkel); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 18px; border-radius: 20px; margin-bottom: 20px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.15; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.82); max-width: 600px; margin: 0 auto 30px; }
.hero-bullets { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.hero-bullets span { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); padding: 6px 16px; border-radius: 20px; font-size: 0.9rem; }

@media (max-width: 650px) {
  nav { display: none; }
  .termin-item { flex-direction: column; gap: 10px; }
  .foto-grid { grid-template-columns: repeat(2, 1fr); }
}
