/* assets/css/style.css */

/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: #f8f9fa;
  font-size: 16px;
}

/* ===== FONTS ===== */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== ACCESSIBILITY ===== */
:focus {
  outline: 2px solid #0066b3;
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid #0066b3;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: #0066b3;
  text-decoration: none;
  display: flex;
  align-items: center;
  line-height: 1.2;
}

.logo:hover {
  color: #004d8a;
}

.logo::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 24px;
  background-color: #0066b3;
  margin-right: 8px;
  border-radius: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin-right: 1rem;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 0;
  border-radius: 4px;
  transition: color 0.2s ease;
  position: relative;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link:focus {
  color: #0066b3;
}

.nav-link.active {
  color: #0066b3;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #0066b3;
  border-radius: 2px;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* ===== MAIN CONTENT ===== */
main {
  min-height: calc(100vh - 180px);
  padding: 1.5rem 0;
}

/* ===== HERO/CLAIM ===== */
.hero {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0066b3;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  color: #555;
}

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  border: 1px solid #eaeaea;
}

.card:hover,
.card:focus {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,102,179, 0.15);
  outline: 2px solid #0066b3;
  outline-offset: 2px;
}

.card h2 {
  color: #0066b3;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.card p {
  color: #666;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  background-color: #0066b3;
  color: white;
  padding: 0.6rem 1.25rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 0.9rem;
}

.btn:hover,
.btn:focus {
  background-color: #004d8a;
  color: white;
}

/* ===== FORMULAR-STYLES ===== */
form {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #eaeaea;
  max-width: 800px;
  margin: 0 auto;
}

fieldset {
  border: 2px solid #eaeaea;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

legend {
  font-weight: 600;
  color: #0066b3;
  padding: 0 1rem;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="file"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #eaeaea;
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #0066b3;
  box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.1);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* Checkbox Gruppe */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
  transform: scale(1.2);
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
  cursor: pointer;
}

