/* ==========================================================================
   CSS-Variablen / Globale Design-Tokens (:root)
   ================================================================---------- */
:root {
  --accent-color: #09a530;       /* Haupt-Akzentfarbe */
  --anim-color: var(--accent-color); /* Farbe für Hintergrund-Animationen */
  --anim-opacity: 0.60;          /* Transparenz/Deckkraft der Animation */
  --active-animation: "random";  /* Steuerung für den Animationsmodus */
  --text-color: #333333;         /* Haupttextfarbe (Dunkelgrau) */
  --text-color-light: #777777;   /* Sekundäre, hellere Textfarbe für Fließtext */
  --text-color-muted: #999999;   /* Abgedunkelte Textfarbe für Fußnoten/Copyright */
  --bg-color: #ffffff;           /* Allgemeine Hintergrundfarbe (Weiß) */
  --bg-light: #f5f5f5;           /* Heller Hintergrund für Container/Elemente */
  --border-color: #e0e0e0;       /* Standard-Rahmenfarbe für Linien und Inputs */
}

/* ==========================================================================
   Globaler Reset & Basis-Layout
   ================================================================---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none !important;
  box-shadow: none !important;
}

html, body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  font-weight: 300;
  display: flex;
  justify-content: center;
}

/* Haupt-Box-Container, der die gesamte Seite zentriert und begrenzt */
.box-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  align-items: center;
  padding: 0 36px;
}

/* ==========================================================================
   Hintergrund-Animation (Canvas)
   ================================================================---------- */
#network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: var(--bg-color);
  opacity: var(--anim-opacity);
  pointer-events: none; /* Klicks gehen durch das Canvas hindurch */
}

/* ==========================================================================
   Logo-Definitionen
   ================================================================---------- */
.logo-svg {
  display: block;
  width: 150px;
  height: auto;
}

.logo-svg--main {
  width: 100% !important;
  max-width: 90vw !important;
  height: auto !important;
}

/* ==========================================================================
   Header & Navigation
   ================================================================---------- */
header {
  position: relative;
  z-index: 100;
  width: 100%;
  padding: 40px 0 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  flex-shrink: 0;
}

.header-logo-unit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  line-height: 1;
  position: relative;
  z-index: 202;
}

.header-right {
  position: relative;
  display: flex;
  align-items: center;
}

