@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Wix+Madefor+Text:ital,wght@0,400..800;1,400..800&display=swap');

:root {
  /* Moderne Farbpalette mit gelb als Akzentfarbe */
  --primary-color: #fffb71;      /* Helles Gelb - Hauptakzentfarbe */
  --secondary-color: #25251F;    /* Dunkelgrau für Text */
  --accent-color: #4d4d47;       /* Helleres Grau für sekundäre Texte */
  --background-color: #ffffff;   /* Weiß für Hintergrund */
  --card-color: #ffffff;         /* Weiß für Karten */
  --text-color: #25251F;         /* Dunkelgrau für Text */
  --text-light: #666666;         /* Helleres Grau für Sekundärtext */
  --link-color: #25251F;
  --link-hover-color: #4d4d47;
  --primary-font: 'Wix Madefor Text', sans-serif;
  --secondary-font: 'Lato', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.03), 0 4px 6px rgba(0,0,0,0.05);
  --border-radius: 0.5rem;
  --container-width: 1200px;
  --header-height: 70px;
}

/* Moderne Typografie und Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--primary-font);
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
}

/* Moderne Typografie */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--secondary-font);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

h1 {
  font-size: 2.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.015em;
  position: relative;
  margin-top: 3rem;
  padding-bottom: 0.5rem;
}

/* Removed the underline for h2 as per TODO */
h2::after {
  display: none;
}

h3 {
  font-size: 1.75rem;
  margin-top: 2rem;
}

h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

a:hover {
  color: var(--link-hover-color);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Container Layout */
.container {
  width: 100%;
  /* max-width: var(--container-width); */
  margin: 0 auto;
}

/* Header with hamburger menu */
header {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(230, 230, 230, 0.7);
}

/* Logo und Navigation */
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.menu-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 2rem;
}

.padded-container {
  padding: 0 2rem;
}

/* Language switch */
.language-switch {
  display: flex;
  align-items: center;
}

.language-switch a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0 5px;
  color: var(--text-light);
}

.language-switch a.active {
  color: var(--text-color);
  font-weight: 600;
}

/* Hamburger menu moved to right */
.hamburger-menu {
  display: inline-block;
  cursor: pointer;
  z-index: 1001;
  margin-left: 1rem;
}

.bar1, .bar2, .bar3 {
  width: 30px;
  height: 3px;
  background-color: var(--text-color);
  margin: 6px 0;
  transition: 0.4s;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
}

.logo-icon {
  width: 32px;
  height: 32px;
  margin-right: 0.5rem;
  background-color: var(--text-color);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 16px;
}

/* Navigation */
.main-nav {
  display: none;
}

.main-nav.active {
  display: block;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  font-weight: 500;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.25rem 0;
}

nav a:hover {
  color: var(--text-color);
  text-decoration: none;
}

/* Hauptinhalt */
main {
  padding-top: calc(var(--header-height) + 2rem);
  min-height: calc(100vh - var(--header-height));
}

.page-title {
  margin-bottom: 3rem;
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: calc(-1 * var(--header-height) - 2rem);
  overflow: hidden; /* Ensure the SVG doesn't create scrollbars */
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 2rem;
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 0;
  color: var(--text-color);
  font-weight: 500;
}


.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  opacity: 0.3;
  z-index: 0;
}

.hero h2::after {
  display: none;
}

.hero-divider {
  width: 100%;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 0.5rem auto 1.5rem;
}

.hero p {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-block;
  background-color: var(--text-color);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  border: 2px solid var(--text-color);
  cursor: pointer;
}

.btn:hover {
  background-color: transparent;
  color: var(--text-color);
}

/* Yellow button style */
.yellow-btn {
  background-color: var(--primary-color);
  color: var(--text-color);
  border: 4px solid var(--primary-color);
}

.yellow-btn:hover {
  background-color: transparent;
  color: var(--text-color);
  border-width: 4px;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--text-color);
}

