@import url('reset.css');
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
  /* Farbpalette */
  --primary-color: #4CAF50; /* Hauptgrün */
  --primary-light: #8BC34A; /* Helles Grün */
  --primary-dark: #2E7D32; /* Dunkles Grün */
  --accent-color: #FFC107; /* Akzentfarbe (Gelb) */
  --text-dark: #333333; /* Haupttextfarbe */
  --text-light: #666666; /* Sekundäre Textfarbe */
  --white: #FFFFFF;
  --light-bg: #F5F5F5;
  --shadow: rgba(0, 0, 0, 0.1);

  /* Typografie */
  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Abstände */
  --spacing-xs: 0.4rem;
  --spacing-sm: 0.8rem;
  --spacing-md: 1.6rem;
  --spacing-lg: 2.4rem;
  --spacing-xl: 3.2rem;
  --spacing-xxl: 4.8rem;

  /* Verläufe */
  --container-width: 120rem;
  --border-radius: 0.8rem;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-text-size-adjust: 100%; /* Verhindert automatische Textvergrößerung in Safari/iOS */
  text-size-adjust: 100%;
  padding-top: 0; /* War vorher 9rem, jetzt entfernt */
}

/* Hauptcontainer mit Abstand zum Header */
main {
  padding-top: 8rem; /* Abstand zum fixen Header erhöht */
}

/* Typografie */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--primary-dark);
}

h1 { font-size: 3.6rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2.4rem; }
h4 { font-size: 2rem; }
h5 { font-size: 1.8rem; }
h6 { font-size: 1.6rem; }

p {
  margin-bottom: var(--spacing-md);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  box-sizing: border-box; /* Sicherstellt konsistente Breiten zwischen Browsern */
}

/* Sektionen */
.section {
  padding: var(--spacing-xl) 0;
  overflow: hidden; /* Verhindert Margin-Collapse in Safari */
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  cursor: pointer;
  -webkit-appearance: none; /* Verhindert Styling-Probleme auf iOS */
  -moz-appearance: none;
  appearance: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Hilfsklassen */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary-color); }
.bg-light { background-color: var(--light-bg); }

/* Flex-Layout */
.d-flex { 
  display: -webkit-box; 
  display: -ms-flexbox; 
  display: flex; 
}
.flex-column { 
  -webkit-box-orient: vertical; 
  -webkit-box-direction: normal; 
  -ms-flex-direction: column; 
  flex-direction: column; 
}
.flex-wrap { 
  -ms-flex-wrap: wrap; 
  flex-wrap: wrap; 
}
.justify-center { 
  -webkit-box-pack: center; 
  -ms-flex-pack: center; 
  justify-content: center; 
}
.justify-between { 
  -webkit-box-pack: justify; 
  -ms-flex-pack: justify; 
  justify-content: space-between; 
}
.align-center { 
  -webkit-box-align: center; 
  -ms-flex-align: center; 
  align-items: center; 
}
.align-start { 
  -webkit-box-align: start; 
  -ms-flex-align: start; 
  align-items: flex-start; 
}

/* Grid-Layout */
.grid {
  display: -ms-grid;
  display: grid;
  gap: var(--spacing-md);
}

/* Fokus-Stile für verbesserte Zugänglichkeit */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  html {
    font-size: 60%;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 58%;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 55%;
  }
  
  h1 { font-size: 3rem; }
  h2 { font-size: 2.6rem; }
  h3 { font-size: 2.2rem; }
}

/* Print-Styles für bessere Druckdarstellung */
@media print {
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  
  a, a:visited {
    color: #000;
    text-decoration: underline;
  }
  
  .no-print {
    display: none !important;
  }
} 