@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');

/* ============================= */
/*        Zentrale Variablen     */
/* ============================= */
:root {
  --font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, sans-serif;
  --font-size: 16px;

  --color-bg: #F5F7FA;
  --color-text: #1E1E1E;
  --color-text-nav: #F0F0F0;

  --color-primary: #1E1E1E;  
  --color-footer-bg: #2A2A2A;
  --color-nav-bg: #2A2A2A;
  --color-active: #ffffff;
  --color-light-gray: #DDDDDD;
  --color-green-accent: #6FB92B;
  --color-headline: #0078D4;
  --color-news-card-bg: #FFFFFF;
  --color-news-card-shadow: rgba(255, 255, 255, 0.05);
  --color-cta-bg: #0078D4;
  --color-cta-hover: #005A9E;
  --color-date: #888888;
  --color-block-bg: #FFFFFF;

  --active-icon: url('images/favicon.ico');
  --accent-color: #0077b6; /* Beispiel: kräftiges Blau */
}

/* ============================= */
/*           Global              */
/* ============================= */
h2 {
  font-size: 2em;
  color: var(--header-font);
  margin: 1.5em 0 0.8em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid var(--accent-color);
  font-weight: 600;
  line-height: 1.3;
}
body {
  font-family: var(--font-family);
  font-size: var(--font-size);
  background-color: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  padding-bottom: 80px; /* Platz für Consent-Banner */
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
/* ============================= */
/*         Werbebanner            */
/* ============================= */
.highlight {
  background-color: #fef8e7;
  border-left: 6px solid #e1b100;
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 12px;
}
.big-text {
  font-size: 1.5rem;
  color: #b03a00;
  font-weight: bold;
}
/* ============================= */
/*         Container             */
/* ============================= */
.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--color-light-gray);
  border-radius: 15px;
  color: white;
}

/* ============================= */
/*     Header & Navigation       */
/* ============================= */
header.main-header {
  background-color: var(--color-nav-bg);
  padding: 0.5em 1em;
  border-bottom: 1px solid #444;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.nav-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
}

.logo {
  height: 40px;
  margin-right: 1em;
  width: auto;
}

#nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

#nav-links li {
  margin: 0;
}

#nav-links a {
  padding: 0.4em 0.8em;
  border-radius: 0.4em;
  color: var(--color-text-nav);
  position: relative;
  display: inline-block;
  transition: color 0.3s;
}

#nav-links a:hover {
  color: var(--color-active);
}

#nav-links a.active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-active);
}

#nav-links a.active::before,
footer a.active::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: var(--active-icon);
  background-size: contain;
  background-repeat: no-repeat;
}

#home-icon {
  width: 24px;
  height: 24px;
  margin-right: 1em;
  background-image: url('images/favicon.ico');
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
  transition: transform 0.3s ease;
}

#home-icon:hover {
  transform: scale(1.2);
}

#nav-links li:first-child a {
  padding-left: 0;
}

/* ============================= */
/*           Sprache             */
/* ============================= */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.nav-right button {
  padding: 0.3em 0.8em;
  border: none;
  border-radius: 0.3em;
  background-color: var(--color-primary);
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

.nav-right button:hover {
  background-color: var(--color-cta-hover);
}

/* ============================= */
/*          Inhalt               */
/* ============================= */
main {
  padding: 6em 2em 3em;
}
.section {
  background-color: var(--color-block-bg);
  padding: 2em;
  border-radius: 10px;
  margin-bottom: 3em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.kontakt.container {
  background-color: var(--color-block-bg);
  padding: 2em;
  border-radius: 10px;
  margin-bottom: 3em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* Intro */
.intro {
  background-color: var(--color-block-bg);
  padding: 2em;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 2em;

  display: flex;
  align-items: center;
  gap: 2em;
}

.intro img {
  max-width: 40%;
  height: auto;
  border-radius: 10px;
}

.intro > div {
  flex: 1;
}

.intro h1, .intro h2 {
  color: var(--color-headline);
  margin-bottom: 0.5em;
}

.intro p {
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--color-text);
}

/* News */
.news-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-news-card-bg);
  box-shadow: 0 2px 5px var(--color-news-card-shadow);
  border-radius: 12px;
  padding: 1.5em;
  margin-bottom: 2em;
}
.text {
  flex: 1;
}
.news-image {
  max-width: 200px;
  margin-left: 20px;
}

.news-item {
  border-bottom: 1px solid var(--color-light-gray);
  padding-bottom: 1em;
  margin-bottom: 1em;
}

.news-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.news-item h3 {
  margin: 0;
  font-weight: 600;
  color: var(--color-primary);
}

.news-item p {
  margin: 0.3em 0 0;
  color: var(--color-text);
}

.news-date {
  font-size: 0.85rem;
  color: var(--color-date);
}

