/* =====================================================
   EV Thiersee – Frontend Styles
   Branding: Eisstock-Blau, Open Sans, clean & modern
   ===================================================== */

:root {
  --accent: #1f4e79;
  --accent-light: #2a6fb0;
  --accent-dark: #163d5c;
  --accent-pale: #e8f0f7;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --bg-dark: #fafbfc;
  --text: #1f2a37;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --transition: 0.2s ease;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============== HEADER ============== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 24px;
}
.logo img { height: 56px; width: auto; }

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}
.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  border-radius: 6px;
  transition: all var(--transition);
}
.main-nav a:hover {
  background: var(--accent-pale);
  color: var(--accent);
}
.main-nav a.active {
  background: var(--accent);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: space-around;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============== HERO ============== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1f4e79 0%, #2a6fb0 100%);
  color: #fff;
  padding: 100px 20px 90px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/images/template/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.15;
}
.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-content h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  margin: 0 0 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  margin: 0 0 24px;
  opacity: 0.95;
}
.hero-text {
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 32px;
  opacity: 0.92;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: #fff;
  color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  border-color: #fff;
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}
.btn-secondary {
  background: var(--accent);
  color: #fff;
}
.btn-secondary:hover {
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
}

/* ============== SECTIONS ============== */
.section {
  padding: 70px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-title {
  text-align: center;
  font-size: clamp(26px, 3.5vw, 36px);
  color: var(--accent);
  margin: 0 0 48px;
  font-weight: 700;
}
.section-more {
  text-align: center;
  margin-top: 36px;
}

/* ============== PAGE-HEADER ============== */
.page-header {
  background: linear-gradient(135deg, #1f4e79 0%, #2a6fb0 100%);
  color: #fff;
  padding: 70px 20px;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin: 0 0 8px;
}
.page-header p {
  font-size: 18px;
  margin: 0;
  opacity: 0.9;
}

/* ============== TERMINE ============== */
.termin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.termin-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--accent);
  transition: all var(--transition);
}
.termin-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.termin-bild {
  height: 180px;
  background: #ddd center/cover no-repeat;
  position: relative;
}
.termin-bild-placeholder {
  background: linear-gradient(135deg, #1f4e79 0%, #2a6fb0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: rgba(255, 255, 255, 0.7);
}
.termin-body {
  padding: 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.termin-countdown {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent-pale);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.termin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.meta-item {
  white-space: nowrap;
}
.termin-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  color: var(--accent);
  font-weight: 700;
}
.termin-card p {
  margin: 0 0 14px;
  color: #374151;
  font-size: 14.5px;
  line-height: 1.55;
}
.pdf-link {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff3e0;
  color: #b45309;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.pdf-link:hover {
  background: #fed7aa;
  text-decoration: none;
}

/* ============== NEWS ============== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.news-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.news-bild {
  display: block;
  height: 180px;
  background: linear-gradient(135deg, #dfe4e8, #b8c5d1) center/cover no-repeat;
}
.news-bild-placeholder {
  background: linear-gradient(135deg, #dfe4e8 0%, #b8c5d1 100%);
}
.news-body {
  padding: 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-datum {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 8px;
}
.news-card h3,
.news-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}
.news-card h2 { font-size: 22px; }
.news-card h3 a,
.news-card h2 a {
  color: var(--accent);
}
.news-card h3 a:hover,
.news-card h2 a:hover {
  color: var(--accent-light);
  text-decoration: none;
}
.news-card p {
  margin: 0 0 14px;
  color: #374151;
  font-size: 14.5px;
  line-height: 1.6;
  flex: 1;
}
.more-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
}

/* ============== NEWS DETAIL ============== */
.termin-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  background: var(--accent-pale);
  padding: 24px;
  border-radius: var(--radius);
  margin: 0 0 32px;
}
.meta-block {
  text-align: center;
}
.meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.meta-value {
  font-size: 17px;
  color: var(--accent);
  font-weight: 700;
}
.beitrag-hero-bild {
  height: 380px;
  background: var(--bg-alt) center/cover no-repeat;
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.beitrag-content {
  font-size: 17px;
  line-height: 1.7;
  color: #2d3748;
}
.beitrag-content img {
  border-radius: var(--radius);
  margin: 24px 0;
}
.beitrag-content h2,
.beitrag-content h3 {
  color: var(--accent);
  margin-top: 32px;
}
.beitrag-content p { margin: 0 0 18px; }
.lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 32px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
}
.pdf-download {
  margin: 32px 0;
  padding: 20px 24px;
  background: #fff3e0;
  border-radius: var(--radius);
}
.beitrag-galerie {
  margin: 40px 0;
}
.beitrag-galerie h3 {
  color: var(--accent);
  margin: 0 0 16px;
}
.back-link {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ============== GALERIE ============== */
.galerie-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.galerie-thumb {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
}
.galerie-thumb:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.galerie-bild {
  height: 200px;
  background: #ddd center/cover no-repeat;
  position: relative;
}
.galerie-bild-placeholder {
  background: linear-gradient(135deg, #1f4e79 0%, #2a6fb0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  font-weight: 600;
}
.galerie-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.galerie-thumb h4 {
  margin: 0;
  padding: 14px 18px;
  color: var(--accent);
  font-size: 16px;
}
.album {
  margin-bottom: 48px;
}
.album h2 {
  color: var(--accent);
  margin: 0 0 8px;
}
.album-desc {
  color: var(--text-muted);
  margin: 0 0 8px;
}
.album-datum {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 18px;
}
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.galerie-item {
  display: block;
  height: 180px;
  background: #ddd center/cover no-repeat;
  border-radius: 6px;
  transition: transform var(--transition);
  cursor: zoom-in;
}
.galerie-item:hover {
  transform: scale(1.03);
}

/* ============== KONTAKT ============== */
.kontakt-section {
  background: var(--bg-alt);
}
.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.kontakt-item {
  background: #fff;
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.kontakt-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.kontakt-value {
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}

/* ============== KONTAKT-PAGE ============== */
.kontakt-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.kontakt-list {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.kontakt-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.kontakt-row:last-child { border-bottom: none; }
.kontakt-row-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.kontakt-row-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
}

.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.form-field input,
.form-field textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--transition);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-success {
  padding: 24px;
  background: #d4edda;
  border-left: 4px solid #28a745;
  border-radius: 6px;
  color: #155724;
}
.form-error {
  padding: 12px 16px;
  background: #f8d7da;
  border-left: 4px solid #dc3545;
  border-radius: 6px;
  color: #721c24;
  margin-bottom: 16px;
}
.form-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 16px 0 0;
}

/* ============== VEREIN-PAGE ============== */
.prose h2 {
  color: var(--accent);
  margin: 32px 0 16px;
  font-size: 24px;
}
.prose p {
  margin: 0 0 16px;
  line-height: 1.7;
}
.vorstand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.vorstand-item {
  background: var(--accent-pale);
  padding: 20px;
  border-radius: var(--radius);
}
.vorstand-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}
.vorstand-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

/* ============== BADGES ============== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.badge-termin {
  background: #fff3e0;
  color: #b45309;
}
.badge-news {
  background: var(--accent-pale);
  color: var(--accent);
}

/* ============== FOOTER ============== */
.site-footer {
  background: #1a3a5c;
  color: #b8c5d1;
  padding: 50px 20px 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: #d4a017;
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
}
.footer-col p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 6px;
}
.footer-col a {
  color: #b8c5d1;
  font-size: 14px;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: #fff;
  text-decoration: none;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #2a4a6c;
  text-align: center;
  font-size: 13px;
}
.social-link {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-weight: 600;
  margin-top: 8px;
}
.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
}

/* ============== EMPTY STATES ============== */
.empty {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

/* ============== MOBILE ============== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul {
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
  }
  .main-nav a {
    display: block;
    padding: 12px 16px;
  }
  .site-header .container {
    flex-direction: row;
    gap: 12px;
  }
  .logo img { height: 44px; }
  .hero { padding: 70px 20px; }
  .section { padding: 50px 0; }
  .kontakt-block { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
