/*
 * Standard Stylesheet for LD Fahrschule Lysann Drechsler
 *
 * Überarbeitetes Farbschema basierend auf einem dunkel gehaltenen
 * Layout mit leuchtendem Akzent. Der Look orientiert sich an
 * hochwertigen, minimalistischen Websites (Apple/velobyrd) und
 * greift gleichzeitig Farbtöne aus dem Corporate‑Design der
 * Fahrschule („Learn to drive“) auf. Großzügiger Weißraum wird
 * durch dezente Grautöne ersetzt und die Lesbarkeit durch
 * hohen Kontrast gewährleistet.
 */

:root {
  /* Grundfarben */
  --bg-primary: #0f0f0f;    /* dunkelster Hintergrund */
  --bg-secondary: #131313;  /* leicht aufgehellter Bereich */
  --bg-tertiary: #1a1a1a;   /* Karten- und Sektionen-Hintergrund */
  --text-primary: #e5e5e5;  /* primäre Schriftfarbe */
  --text-secondary: #b2b2b2;/* sekundäre Schriftfarbe */
  --border-color: #333333; /* dezente Rahmenfarbe */
  --accent: #8ac93e;        /* leuchtendes Grün für Akzente */
  --accent-dark: #5e8e2a;   /* dunklere Variante des Akzents */
}

/* Grundlegende Stile */
html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Kopfzeile & Navigation */
header {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 40px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

nav .logo {
  font-weight: bold;
  font-size: 1.8rem;
  text-decoration: none;
  color: var(--accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0;
}

nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
}

nav a:hover {
  color: var(--accent);
}

/* Hero‑Bereich */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 60vh;
  padding: 0 20px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

/* Dekoratives Gitter im Hero-Bereich zur Anlehnung an das Corporate-Design
 * Es erzeugt ein feines Linienmuster mit leichter Transparenz, das
 * an Neonlinien erinnert. Die "repeating-linear-gradient"-Definitionen
 * erzeugen horizontale und vertikale Linien im Abstand von 40px. */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg,
      rgba(138, 201, 62, 0.08),
      rgba(138, 201, 62, 0.08) 2px,
      transparent 2px,
      transparent 40px),
    repeating-linear-gradient(90deg,
      rgba(138, 201, 62, 0.08),
      rgba(138, 201, 62, 0.08) 2px,
      transparent 2px,
      transparent 40px);
  z-index: 0;
}

/* Container im Hero-Bereich für Textinhalte */
.hero > div {
  position: relative;
  z-index: 1;
}

/* Großflächiger Marken‑Claim im Hero: Verwendung einer Script‑Schriftart
 * Bei fehlender Schrift wird auf generische Cursive‑Fonts zurückgegriffen. */
.brand-tagline {
  font-family: 'Brush Script MT', 'Segoe Script', cursive;
  font-size: 4rem;
  font-weight: normal;
  margin: 0;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Unterzeile unter dem Marken‑Claim */
.sub-tagline {
  font-size: 1.2rem;
  margin: 10px 0 30px 0;
  color: var(--text-secondary);
}

.hero h1 {
  font-size: 2.8rem;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin: 0 0 30px 0;
}

.cta {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  background-color: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta:hover {
  background-color: var(--accent-dark);
}

/* Allgemeine Sektionen */
.section {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--bg-primary);
}

.section h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.section p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

/* Alternative Sektion mit leicht hellerem Hintergrund für Abwechslung */
.section-secondary {
  background-color: var(--bg-secondary);
}

/* Karten/Module */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  flex: 1 1 calc(33.333% - 20px);
  background-color: var(--bg-tertiary);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: var(--accent);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Tabellen */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  color: var(--text-primary);
}

table th,
table td {
  border: 1px solid var(--border-color);
  padding: 12px 15px;
  text-align: left;
}

table th {
  background-color: var(--bg-tertiary);
  font-weight: 600;
  color: var(--accent);
}

table tr:nth-child(even) {
  background-color: var(--bg-secondary);
}

/* Formular */
form {
  max-width: 600px;
}

form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text-primary);
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 1rem;
  font-family: inherit;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

form button {
  padding: 12px 25px;
  border: none;
  border-radius: 4px;
  background-color: var(--accent);
  color: var(--bg-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: var(--accent-dark);
}

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Footer */
/* Footer im dunklen Layout */
.footer {
  background-color: var(--bg-tertiary);
  text-align: center;
  padding: 30px 40px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

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