/* =======================================
   ZIELONY - Frühlings-Layout (Version 2.4)
   ======================================= */

/* -------- Farbdefinitionen -------- */
:root {
  --green-main: rgb(0, 170, 0); /* frisches Frühlingsgrün */
  --green-heading: rgb(0, 170, 0); /* dunkleres Frühlingsgrün */
  --blue-accent: rgb(0, 100, 255); /* kräftiges Himmelsblau */
  --yellow-sun: #ffd60a; /* sonniges Gelb */
  --light-sun: rgba(255, 210, 10, 0.9); /* leichtes Gelb */
  --green-light: #e0ffe0; /* zarte Hintergrundfarbe */
  --green-background: #e8ffe5;
  --black: rgb(0, 0, 0);
}

/* -------- Grundlegendes Styling -------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--green-background);
/*
  color: #222;
*/
  margin: 3rem;
}

.page-container {
  display: flex;
  flex-wrap: wrap;
  min-height: 90vh;
  border: 3px solid var(--green-main);
  border-radius: 12px;
  overflow: hidden;
  color: var(--black);
}

/* -------- Sidebar / Navigation -------- */
.sidebar {
  flex: 1 1 200px;
  max-width: 20%;
  background-color: var(--green-main);
  color: var(--blue-accent);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 1rem;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.sidebar .logo {
  width: 100%;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--light-sun);
  padding-bottom: 0.5rem;
  border-radius: 6px;
  height: auto;
  /* Zentrierung */
  display: flex;
  justify-content: center; /* Horizontal zentrieren */
  align-items: center; /* Vertikal zentrieren */
}

/*
.sidebar .logo svg {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100px;
}
*/

.nav-links {
  list-style: none;
  width: 100%;
  color: var(--black);
}

.nav-links li {
  border-bottom: 1px solid var(--light-sun);
  color: var(--black);
}

.nav-links a {
  display: block;
  text-decoration: none;
  color: #000;
  padding: 0.75rem;
  font-weight: bold;
  border-radius: 6px;
  color: var(--black);
}

/* Hover- und Aktivzustand getrennt */
.nav-links a:hover {
  background-color: rgba(0, 100, 255, 0.2);
  color: var(--black);
}

/* 👇 Neues aktives Design */
.nav-links a.active {
  background-color: rgba(0, 100, 255, 0.2);
  color: var(--blue-accent);
  border-left: 5px solid var(--yellow-sun);
  border-radius: 8px;
  color: var(--black);
}

/* -------- Hauptinhalt -------- */
.main-content {
  flex: 4 1 600px;
  padding: 2rem;
  background-color: var(--green-background);
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.main-header h1 {
  color: var(--green-heading);
  margin-bottom: 1rem;
  border-bottom: 4px solid var(--yellow-sun);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

/* -------- Intro-Bereich -------- */
.intro-text {
  background-color: var(--green-light);
  border-left: 5px solid var(--blue-accent);
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 8px;
}

.intro-text p {
  line-height: 1.6;
  font-weight: bold;
}

.intro-text a {
  text-decoration: underline;
  font-style: italic;
  padding: 0.5rem;
}

/* -------- Body-Bereich -------- */

.body-area h2 {
  color: var(--blue-accent);
  margin-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 0.25rem;
}

.body-area p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.body-area ul,
.body-area ol {
  margin: 1rem 0 1rem 2rem;
  line-height: 1.6;
}

.body-area li {
  margin-bottom: 0.5rem;
}

.body-area form {
  /*
	max-width: 600px;
*/
  margin: 40px auto;
}

.body-area input,
.body-area textarea {
  /*
    width: 100%;
*/
  padding: 6px;
  margin-top: 5px;
}

.body-area label {
  display: block;
  margin-top: 15px;
}

/* -------- Footer -------- */
.footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: var(--green-light);
  color: #004b23;
  padding: 1.5rem 0.5rem 0.5rem 0.5rem;
  flex-wrap: wrap;
  border-radius: 8px;
}

.footer a {
  color: #004b23;
  text-decoration: none;
  font-weight: bold;
}

/* -------- Email Form -------- */

.hidden {
  display: none;
}

label {
  display: block;
  margin-top: 15px;
}

input,
textarea {
  width: 100%;
  padding: 6px;
  margin-top: 5px;
}

/* -------- Description List -------- */

.tech-term dl {
  max-width: 700px;
  margin: auto;
  padding: 25px;
  border-radius: 8px;
}

.tech-term dt {
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 20px;
}

.tech-term dd {
  margin-left: 0;
  margin-bottom: 10px;
}

.tech-term dt:first-of-type {
  margin-top: 0;
}

/* -------- Pricing table -------- */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 30px 0;
}