.btn-secondary:hover {
  background-color: var(--text-color);
  color: white;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounceDown 2s infinite;
  z-index: 1;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* Mission Section with contact button */
.mission-container {
  max-width: var(--container-width);
  margin: 5rem auto 0; /* Kein Abstand nach unten */
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  position: relative;
}

/* Grundlegende Einstellungen für die Textseite */
.mission-content {
  flex: 2;
  min-width: 300px;
}

/* Grundlegende Einstellungen für die Bildseite */
.mission-title {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: center;
}

/* Spezifische Anpassung für das erste Bild */
.mission-title.first-image {
  align-self: stretch; /* Dehnt sich über die gesamte Höhe des Textcontainers aus */
  flex: 1.5; /* Breiter machen für bessere Ausrichtung mit dem grauen Kasten */
  margin-top: 2rem; /* Gleicher Abstand wie der Text */
}

.mission-title.first-image img {
  width: 100%;
  height: calc(100% - 2rem); /* Füllt die gesamte Höhe minus dem margin-top */
  object-fit: cover;
  object-position: center;
}


.mission-content {
  flex: 2;
  min-width: 300px;
  display: flex;
  flex-direction: column;
}
/* Spezifische Anpassung für das zweite Bild (Über mich Sektion) */
#ueber-mich.mission-container {
  gap: 3rem;
}

#ueber-mich .mission-title {
  flex: 1.5; /* Gleiche Breite wie das erste Bild */
  align-items: flex-start; /* Mit dem oberen Rand des Textes ausrichten */
}

#ueber-mich .mission-title img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Add more spacing before the title */
.mission-spacing {
  margin-top: 2rem;
}

.contact-button-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 4rem; /* Erhöhter Abstand nach unten */
  font-size: 1.2rem;
}
.contact-button-container a {
  padding: 1.2rem 2.5rem;
}

.centered-button {
  justify-content: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  display: inline-block;
  position: relative;
}

.title-underline {
  display: inline-block;
  width: 5rem;
  height: 4px;
  background-color: var(--primary-color);
  margin-top: 0.5rem;
}

.mission-content h3 {
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.mission-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Expertise Section with smaller font */
.expertise-section {
  padding: 0 2rem 5rem; /* Kein Abstand oben */
  background-color: #f9f9f9;
  max-width: var(--container-width);
  margin: 0 auto;
  font-size: 0.9rem;
  position: relative; /* Wichtig für die Positionierung */
  z-index: 1; /* Stellt sicher, dass der graue Kasten über dem Bild liegt */
}

/* Weitere verbesserte Positionierung für besseren Abschluss */
.mission-container:first-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
}

.expertise-section .section-title {
  text-align: left;
  margin-bottom: 3rem;
  font-size: 2rem;
}

.expertise-list {
  margin: 0 auto;
  margin-left: 0;
}

.expertise-item {
  margin-bottom: 1rem;
  background-color: #f9f9f9;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid #858585;
}

.expertise-item:last-child {
  border-bottom: none;
}

.expertise-header {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.expertise-header:hover {
  background-color: #f5f5f5;
}

.expertise-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.toggle-icon {
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.expertise-item.active .toggle-icon {
  transform: rotate(45deg);
}

.expertise-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.expertise-item.active .expertise-content {
  padding: 0 0 1.5rem 0;
  max-height: 1000px;
}

.expertise-content ul {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.expertise-content li {
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
  padding: 5rem 2rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.contact-section .section-title {
  margin-bottom: 2rem;
}

.contact-content h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.contact-info {
  margin-bottom: 1.5rem;
}

.contact-info h4 {
  font-weight: 600;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

/* Footer Styling */
footer {
  background-color: var(--text-color);
  color: white;
  padding: 3rem 0;
  margin-top: 4rem;
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-info h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  margin-top: 0;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 960px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .mission-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  header {
    height: auto;
    padding: 1rem 0;
  }

  header .container {
    flex-direction: column;
    padding: 0 1rem;
  }

  .logo {
    margin-bottom: 0.75rem;
  }

  .hamburger-menu {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--shadow-md);
    padding: 1rem;
    margin-right: 2rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero h2 {
    font-size: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .expertise-header {
    padding: 1rem 0;
  }

  .expertise-header h3 {
    font-size: 1rem;
  }
}