:root {
  --color-bg: #1f2937;
  --color-bg-alt: #111827;
  --color-bg-hero: #1e293e;
  --color-bg-accent1: #334155;
  --color-text: #f9fafb;
  --color-accent: #fbbf24;
  --color-accent-hover: #f59e0b;
}

/* Abschnittsfarben */
.section-alt-1 {
  background-color: var(--color-bg-accent1);
}

.section-alt-2 {
  background-color: var(--color-bg-hero);
}


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


.container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 10px 20px;
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--color-accent);
  color: var(--color-bg-alt);
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  z-index: 1001;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s;
}



/* Header */
header {
  background-color: var(--color-bg-alt);
  color: white;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s;
}

.logo img {
  height: 70px;
  display: block;
  margin-bottom: 4px;
}

.slogan {
  color: var(--color-accent);
  font-size: 0.9em;
  text-align: center;
  font-weight: 600;
  margin-top: 4px;
}

/* Navigation */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  justify-content: flex-end;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: var(--color-accent);
}


nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Hero Section */
.hero {
  background-color: var(--color-bg-hero);
  color: var(--color-text);
  text-align: center;
  padding: 40px 20px;
}



.hero-logo {
  width: 280px;
  margin: 0 auto 20px; /* auto links/rechts zentriert das Element */
  display: block;      /* nötig, damit margin auto wirkt */
}


.hero h1 {
  font-size: 3em;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

/* Button */
.button {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-bg-alt);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.button:hover {
  background-color: var(--color-accent-hover);
}


/* Sections */
section {
  padding: 40px 0;
  background-color: var(--color-bg);
  transition: background-color 0.3s;
}

.section-grey {
  background-color: var(--color-bg-hero);
}

.section-alt-1,
.section-alt-2 {
  padding: 40px 0;
}


h2 {
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 40px;
  color: var(--color-text);
  font-weight: 800;
}


/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  text-align: center;
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}



.grid-2-offset {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.grid-2-offset .feature {
  width: 30%; /* oder 250px für feste Breite */
}


.feature {
  background-color: #374151;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--color-text);
  transition: background-color 0.3s;
}


/* SVG icon style */
.icon {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  fill: var(--color-accent);
  display: inline-block;
}


/* Footer */
footer {
  background-color: var(--color-bg-alt);
  color: var(--color-text);
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  transition: background-color 0.3s;
}

footer a {
  color: white;
  text-decoration: underline;
}
footer a:hover {
  color: var(--color-accent);
}


.header-logo {
  height: 60px;
  border-radius: 50%;
  margin-right: 10px;
}


/* Responsive Tweaks */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    align-items: flex-end;
  }
  .hero h1 {
    font-size: 2em;
  }
  .hero p {
    font-size: 1em;
  }
}

html {
  scroll-behavior: smooth;
}

/* verhindert, dass Sticky-Header Inhalte überdeckt */
[id] {
  scroll-margin-top: 100px;
}

.container.text-left {
  text-align: left;
}

p a {
  color: white;
  text-decoration: underline; /* optional */
}

/* Burger-Button */
.burger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8em;
  cursor: pointer;
  margin-left: auto;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .grid-2-offset {
    flex-direction: column;
    align-items: center;
  }

  .grid-2-offset .feature {
     width: 85%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    background-color: var(--color-bg-alt);
    padding: 20px;
    width: 100%;
  }

  .nav-links.active {
    display: flex;
  }
}