.burger-menu {
  display: none !important; /* Standardmäßig auf Desktop ausgeblendet */
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  flex-direction: row; 
  gap: 32px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-menu a {
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  font-family: inherit;
}

.nav-menu a:hover,
.nav-menu a.active-link {
  color: var(--accent-color);
}

.mobile-nav-footer {
  display: none;
}

/* ==========================================================================
   Inhaltsbereich (Content & Boxen)
   ================================================================---------- */
.content-overlay {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  width: 100%;
}

.logo-brand-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* Statische Inhaltsbox (z.B. Impressum, Datenschutz, Kontakt) */
.static-content {
  position: relative;
  z-index: 10;
  width: 100%; 
  max-width: 1200px; 
  margin: 0 auto 20px auto; 
  padding: 40px 60px; 
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

.static-content > form,
.static-content > p:not(.intro-text) {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.static-content h2 {
  color: var(--accent-color);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 0;
  text-align: center; 
}

/* Grafisches Symbol / Trenner unter Überschriften */
.page-symbol {
  display: flex;
  justify-content: center;
  margin-top: 25px; 
  margin-bottom: 25px; 
}

.page-symbol svg {
  width: 130px;
  height: auto;
  color: var(--accent-color);
}

.page-symbol line {
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.35;
}

.page-symbol circle {
  fill: currentColor;
}

.static-content .intro-text {
  text-align: center;
  margin-bottom: 30px; 
}

.static-content h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-color);
  margin: 32px auto 12px auto;
  max-width: 760px;
}

.static-content p {
  font-size: 15px;
  color: var(--text-color-light);
  margin-bottom: 16px;
}

/* ==========================================================================
   Formulare & Buttons
   ================================================================---------- */
.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: var(--bg-color);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  border-radius: 4px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary:hover {
  background-color: var(--accent-color);
  color: #ffffff;
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
  background: var(--bg-color);
  transition: border-color 0.2s ease;
}

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

.form-group textarea {
  resize: vertical;
}

/* ==========================================================================
   Footer
   ================================================================---------- */
footer {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 20px 0 20px 0; 
  background: transparent;
  flex-shrink: 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.copyright {
  font-size: 12px;
  color: var(--text-color-muted);
  margin: 0;
  font-weight: 300;
}

/* Animation-Umschalt-Button im Footer - AKZENTFARBE */
.anim-toggle-btn {
  background: transparent;
  border: none;
  color: var(--accent-color);
  font-size: 11px;
  font-weight: 300;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, opacity 0.2s ease;
  padding: 4px 8px;
  border-radius: 4px;
}

.anim-toggle-btn:hover {
  color: var(--accent-color);
  opacity: 0.8;
}

.anim-icon-svg {
  width: 12px;
  height: 12px;
  transition: transform 0.4s ease;
}

.anim-toggle-btn:hover .anim-icon-svg {
  transform: rotate(180deg);
  color: var(--accent-color);
}

/* ==========================================================================
   Responsive Design / Mobile Ansicht (Bildschirme bis 600px Breite)
   ================================================================---------- */
@media (max-width: 600px) {
  .box-container {
    padding: 0 12px; 
    max-width: 100%;
  }

  header {
    padding: 15px 0 8px 0;
  }

  footer {
    padding: 10px 0 12px 0;
  }

  .content-overlay {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 5px 0;
  }

  .static-content {
    width: 100%; 
    max-width: 380px; 
    flex: 1;             
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    padding: 16px 14px; 
    margin: 0 auto 8px auto;
    border-radius: 12px;
  }

  .logo-svg {
    width: 100px;
  }

  .logo-svg--main {
    max-width: 400px !important;
  }

  .page-symbol {
    margin-top: 5px;
    margin-bottom: 5px;
  }

  .page-symbol svg {
    width: 80px;         
    height: auto;
  }

  .static-content .intro-text {
    margin-bottom: 12px;
    font-size: 12px;
    max-width: 100%;
  }

  #contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .form-group {
    display: flex;
    align-items: flex-start; 
    gap: 10px;
    margin-bottom: 8px;
    width: 100%;
  }

  .form-group label {
    width: 65px;         
    white-space: nowrap; 
    margin-bottom: 0;
    padding-top: 6px;    
    text-align: left;    
    font-size: 12px;
  }

  .form-group input,
  .form-group textarea {
    flex: 1;             
    padding: 6px 10px;
    font-size: 13px;
  }

  .form-group:has(#nachricht), 
  .form-group:has(textarea) {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    margin-bottom: 8px;
  }

  .form-group:has(#nachricht) textarea,
  .form-group:has(textarea) textarea {
    flex: 1;
    height: 100% !important;
    min-height: 120px;
    resize: none;
  }

  .btn-primary {
    padding: 6px 20px;   
    font-size: 13px;
    margin-top: auto;
  }

  .nav-menu {
    display: none !important;
  }

  .burger-menu {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 202;
    text-decoration: none;
    border: none;
  }

  .burger-menu span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.2s ease;
    transform-origin: center;
  }

  .burger-menu.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background-color: var(--accent-color);
  }
  .burger-menu.open span:nth-child(2) {
    opacity: 0;
  }
  .burger-menu.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background-color: var(--accent-color);
  }
}

/* ==========================================================================
   Unabhängige Definitionen für Header-Logo und Hauptlogo
   ================================================================---------- */
.header-logo-unit .logo-svg {
  width: 150px !important;
  max-width: 150px !important;
  height: auto !important;
}

.logo-brand-unit .logo-svg--main {
  width: 100% !important;
  max-width: 500px !important;
  height: auto !important;
}

.logo-brand-unit svg.logo-svg {
  width: 500px !important;
  max-width: 100% !important;
  height: auto !important;
}
