:root {
  --brand-blue: #272991;
  --light-blue: #F7F8FF;
  --menu-blue: #3B3EB0;
  --text-blue: #3A42A3;
  --text: #000000;
  --text-light: #FFFFFF;
  --box-blue: #E5E7FA;
  --border-blue: #A6A9E9;
}

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

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--brand-blue);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  display: flex;
  padding: 1rem 2rem;
  position: relative;
}

.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;
  gap: 1; /* space between language toggle and hamburger/nav */
}

.header-center {
  justify-content: center;
}

.header-left {
  justify-content: flex-start;
}

.header-right {
  justify-content: flex-end;
}

.logo {
  height: 2.7rem;
  width: auto;
  max-width: 80%;
  object-fit: contain;
}

/* Hide the checkbox inputs used for toggles */
.toggle-checkbox {
  display: none;
}

/* Language toggle container */
.lang-hamburger {
  position: relative;
  margin-right: 10px;
  display: inline-block;
}

/* Language toggle button */
.lang-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
}

/* Language dropdown */
.lang-links {
  list-style: none;
  display: none;
  position: absolute;
  top: 100%;  /* just below the button */
  right: 0;
  background-color: var(--menu-blue);
  padding: 0.5rem 0;
  border-radius: 0.5rem;
  box-shadow: 0 0.3rem 0.6rem rgba(0,0,0,0.2);
  z-index: 1000;
  flex-direction: column;
  min-width: 60px;
}

/* Language dropdown shown when checkbox checked */
#lang-toggle-cb:checked ~ .lang-links {
  display: block;
}

.lang-links li {
  text-align: center;
  margin: 0;
}

.lang-links li a {
  display: block;
  padding: 0.2rem 0;
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.2rem;
}

.lang-links li a:hover {
  background-color: var(--menu-blue);
}

.lang-links li a img {
  width: 1.5rem;   /* adjust as needed */
  height: auto;     /* keeps aspect ratio */
  display: block;   /* removes inline spacing */
  margin: 0 auto;   /* center inside the li if needed */
}

.navbar {
  position: relative;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

/* Nav links shown on desktop by default, toggled via checkbox on mobile */
#menu-toggle-cb:checked ~ .nav-links {
  display: flex;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  padding: 0.2rem 0; /* tighter vertical padding */
  font-size: 0.8rem;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* --- Hamburger button --- */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
}

body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--light-blue);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

footer {
  background: var(--brand-blue);
  color: var(--text-light);
  text-align: center;
  padding: 1rem;
}

.hero {
  text-align: center;
  padding: 3rem 1rem;
}

.hero h2 {
  color: var(--text-blue);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.hero p {
  max-width: 700px;
  margin: 0.5rem auto;
  font-size: 1.1rem;
  line-height: 1.7;
}

.teaser {
  background: var(--box-blue);
  padding: 2rem;
  border: 1px solid var(--border-blue);
  border-radius: 8px;
  max-width: 800px;
  margin: 2rem auto;
}

.teaser h3 {
  color: var(--text-blue);
  margin-bottom: 1rem;
}

.teaser p {
  margin-bottom: 0.5rem;
}

.teaser ul {
  list-style-type: disc;
  margin-left: 2rem;
}

.cta {
  text-align: center;
  margin: 3rem 0;
  font-weight: bold;
}

.cta a {
  color: var(--text-blue);
  text-decoration: none;
}

.cta a:hover {
  text-decoration: underline;
}

.about-intro, .about-values, .about-approach {
  max-width: 800px;
  margin: 2rem auto;
  line-height: 1.7;
}

.about-intro h2,
.about-intro h3,
.about-values h3,
.about-approach h3 {
  color: var(--text-blue);
  margin-bottom: 1rem;
}

.about-values ul,
.about-approach ul {
  list-style-type: disc;
  margin-left: 2rem;
}

.about-values li,
.about-approach li {
  margin-bottom: 0.5rem;
}

.about-cta {
  text-align: center;
  margin: 3rem 0;
  font-weight: bold;
}

.about-cta a {
  color: var(--text-blue);
  text-decoration: none;
}

.about-cta a:hover {
  text-decoration: underline;
}

.contact-phone {
    color: var(--text-blue);
    font-weight: bold;
    text-decoration: none;
}

.contact-phone:hover {
    text-decoration: underline;
}

.contact-section {
    max-width: 600px;
    margin: 2rem auto;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    padding: 1rem;
    border: 1px solid var(--border-blue);
    border-radius: 8px;
}

.contact-section h2 {
    color: var(--text-blue);
    font-weight: bold;
    margin-bottom: 1rem;
}

.contact-section p {
    margin-bottom: 0.5rem; /* adds space after each paragraph */
}

.contact-section a.contact-email {
    color: var(--text-blue);
    font-weight: bold;
    text-decoration: none;
}

.contact-section a.contact-email:hover {
    text-decoration: underline;
}

.contact-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.contact-list li {
    margin: 0;
}

.impressum-section {
    max-width: 800px;
    margin: 2rem auto;
    font-family: Arial, sans-serif;
    line-height: 1.4;
    padding: 1rem;
}

.impressum-section h2 {
    color: var(--text-blue);
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.impressum-section p {
    margin-bottom: 1rem;
}

.impressum-section a {
    color: var(--text-blue);
    font-weight: bold;
    text-decoration: none;
}

.impressum-section a:hover {
    font-weight: bold;
    text-decoration: underline;
}

@media (max-width: 48rem) {
  header {
    flex-wrap: wrap;
	justify-content: space-between;
  }

  .nav-links {
	display: none;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--menu-blue);
    position: fixed;
    top: 3.5rem;
    right: 0; 
    width: 12rem;
    display: none;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.3rem 0.6rem rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }

  #menu-toggle-cb:checked ~ .nav-links {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    color: var(--menu-light);
    text-decoration: none;
    font-size: 0.9rem;
  }

  .menu-toggle {
    display: block;
  }

  main {
    padding: 1rem;
  }
}