:root {
  /* Grundfarben (Windsor Green inspiriert) */
  --bg: #0a1a14;               /* Haupt-Hintergrund – tiefes, weiches Grün */
  --bg-alt: #11241d;           /* Zweiter Hintergrund – etwas heller */

  --card-bg: #162c24;          /* Kartenhintergrund – grünes Anthrazit */
  
  /* Akzentfarben (gold + hellgrün) */
  --accent: #6ee7b7;           /* Mint- / Jadegrün für leichte Akzente */
  --accent-soft: rgba(110, 231, 183, 0.18);
  --accent-strong: #34d399;    /* Stärkeres Jadegrün */
  --accent-warm: #e6c27a;      /* Gold für Highlights, Logos etc. */

  /* Textfarben */
  --text: #ecfdf5;             /* Sehr helles mintweiß */
  --text-muted: #a7b4af;       /* Graugrün */

  /* Rahmen / Schatten */
  --border-subtle: rgba(110, 231, 183, 0.25);
  --shadow-soft: 0 18px 45px rgba(5, 15, 10, 0.6);
  --shadow-subtle: 0 10px 30px rgba(5, 15, 10, 0.5);

  /* Sonstige */
  --radius-lg: 16px;
  --radius-xl: 24px;
  --nav-height: 64px;
  --max-width: 1120px;
}

/* Reset / Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #1c332b 0, #0a1a14 45%, #08140f 100%);
  min-height: 100vh;
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  padding: 5rem 0;
  background: radial-gradient(
    circle at top,
    var(--bg-alt) 0,
    var(--bg) 45%,
    #050f0b 100%
  );
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

/* Header / Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.75), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #38bdf8, #0f172a);
  color: #e5e7eb;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.main-nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.25rem 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent-strong), #f97316);
  transition: width 0.2s ease-out;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  color: var(--text);
  font-size: 1.5rem;
}

/* Hero */

.hero {
  padding: 5.5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text {
  max-width: 34rem;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent-strong);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.3rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.hero h1 span {
  background: linear-gradient(to right, var(--accent-strong), var(--accent-warm));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out, border-color 0.15s ease-out,
    color 0.15s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: radial-gradient(circle at 0 0, #38bdf8, #0f172a);
  color: #e5e7eb;
  box-shadow: 0 14px 30px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.45);
}

.btn-ghost {
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* Hero card */

.hero-card {
  background: radial-gradient(circle at top, #111827, #020617);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
}

.hero-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.status-ok {
  background: rgba(22, 163, 74, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #bbf7d0;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.hero-list li + li {
  margin-top: 0.3rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.18);
  border: 1px solid rgba(129, 140, 248, 0.6);
  margin-left: 0.3rem;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Cards / Grid / Lists */

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: linear-gradient(145deg, rgba(22, 44, 36, 0.96), rgba(18, 36, 29, 0.96));
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.data-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.data-list li + li {
  margin-top: 0.3rem;
}

/* Map placeholder */

.map-placeholder {
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(148, 163, 184, 0.7);
  padding: 1.8rem 1.6rem;
  text-align: center;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.9));
  font-size: 0.9rem;
}

.map-note {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

/* Timeline */

.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(148, 163, 184, 0.8), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 2rem;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, var(--accent-strong), #0f172a);
  border: 2px solid rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.8);
}

.timeline-content h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.timeline-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Kontaktformular */

.contact-form {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem 1.2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}

.form-row label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-row input,
.form-row textarea {
  background: #020617;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  padding: 0.55rem 0.9rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out;
}

.form-row textarea {
  border-radius: 0.9rem;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
  background: #020617;
}

.form-hint {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-form button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.4rem 0 1.6rem;
  margin-top: 2rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), #020617);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-strong);
}

/* Responsive */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr);
  }

  .hero-card {
    order: -1;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    inset: var(--nav-height) 0 auto 0;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    flex-direction: column;
    padding: 0.75rem 1.5rem 1rem;
    gap: 0.7rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease-out, opacity 0.18s ease-out;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 4.5rem;
  }

  .hero-card {
    padding: 1.4rem 1.3rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Karte */

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-subtle);
  min-height: 260px;
  background: var(--bg-alt);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-large {
  width: 100%;
  height: 420px;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-subtle);
}

.map-large iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.text-below-map {
  margin-top: 2rem;
}

/* News-Blog Layout */

.news-layout {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.news-post {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.98));
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.news-date {
  opacity: 0.9;
}

.news-tag {
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.6);
  background: rgba(56, 189, 248, 0.12);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.news-post h3 {
  margin-top: 0.15rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.news-post p {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: justify;
}

/* Container für die Vorschaubilder im News-Artikel */

.news-media {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Bild-Button für Preview */

.news-image {
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex: 0 0 150px;
}

/* Vorschaubilder selbst */

.news-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scale(1.0);
  transition: transform 0.2s ease-out, filter 0.2s ease-out;
}

.news-image:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.news-media-caption {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: left !important;
}

/* Bild-Modal / Lightbox */

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out;
}

.image-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
}

.image-modal-dialog {
  position: relative;
  max-width: 960px;
  width: calc(100% - 2rem);
  max-height: calc(100% - 4rem);
  background: #020617;
  border-radius: var(--radius-xl);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.image-modal-dialog img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
  border-radius: 0.75rem;
}

.image-modal-caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.image-modal-close {
  position: absolute;
  top: 0.4rem;
  right: 0.7rem;
  border: none;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.image-modal-close:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .image-modal-dialog {
    padding: 0.75rem;
  }

  .image-modal-dialog img {
    max-height: calc(100vh - 6rem);
  }
}

/* =========================================================
   Generisches Modal (z.B. Kontakt-Erfolgsmodal)
   ========================================================= */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  justify-content: center;
  align-items: center;
  font-family: inherit;
}

.modal.is-visible {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.modal-dialog {
  position: relative;
  max-width: 420px;
  width: 90%;
  background: #ffffff;
  color: #111111;
  padding: 1.75rem 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 1;
  text-align: center;
}

.modal-dialog h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.modal-dialog p {
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

/* =========================================================
   Erfolgs-Modal (#successModal) – alles klar und ohne Effekte
   ========================================================= */

#successModal {
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
}

#successModal .modal-backdrop {
  background: rgba(0, 0, 0, 0.55) !important;
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
}

#successModal .modal-dialog {
  background: #ffffff !important;
  color: #111111 !important;
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
  text-shadow: none !important;
}

#successModal .modal-dialog * {
  color: #111111 !important;
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
  text-shadow: none !important;
}

.footer-link-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--text-muted);
  cursor: pointer;
}

.footer-link-button:hover {
  color: var(--accent-strong);
}

.modal-dialog.modal-dialog-scroll {
  max-width: 640px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  text-align: left;
  font-size: 0.9rem;
}

.modal-body h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

/* Absatztexte im Datenschutz-Modal im Blocksatz */
.modal-body p {
  margin: 0 0 0.6rem;
  text-align: justify;
}

/* Listen können linksbündig bleiben */
.modal-body ul {
  margin: 0 0 0.6rem 1.2rem;
}
