/* Schlaraffia Thüringen – UHU-CMS-konformes Design
   Farben: Dunkelblau #1a2e5a / Gold #e8b84b / Weiß */

:root {
  --blue-dark: #1a2e5a;
  --blue-mid: #1e3a73;
  --blue-light: #2a4d9c;
  --gold: #e8b84b;
  --gold-dark: #c99a30;
  --gold-light: #f5d070;
  --white: #ffffff;
  --off-white: #f8f8f6;
  --gray-light: #e8e8e8;
  --gray-mid: #888;
  --gray-dark: #333;
  --text: #2c2c2c;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(26,46,90,.12);
  --shadow-hover: 0 8px 32px rgba(26,46,90,.22);
  --transition: .25s ease;
  --max-width: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); background: var(--white); line-height: 1.65; }
a { color: var(--blue-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-dark); }
h1,h2,h3,h4 { font-weight: 700; line-height: 1.25; color: var(--blue-dark); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .75rem; }

.section { padding: 5rem 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--blue-dark); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark a { color: var(--gold); }
.section-dark a:hover { color: var(--gold-light); }
.section-sub { color: var(--gray-mid); max-width: 640px; margin-bottom: 2.5rem; font-size: 1.05rem; }

/* ── NAVIGATION ──────────────────────────────────────────── */
#nav {
  background: var(--blue-dark);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
}
#nav.scrolled { background: var(--blue-dark); }
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem;
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex-shrink: 0; }
.nav-uhu { font-size: 1.8rem; filter: drop-shadow(0 0 8px rgba(232,184,75,.5)); }
.nav-logo span { font-size: 1.2rem; font-weight: 800; color: var(--white); }
.nav-logo strong { color: var(--gold); }
.nav-links { display: flex; gap: .15rem; }
.nav-links a { color: rgba(255,255,255,.88); padding: .5rem .85rem; border-radius: var(--radius); font-size: .9rem; font-weight: 500; transition: background var(--transition), color var(--transition); white-space: nowrap; }
.nav-links a:hover { background: rgba(232,184,75,.15); color: var(--gold); }
.nav-toggle { display: none; background: none; border: 2px solid var(--gold); border-radius: var(--radius); padding: .4rem .55rem; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--gold); transition: all .3s; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--blue-dark); padding: 1.5rem; overflow-y: auto; z-index: 999; gap: 0; }
  #nav.open .nav-links { display: flex; }
  .nav-links a { padding: .9rem 1rem; font-size: 1rem; }
  #nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  #nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 520px; display: flex; align-items: center;
  overflow: hidden; background: var(--blue-dark);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,20,50,.75) 0%, rgba(20,40,90,.55) 50%, rgba(10,20,50,.68) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2; max-width: var(--max-width);
  margin: 0 auto; padding: 4rem 1.5rem; width: 100%; text-align: center;
}
.hero-pre { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .75rem; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); color: var(--white); margin-bottom: 1.25rem; line-height: 1.2; }
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.75); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.7; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .65rem 1.5rem; border-radius: var(--radius); font-size: .925rem; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: all var(--transition); text-decoration: none; white-space: nowrap; }
.btn-gold { background: var(--gold); color: var(--blue-dark); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); color: var(--blue-dark); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: var(--white); }

/* ── TWO-COL / FACTS ─────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.col-text { font-size: 1rem; line-height: 1.75; }
.col-aside { display: flex; flex-direction: column; gap: 1rem; }
.fact-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.2rem; text-align: center; box-shadow: var(--shadow); border-top: 3px solid var(--gold); }
.fact-number { font-size: 2rem; font-weight: 800; color: var(--blue-dark); }
.fact-label { font-size: .82rem; color: var(--gray-mid); margin-top: .2rem; }

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .col-aside { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .fact-card { flex: 1; min-width: 130px; }
}

/* ── SEARCH ──────────────────────────────────────────────── */
.search-wrap { max-width: 400px; margin-bottom: 2rem; }
.search-wrap input { width: 100%; padding: .7rem 1.1rem; border: 2px solid var(--gray-light); background: var(--white); color: var(--text); border-radius: var(--radius); font-size: .95rem; transition: border-color var(--transition); }
.search-wrap input:focus { outline: none; border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(42,77,156,.1); }

