/* ============================================================
   RoNK – Rosenheimer Netz für Komplexversorgung
   Stylesheet (Mobile-first, CSS3)
   ============================================================ */

/* ── Lokale Schriftart (offlinefähig, kein Google-Fonts-CDN nötig) ── */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-variable.woff2') format('woff2-variations'),
       url('../fonts/inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── CSS-Variablen ── */
:root {
  --bg-primary:   #1a2332;
  --bg-card:      #24303f;
  --text-primary: #f0f4f8;
  --text-muted:   #8a9bb0;
  --accent:       #2e86ab;
  --accent-gold:  #c9a84c;

  --nav-height:   70px;
  --radius:       10px;
  --transition:   0.25s ease;
  --shadow-card:  0 4px 20px rgba(0, 0, 0, 0.35);
}

/* ── Reset & Basis ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

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

ul { list-style: none; }

/* ── Hilfklassen ── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.gold-line {
  width: 60px;
  height: 3px;
  background: var(--accent-gold);
  margin-bottom: 1rem;
}

/* ── Navigation ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(26, 35, 50, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav-brand {
  display: flex;
  align-items: center;
  transition: transform var(--transition);
}

.nav-brand:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

/* Logo in den Farben der Seite, transparenter Hintergrund */
.logo-img {
  display: block;
  height: 56px;
  width: auto;
}

/* Navigationslinks (Desktop) */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-gold);
  text-decoration: none;
}

.nav-links a.active::after,
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger offen */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menü */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
    transform: translateY(-1rem);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links a { font-size: 1rem; }
}

/* ── Hero ── */
#hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 30% 50%, rgba(46, 134, 171, 0.15) 0%, transparent 60%),
              var(--bg-primary);
  padding: 4rem 0;
}