/* Upload Zone */
.upload-info {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.upload-zone {
  border: 3px dashed #eaeaea;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  background: #fafafa;
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: #0066b3;
  background: rgba(0, 102, 179, 0.05);
}

.upload-content p {
  margin-bottom: 0.5rem;
  color: #333;
}

.browse-btn {
  background: #0066b3;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.browse-btn:hover {
  background: #004d8a;
}

/* File List */
.file-list {
  margin-top: 1rem;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: #f8f9fa;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.file-info {
  display: flex;
  flex-direction: column;
}

.file-name {
  font-weight: 500;
}

.file-size {
  font-size: 0.85rem;
  color: #666;
}

.remove-file {
  background: #e53e3e;
  color: white;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Error Messages */
.error {
  display: block;
  color: #e53e3e;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Submit Button */
.form-actions {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eaeaea;
}

.submit-btn {
  background: #38a169;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
}

.submit-btn:hover:not(:disabled) {
  background: #2f855a;
  transform: translateY(-1px);
}

.submit-btn:disabled {
  background: #718096;
  cursor: not-allowed;
  transform: none;
}

/* ===== ZWEISPALTIGES LAYOUT ===== */
.content-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.content-column {
  padding: 1.5rem;
}

.content-column p {
  margin-bottom: 1rem;
}

/* ===== WATER PAGE ===== */
.content-section {
  background: white;
  border-radius: 8px;
  padding: 3rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #eaeaea;
}

.content-section h1 {
  color: #0066b3;
  margin-bottom: 1.25rem;
  font-size: 1.8rem;
  font-weight: 700;
}

.content-section h2 {
  color: #0066b3;
  margin: 1.25rem 0 0.75rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.content-section h3 {
  color: #0066b3;
  margin: 1.25rem 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.content-section p {
  margin-bottom: 0.85rem;
  line-height: 1.5;
  color: #444;
  font-size: 0.95rem;
}

.download-list {
  list-style: none;
  margin: 1rem 0;
}

.download-list li {
  margin-bottom: 0.6rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.download-list li::before {
  content: "📄";
  position: absolute;
  left: 0;
  top: 0;
}

.download-list a {
  color: #0066b3;
  text-decoration: none;
  font-weight: 500;
}

.download-list a:hover {
  text-decoration: underline;
}

.map-container {
  margin: 1.5rem 0;
  text-align: center;
}

.map-container img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #eaeaea;
}

/* ===== COUNTER PAGE ===== */
.counter-content {
  background: white;
  border-radius: 8px;
  padding: 3rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
  border: 1px solid #eaeaea;
}

.counter-content h1 {
  color: #0066b3;
  margin-bottom: 0.75rem;
  font-size: 1.8rem;
}

.counter-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.form-placeholder {
  background-color: #f0f8ff;
  padding: 3rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  border: 2px dashed #0066b3;
}

/* ===== FOOTER ===== */
footer {
  background-color: #0066b3;
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-section {
  flex: 1;
}

.footer-section h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

.footer-section p,
.footer-section a {
  color: white;
  text-decoration: none;
  margin-bottom: 0.25rem;
  display: block;
  font-size: 0.9rem;
  line-height: 1.4;
}

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

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 102, 179, 0.95);
  color: white;
  padding: 0.85rem;
  text-align: center;
  z-index: 1001;
  backdrop-filter: blur(5px);
}

.cookie-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.cookie-text {
  font-size: 0.85rem;
  line-height: 1.4;
}

.cookie-btn {
  background-color: white;
  color: #0066b3;
  border: none;
  padding: 0.4rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 0.85rem;
}

.cookie-btn:hover,
.cookie-btn:focus {
  background-color: #e6f0f9;
}

/* ===== MOBILE RESPONSIVE ===== */
@media screen and (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 60px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0,0,0,0.05);
    padding: 1.5rem 0;
    gap: 0.75rem;
    border-bottom: 1px solid #eaeaea;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero h1 {
    font-size: 1.8rem;
  }

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

  .cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .content-section {
    padding: 2rem;
  }
  
  .content-section h1 {
    font-size: 1.6rem;
  }
  
  .content-section h2 {
    font-size: 1.25rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }

  footer {
    padding: 1.5rem 0;
  }
  
  .nav-container {
    padding: 0.5rem 0;
  }
  
  main {
    padding: 1rem 0;
  }
  
  .counter-content,
  .form-placeholder {
    padding: 1rem;
  }
  
  .content-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }  
}
/* ===== MOBILE RESPONSIVE - VERBESSERTE FORMULAR-ANPASSUNGEN ===== */
@media screen and (max-width: 768px) {
  /* ... vorhandene mobile Styles ... */
  
  /* VERBESSERTE FORMULAR-STYLES FÜR MOBILE */
  form {
    padding: 2rem;
    margin: 0 1rem;
  }
  
  fieldset {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  input[type="file"],
  textarea {
    padding: 1rem;
    font-size: 16px; /* Verhindert Zoom auf iOS */
  }
  
  .checkbox-group {
    gap: 1rem;
  }
  
  .checkbox-group input[type="checkbox"] {
    transform: scale(1.5);
    margin-top: 0;
  }
  
  .upload-zone {
    padding: 2rem;
  }
  
  .file-item {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .submit-btn {
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    min-width: auto;
    width: 100%;
  }
  
  legend {
    font-size: 1.2rem;
  }
  
  label {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
}

@media screen and (max-width: 480px) {
  /* NOCH VERBESSERTE ANPASSUNGEN FÜR SEHR KLEINE GERÄTE */
  form {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }
  
  fieldset {
    padding: 1.25rem;
  }
  
  .form-group {
    margin-bottom: 1.25rem;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  input[type="file"],
  textarea {
    padding: 0.85rem;
    font-size: 16px;
  }
  
  .checkbox-group {
    gap: 0.75rem;
  }
  
  .checkbox-group input[type="checkbox"] {
    transform: scale(1.3);
  }
  
  .upload-zone {
    padding: 1.5rem;
  }
  
  .file-item {
    padding: 0.75rem;
  }
  
  .submit-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  legend {
    font-size: 1.1rem;
  }
  
  label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
}

/* ===== ANDROID-SPEZIFISCHE OPTIMIERUNGEN ===== */
@media screen and (max-width: 768px) and (orientation: portrait) {
  /* Verbesserte Touch-Targets */
  input[type="checkbox"],
  input[type="radio"] {
    min-height: 44px;
    min-width: 44px;
  }
  
  .remove-file {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .browse-btn {
    min-height: 44px;
    padding: 1rem 1.5rem;
  }
}

/* Verhindere unerwünschten Zoom auf mobilen Geräten */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  input[type="file"],
  textarea,
  select {
    font-size: 16px;
  }
}

/* Allgemeine mobile Verbesserungen */
@media screen and (max-width: 768px) {
  /* Größere Touch-Targets */
  .btn,
  button,
  input[type="submit"] {
    min-height: 44px;
    font-size: 1rem;
  }
  
  /* Bessere Lesbarkeit */
  body {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Verbesserte Formular-Abstände */
  .form-group:last-child {
    margin-bottom: 0;
  }
  
  /* Bessere Darstellung von Fehlermeldungen */
  .error {
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: 4px;
  }
}
@media screen and (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .card {
    padding: 1.25rem;
  }

  .cookie-content {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .nav-menu {
    top: 55px;
  }
  
  form {
    padding: 0.5rem;
  }
  
  fieldset {
    padding: 1rem;
  }
  
  .checkbox-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .submit-btn {
    width: 100%;
    min-width: auto;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .cookie-banner,
  header,
  footer {
    display: none;
  }

  main {
    min-height: auto;
  }
  
  .content-section {
    box-shadow: none;
    border: none;
  }
  
  .upload-zone,
  .submit-btn,
  .privacy-notice {
    display: none;
  }
}