/* Partner */
.partner-info {
  background-color: var(--color-block-bg);
  padding: 2em;
  border-radius: 10px;
  margin-bottom: 3em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.partner-section h2 {
  color: var(--color-headline);
  margin-bottom: 1em;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  align-items: center;
}

.partner-logos img {
  max-height: 50px;
  width: auto;
  filter: grayscale(50%);
  transition: filter 0.3s ease;
}

.partner-logos img:hover {
  filter: none;
}
  .cta a {
      color: var(--header-font);
      font-weight: bold;
      text-decoration: none;
    }

    .cta a:hover {
      text-decoration: underline;
    }

/* ============================= */
/*       Hamburger Menü          */
/* ============================= */

/* Hamburger-Button zunächst verstecken (Desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
}

/* Hamburger-Linien */
.hamburger span {
  width: 24px;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 3px;
  transition: all 0.3s linear;
  position: relative;
}

/* Animation bei geöffnetem Menü */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================= */
/* Responsive Navigation         */
/* ============================= */

@media (max-width: 768px),
       (max-width: 1024px) and (max-height: 600px) {
  /* Hamburger Button sichtbar */
  .hamburger {
    display: flex;
  }

  /* Navigation (z. B. <div id="nav-links">) anpassen */
  #nav-links {
    position: fixed;
    top: 56px; /* Höhe der Navbar */
    left: 0;
    width: 100%;
    height: calc(100vh - 56px);
    background-color: var(--nav-background);
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding-top: 20px;
    gap: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 100;
    overflow-y: auto;
  }

  #nav-links.open {
    transform: translateX(0);
  }

  nav {
    position: relative;
  }

  nav a {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }
}
/* ============================= */
/*          Footer               */
/* ============================= */
footer {
  background-color: var(--color-footer-bg);
  color: var(--color-text-nav);
  padding: 1.5em 1em;
  text-align: center;
  font-size: 0.875rem;
  border-top: 1px solid #444;
}

footer a {
  color: var(--color-text-nav);
  text-decoration: none;
  margin: 0 0.5em;
  position: relative;
}

footer a:hover {
  color: var(--color-active);
}

footer a.active::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: var(--active-icon);
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 0.3em;
  vertical-align: middle;
}

/* ============================= */
/*        Consent Banner         */
/* ============================= */
#consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-primary);
  color: white;
  padding: 10px 15px;
  text-align: center;
  font-size: 13px;
  z-index: 110;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
  font-weight: 500;
  max-height: none;
  overflow: visible;
}

#consent-banner p {
  margin: 0;
  flex: 1 1 200px;
  color: white;
}

#consent-banner button {
  background-color: var(--color-green-accent);
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 13px;
  flex-shrink: 0;
}

#consent-banner button:hover {
  background-color: #5aa823;
}

@media (max-width: 480px) {
  #consent-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 12px;
  }

  #consent-banner p {
    margin-bottom: 8px;
  }

  #consent-banner button {
    width: 100%;
    text-align: center;
  }
}

/* ============================= */
/*          Bildgrößen           */
/* ============================= */
img {
  max-width: 100%;
  height: auto;
  max-height: 450px; /* verhindert zu große Bilder im Content */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.partner-logos img {
  max-height: 50px;
  width: auto;
}

.logo {
  height: 40px;
  width: auto;
}

#home-icon {
  width: 24px;
  height: 24px;
}

/* Falls du weitere Bildklassen hast, kannst du hier gezielt anpassen */
.hero {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--color-block-bg);
  color: var(--color-text);
}

.hero img {
  max-width: 600px;
  width: 100%;
  height: auto;
  margin-top: 20px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--color-ral-7016);
  border-radius: 15px;
  color: #1E1E1E;
}

.section {
  margin: 40px 0;
}

form input,
form textarea {
  width: 100%;
  max-width: 600px;
  padding: 10px;
  margin: 10px 0;
  box-sizing: border-box;
  background-color: var(--color-block-bg);
  color: var(--color-text);
  border: 1px solid var(--color-ral-7016);
  border-radius: 5px;
}

.btn {
  display: inline-block;
  background-color: var(--color-cta-bg);
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: var(--color-cta-hover);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .hero {
    padding: 20px 10px;
  }

  .hero img {
    max-width: 100%;
  }

  .btn {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .intro {
    flex-direction: column;
    gap: 1em;
  }

  .intro img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }
}
.intro .image-container2{
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  justify-content: center; /* Optional: zentriert die Bilder */
}

.intro .image-container2{
  max-width: 200px !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 8px; /* optional, für runde Ecken */
  object-fit: cover;  /* Bilder gut zuschneiden, falls nötig */
}
/* ============================= */
/*        Responsive Fixes       */
/* ============================= */

/* Einheitliche Schriftgröße für Listen */
ul li {
  font-size: 1rem;
  line-height: 1.6;
}

/* Für kleine Bildschirme optimieren */
@media (max-width: 768px) {
  body {
    font-size: 15px;
    line-height: 1.5;
  }

  .intro h1,
  .intro h2 {
    font-size: 1.5rem;
  }

  .intro p,
  .section p,
  .section li {
    font-size: 1rem;
    line-height: 1.6;
  }

  .intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .intro img {
    max-width: 100%;
    margin-bottom: 1em;
  }

  .section {
    padding: 1.5em;
  }
  .highlight {
    padding: 1.2rem;
    font-size: 0.95rem;
  }

  .highlight h2 {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .highlight .big-text {
    font-size: 1.2rem;
    text-align: center;
    margin: 1rem 0;
  }

  .highlight ul {
    padding-left: 1.2em;
  }

  .highlight ul li {
    margin-bottom: 0.8em;
    line-height: 1.4;
  }

  .highlight a.btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
    padding: 0.75rem;
    font-size: 1rem;
  }

  .highlight {
    padding: 1.5rem;
  }

  .big-text {
    font-size: 1.25rem;
  }

  .news-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-image {
    max-width: 100%;
    margin-left: 0;
    margin-top: 1em;
  }

  .partner-logos {
    flex-direction: column;
    gap: 1em;
  }

  .container {
    padding: 1em;
  }

  ul li {
    font-size: 1rem;
  }
}
ul.green-checks {
  list-style: none;
  padding-left: 1.2em;
}

ul.green-checks li::before {
  content: "✔";
  color: #44d62c; /* RAL 6018 */
  font-weight: bold;
  margin-right: 0.5em;
}