.hero-content {
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(46, 134, 171, 0.15);
  border: 1px solid rgba(46, 134, 171, 0.4);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-title span { color: var(--accent-gold); }

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #2474959f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 134, 171, 0.45);
  text-decoration: none;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(240, 244, 248, 0.3);
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ── Sektionen allgemein ── */
section { padding: 5rem 0; }

section:nth-child(even) { background: var(--bg-card); }

/* ── Über uns ── */
.ueber-text {
  max-width: 720px;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.werte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.wert-card {
  background: var(--bg-primary);
  border: 1px solid rgba(46, 134, 171, 0.18);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.wert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.wert-icon {
  width: 44px;
  height: 44px;
  background: rgba(46, 134, 171, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
}

.wert-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.wert-card p { font-size: 0.9rem; color: var(--text-muted); }

/* Vorstand */
.vorstand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.person-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.person-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* Echtes Foto im Kreis (statt Platzhalter) */
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Foto-Placeholder als grauer Kreis */
.avatar {
  overflow: hidden;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a4a5c, #2a3848);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-muted);
  border: 3px solid rgba(201, 168, 76, 0.3);
}

.person-card .name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.person-card .funktion {
  font-size: 0.83rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.person-card .details { font-size: 0.82rem; color: var(--text-muted); }

/* ── Mitglieder ── */
.mitglieder-intro {
  max-width: 680px;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.mitglieder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.mitglied-card {
  background: var(--bg-primary);
  border: 1px solid rgba(46, 134, 171, 0.18);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform var(--transition), box-shadow var(--transition);
}

.mitglied-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.mitglied-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(46, 134, 171, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-top: 0.1rem;
}

.mitglied-info .name {
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
}

.mitglied-info .fach {
  font-size: 0.82rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.mitglied-info .inst { font-size: 0.82rem; color: var(--text-muted); }

/* ── Mitmachen ── */
.mitmachen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 860px) {
  .mitmachen-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.mehrwert-liste {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.mehrwert-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.mehrwert-item .check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(46, 134, 171, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-top: 0.15rem;
}

.mehrwert-item p { font-size: 0.93rem; color: var(--text-muted); }
.mehrwert-item p strong { color: var(--text-primary); }

/* Kontaktformular */
.form-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid rgba(138, 155, 176, 0.25);
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group select { cursor: pointer; }

.form-group select option { background: var(--bg-card); }

.form-group textarea { resize: vertical; min-height: 110px; }

/* Datenschutz-Checkbox */
.form-check { margin-bottom: 1rem; }

.check-label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.check-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.check-label a { color: var(--accent); }

/* Erfolgsmeldung */
.form-success {
  display: none;
  background: rgba(46, 134, 171, 0.12);
  border: 1px solid rgba(46, 134, 171, 0.4);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 1rem;
  align-items: center;
  gap: 0.6rem;
}

.form-success.show { display: flex; }

/* ── Footer ── */
footer {
  background: #111b27;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col .footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.4rem;
}

.footer-col p,
.footer-col address {
  font-size: 0.87rem;
  color: var(--text-muted);
  font-style: normal;
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
  color: var(--text-primary);
}

.footer-col ul li + li { margin-top: 0.5rem; }

.footer-col ul li a {
  font-size: 0.87rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent-gold);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(138, 155, 176, 0.12);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Unterseiten (Impressum / Datenschutz) ── */
.page-hero {
  padding: 4rem 0 2.5rem;
  background: radial-gradient(ellipse at 70% 50%, rgba(46, 134, 171, 0.1) 0%, transparent 60%),
              var(--bg-primary);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
}

.page-hero p {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.page-content {
  padding: 3.5rem 0 5rem;
  max-width: 820px;
}

.page-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.6rem;
  color: var(--accent-gold);
}

.page-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.4rem 0 0.4rem;
}

.page-content p,
.page-content li {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.page-content ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
}

.page-content a { color: var(--accent); }

/* ── Responsive Feintuning ── */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
  .form-card { padding: 1.25rem; }
}

/* ══════════════════════════════════════════════════
   VIDEO-MODAL
══════════════════════════════════════════════════ */

.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 16, 26, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.video-modal {
  position: relative;
  width: 100%;
  max-width: 860px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.video-modal video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.video-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  background: rgba(10, 16, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background var(--transition);
}

.video-close:hover { background: rgba(201, 168, 76, 0.4); }

/* ── Video-Vorschau im Hero ── */
.video-thumb {
  display: block;
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-top: 2rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.25);
  cursor: pointer;
  background: #000;
  transition: transform var(--transition), box-shadow var(--transition);
}

.video-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.video-thumb-preview {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.video-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(10, 16, 26, 0.45);
  transition: background var(--transition);
}

.video-thumb:hover .video-thumb-overlay {
  background: rgba(10, 16, 26, 0.3);
}

.video-play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(46, 134, 171, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform var(--transition), background var(--transition);
  padding-left: 4px; /* optische Zentrierung des Play-Icons */
}

.video-thumb:hover .video-play-btn {
  transform: scale(1.1);
  background: var(--accent);
}

.video-thumb-overlay span {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(240, 244, 248, 0.9);
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* ── Aktuelles (Newsticker) ── */
.news-liste {
  list-style: none;
  position: relative;
  max-width: 860px;
  padding-left: 1.75rem;
}

/* Senkrechte Zeitleiste */
.news-liste::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(var(--accent-gold), rgba(201, 168, 76, 0.1));
}

.news-item { position: relative; }
.news-item + .news-item { margin-top: 2rem; }

/* Punkt auf der Zeitleiste */
.news-item::before {
  content: '';
  position: absolute;
  left: calc(-1.75rem + 1px);
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.2);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.news-meta time {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.03em;
}

.news-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(46, 134, 171, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.news-card {
  background: var(--bg-primary);
  border: 1px solid rgba(46, 134, 171, 0.18);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.news-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-card p { font-size: 0.92rem; color: var(--text-muted); }
.news-card p + p { margin-top: 0.6rem; }

.news-quelle { font-size: 0.8rem !important; font-style: italic; }

.news-bild {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1.1rem;
}

@media (min-width: 700px) {
  .news-card--bild {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
  }
  .news-card--bild .news-bild { margin-bottom: 0; }
}