.responsive-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.header-row-primary th {
  background-color: #1f3c88;
  color: #ffffff;
  padding: 8px;
  font-size: 1.2rem;
  text-align: center;
  font-weight: 600;
}

.header-row-secondary th {
  background-color: #1f3c88;
  color: #ffffff;
  padding: 8px;
  text-align: left;
  font-weight: 600;
}

.responsive-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #ddd;
}

.responsive-table tr:hover {
  background-color: #f5f7fa;
}

.table-note td {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  margin-top: 0px;
  margin-bottom: 2rem;
  padding: 10px 12px;
  border-bottom: none;
}

/* -------- Diverse -------- */

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.responsive-image {
  max-width: 400px;
  height: auto;
  display: block;
}

/* -------- Responsive Design -------- */

@media (max-width: 1023.98px) {
  .page-container {
    flex-direction: column;
  }

  .sidebar {
    flex-direction: row;
    max-width: 100%;
    flex: 0 1 100%;
    max-height: 80px;
    justify-content: space-evenly;
    align-items: center;
    border-radius: 12px 12px 0 0;
    padding: 0.25rem;
  }

  .sidebar .logo {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-links a {
    padding: 0.4rem 0.6rem;
    font-size: 0.95rem;
  }

  /* 👇 etwas sattere Farbe, damit "active" gut sichtbar bleibt */
  .nav-links a.active {
    background-color: rgba(0, 100, 255, 0.25);
    color: #003000;
    font-weight: bold;
  }
}

/* Hamburger-Menü-Button – nur visuell */
.menu-toggle {
  display: none; /* Standardmäßig versteckt */
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #000;
  cursor: default; /* Kein Klick */
  padding: 0.5rem;
  margin-left: auto;
}

/* Dropdown-Menü auf sehr kleinen Bildschirmen */
@media (max-width: 851px) {
  body {
    margin: 0.5cm;
  }

  .main-content {
    margin-top: 1.5rem;
    padding: 0.5rem;
  }

  .footer {
    flex-direction: column;
    gap: 0.25rem;
  }
  .sidebar {
    flex-direction: column;
    max-width: 100%;
    flex: 0 1 100%;
    max-height: none;
    justify-content: flex-start;
    border-radius: 12px 12px 0 0;
    padding: 0.5rem;
  }

  .sidebar .logo {
    display: block;
    margin-bottom: 0.5rem;
  }

  .menu-toggle {
    display: block; /* Zeige Hamburger-Menü-Icon */
  }

  .nav-links {
    display: flex; /* Automatisch geöffnet */
    flex-direction: column;
    width: 100%;
    margin-top: 0.5rem;
    gap: 0.25rem;
    color: var(--black);
  }

  .nav-links li {
    border-bottom: 1px solid var(--light-sun);
    width: 100%;
    color: var(--black);
  }

  .nav-links a {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--black);
  }

  .nav-links a.active {
    background-color: rgba(0, 100, 255, 0.25);
    color: #003000;
    font-weight: bold;
  }

  .table-wrapper {
    margin: 10px 0;
  }

  .responsive-table th {
    padding: 4px;
  }

  .responsive-table td {
    padding: 5px 4px;
  }

  .responsive-image {
    max-width: 300px;
    height: auto;
    display: block;
  }
}
