
/* main.css - Grundlegende Stile und Variablen */

:root {
  /* NEUE FARBPALETTE (Beispiel Gothic Metal) */
  --color-background: #121212;        /* Sehr dunkles Grau / Fast Schwarz */
  --color-surface: #1e1e1e;         /* Etwas helleres Grau für Oberflächen/Boxen */
  --color-primary-dark: #660000;     /* Tiefes Blutrot */
  --color-primary-light: #990000;    /* Etwas helleres Rot für Hover etc. */
  --color-accent: #b0b0b0;          /* Silber/Helles Grau als Akzent */
  --color-text-light: #e0e0e0;      /* Helles Grau für Haupttexte */
  --color-text-medium: #a0a0a0;     /* Mittleres Grau für weniger wichtige Texte */
  --color-text-dark: #121212;       /* Dunkler Text (selten benötigt auf dunklem BG) */
  --color-burgundy: #800020;
  --color-light: #f5f5f5;
  --font-main: 'Cormorant Garamond', Georgia, serif;
  --font-accent: 'Montserrat', sans-serif;

  /* Touch-Target-Größen */
  --touch-target-min: 44px;
  --touch-target-comfortable: 48px;
}

html {
  scroll-behavior: smooth;
  /* Verbesserte Touch-Erfahrung */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

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

body {
  font-family: var(--font-accent); /* Hauptsächlich lesbare Schrift */
  background-color: var(--color-background);
  color: var(--color-text-light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Verbesserte Touch-Scrolling-Erfahrung */
  -webkit-overflow-scrolling: touch;
}

.section-title {
  font-family: var(--font-main); /* Gothic-Schrift für Titel */
  font-size: 2.8rem; /* Darf gern größer sein */
  color: var(--color-text-light);
  margin-bottom: 30px; /* Mehr Abstand */
  text-align: center;
  position: relative;
  padding-bottom: 20px; /* Mehr Abstand zur Linie */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Optional: leichter Schatten */
}

/* Linie unter dem Titel anpassen */
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px; /* Breiter */
  height: 2px; /* Etwas dicker */
  background-color: var(--color-primary-dark); /* Tiefrot */
}

a {
  color: #d81616;
  /* Verbesserte Touch-Targets */
  min-height: var(--touch-target-min);
  display: inline-flex;
  align-items: center;
}

a:hover, a:focus {
  color: #ffffff;
}

a:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn {
  display: inline-block;
  background-color: var(--color-primary-dark); /* Tiefrot */
  color: var(--color-text-light);
  font-family: var(--font-accent);
  padding: 12px 35px;
  text-decoration: none;
  border-radius: 2px; /* Kantiger */
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 1px solid var(--color-primary-light); /* Optional: leichter Rand */
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1.5px; /* Mehr Abstand */
  box-shadow: 0 2px 5px rgba(0,0,0,0.4); /* Optional: Schatten */
  min-height: var(--touch-target-comfortable);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover, .btn:focus {
  background-color: var(--color-primary-light); /* Helleres Rot */
  color: #ffffff; /* Vielleicht reines Weiß im Hover */
  border-color: var(--color-accent); /* Silberner Rand im Hover */
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
  transform: translateY(-2px);
}

.btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

/* Container für die Punkte, falls Anpassungen am Abstand nötig sind */
.fancybox__dots {
  margin-top: 10px; /* Passt den Abstand zwischen Karussell und Punkten an */
}

/* Stil für die einzelnen Punkte (die Rechtecke) */
.carousel__dot {
  width: 12px;  /* Breite des Punktes reduzieren */
  height: 12px; /* Höhe des Punktes reduzieren */
  background-color: var(--color-surface); /* Farbe für inaktive Punkte */
  border-radius: 2px; /* Leicht abgerundete Ecken beibehalten */
  transition: background-color 0.3s ease;
}

/* Stil für den aktiven/ausgewählten Punkt */
.carousel__dot.is-selected {
  background-color: var(--color-primary-dark); /* Farbe für den aktiven Punkt */
}

/* Stil für Punkte beim Überfahren mit der Maus (optional) */
.carousel__dot:hover {
  background-color: var(--color-text-medium);
}

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

  html {
    scroll-behavior: auto;
  }
}

/* Media Queries für allgemeine Anpassungen */
@media (max-width: 1024px) {
  .section-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
  }

  .section-title::after {
    width: 80px;
  }

  .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    min-height: 50px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.9rem;
    margin-bottom: 20px;
  }

  .section-title::after {
    width: 60px;
    height: 2px;
  }

  .btn {
    padding: 14px 25px;
    font-size: 1rem;
    letter-spacing: 1px;
    min-height: 48px;
  }
}

/* High-DPI-Display-Optimierungen */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .section-title::after {
    height: 1px;
    transform: translateX(-50%) scaleY(2);
  }
}

/* Touch-Device-spezifische Optimierungen */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 50px;
    padding: 16px 32px;
  }

  a {
    min-height: 44px;
    padding: 8px;
  }
}