/* ── REYCHE GRID ─────────────────────────────────────────── */
.reyche-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.reych-card {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-light);
  display: flex; flex-direction: column; transition: box-shadow var(--transition), border-color var(--transition);
}
.reych-card:hover { box-shadow: var(--shadow-hover); border-color: var(--blue-light); }
.reych-header { padding: 1.3rem 1.3rem .5rem; }
.reych-typ { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .5rem; border-radius: 99px; margin-bottom: .5rem; }
.reych-typ-reych { background: rgba(42,77,156,.1); color: var(--blue-light); }
.reych-typ-feldlager { background: rgba(76,168,120,.12); color: #3a8a5c; }
.reych-typ-colonie { background: rgba(232,184,75,.15); color: var(--gold-dark); }
.reych-header h3 { font-size: 1.3rem; margin-bottom: .15rem; color: var(--blue-dark); }
.reych-name { font-size: .88rem; color: var(--gray-mid); }
.reych-name em { color: var(--gold-dark); font-style: italic; }
.reych-body { padding: .5rem 1.3rem 1rem; flex: 1; }
.reych-desc { font-size: .88rem; color: var(--gray-mid); margin-bottom: 1rem; line-height: 1.6; }
.reych-details { display: flex; flex-direction: column; gap: .4rem; }
.reych-detail { font-size: .85rem; display: flex; gap: .5rem; align-items: flex-start; }
.rd-icon { flex-shrink: 0; width: 1.2em; text-align: center; }
.reych-detail a { color: var(--text); }
.reych-detail a:hover { color: var(--blue-light); }
.reych-footer { padding: .8rem 1.3rem 1.2rem; border-top: 1px solid var(--gray-light); }
.reych-footer a { font-size: .85rem; color: var(--blue-light); border: 1px solid var(--gray-light); padding: .3rem .8rem; border-radius: 99px; transition: all var(--transition); display: inline-block; }
.reych-footer a:hover { background: var(--blue-dark); color: var(--white); border-color: var(--blue-dark); }

@media (max-width: 500px) { .reyche-grid { grid-template-columns: 1fr; } }

/* ── MAP ─────────────────────────────────────────────────── */
.map-wrap { margin-top: 1.5rem; border: 1px solid var(--gray-light); border-radius: var(--radius-lg); overflow: hidden; }
.map-note { font-size: .8rem; color: var(--gray-mid); margin-top: .8rem; }
.map-marker .marker-dot {
  display: block; width: 14px; height: 14px; background: var(--blue-dark); border-radius: 50%;
  border: 3px solid var(--gold); box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

/* ── HISTORY ──────────────────────────────────────────────── */
.history-text { max-width: 750px; font-size: 1rem; line-height: 1.75; }

/* ── CONTACT FORM ────────────────────────────────────────── */
.contact-form { max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--gray-dark); margin-bottom: .3rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .65rem 1rem; border: 1px solid var(--gray-light); background: var(--white);
  color: var(--text); border-radius: var(--radius); font-size: .95rem; font-family: inherit; transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(42,77,156,.1); }
.form-group select { appearance: auto; }
.form-group textarea { min-height: 120px; resize: vertical; }
.checkbox-label { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; cursor: pointer; }
.checkbox-label input { width: auto; margin-top: .2rem; }
.msg { padding: 1rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: .95rem; }
.msg-ok { background: rgba(76,168,100,.1); color: #2a7a3a; border: 1px solid rgba(76,168,100,.25); }
.msg-err { background: rgba(200,60,60,.08); color: #c03030; border: 1px solid rgba(200,60,60,.2); }

@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--blue-dark); color: rgba(255,255,255,.65); padding: 2.5rem 0; text-align: center; font-size: .85rem; }
.footer p { color: rgba(255,255,255,.55); }
.footer-links { margin-top: .8rem; display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.55); }
.footer-links a:hover { color: var(--gold); }

/* ── LEAFLET OVERRIDES ───────────────────────────────────── */
.leaflet-popup-content-wrapper { background: var(--white); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow); }
.leaflet-popup-tip { background: var(--white); }
.leaflet-popup-content a { color: var(--blue-light); }
