/*
 * Global Stylesheet für die Fahrschule‑Seyis‑Website
 *
 * Dieses CSS definiert Layout, Typografie und Farbschema
 * für eine moderne, responsive und zugängliche Präsentation.
 */

:root {
  --primary-color: #d12b2b; /* markantes Rot für Buttons und Highlights */
  --secondary-color: #1f1f1f; /* dunkler Grauton für Texte */
  --light-bg: #fafafa; /* helles Grau für Abschnittshintergründe */
  --font-family: 'Poppins', sans-serif;
}

/* === Galerie === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* === Hybrid Mini Chat === */
/* Zweiter schwebender Button (öffnet das Mini-Chat-Panel) */
.chat-fab.secondary {
  position: fixed;
  right: 88px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.chat-fab.secondary:hover,
.chat-fab.secondary:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  background: #111;
  outline: none;
}

.chat-panel {
  position: fixed;
  right: 18px;
  bottom: 84px;
  width: min(360px, 92vw);
  max-height: 70vh;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: #f7f7f7;
  border-bottom: 1px solid #eee;
}

.chat-header h3 {
  margin: 0;
  font-size: 1rem;
}

.chat-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.chat-body {
  padding: 0.75rem;
  overflow: auto;
}

.chat-msg {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  margin: 0.35rem 0;
  font-size: 0.95rem;
  max-width: 85%;
}

.chat-msg-bot {
  background: #f1f3f5;
  color: #111;
  border: 1px solid #e5e7eb;
}

.chat-msg-user {
  background: #e8f0fe;
  color: #111;
  border: 1px solid #c7dbff;
  margin-left: auto;
  max-width: 85%;
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.chat-chip {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.chat-chip:hover,
.chat-chip:focus {
  background: #f4f4f4;
  outline: none;
}

.chat-input-row {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem;
  border-top: 1px solid #eee;
}

#chat-input {
  flex: 1;
  padding: 0.6rem 0.7rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
}

#chat-send {
  white-space: nowrap;
}

.chat-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.6rem;
  border-top: 1px solid #eee;
}

@media (max-width: 480px) {
  .chat-actions {
    flex-direction: column;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--secondary-color);
  background: #fff;
  line-height: 1.6;
}

/* Container für ein zentriertes Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
}

.logo {
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--primary-color);
}

/*
 * Bilder im Logo‑Bereich werden auf eine einheitliche Höhe skaliert,
 * ohne verzerrt zu werden. Der Schriftzugstil kann weiterhin
 * angewendet werden, falls kein Bild vorhanden ist. Das Bild füllt
 * die Höhe des Navigationsbereichs aus und behält das Seitenverhältnis.
 */
.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--primary-color);
  outline: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  background: var(--secondary-color);
  height: 3px;
  width: 28px;
  border-radius: 2px;
  position: relative;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
}

.hamburger::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
}

.nav-toggle.open .hamburger {
  background: transparent;
}

.nav-toggle.open .hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open .hamburger::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.65);
}

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

.hero h1 {
  font-size: 3rem;
  margin: 0 0 1rem;
  font-weight: 600;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

/* Spezieller Stil für WhatsApp‑Buttons */
.btn.whatsapp {
  background: #25d366; /* WhatsApp‑Grün */
  color: #fff;
}
.btn.whatsapp:hover,
.btn.whatsapp:focus {
  background: #1da851; /* dunkleres Grün beim Hover */
  outline: none;
}

.btn:hover,
.btn:focus {
  background: #b52323;
  outline: none;
}

/* Style für Button‑Elemente mit btn‑Klasse (Formular) */
button.btn {
  background: var(--primary-color);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

button.btn:hover,
button.btn:focus {
  background: #b52323;
  outline: none;
}

/* Allgemeine Section‑Stile */
.section {
  padding: 4rem 0;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  text-align: center;
}

.section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* Über uns */
.about .about-text {
  max-width: 800px;
  margin: 0 auto;
}

.about p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Leistungen */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--light-bg);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.service-card .icon {
  width: 40px;
  height: 40px;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: var(--secondary-color);
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* Fahrzeuge */
.vehicle-image-wrapper {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.vehicle-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Standort */
.location p {
  margin-bottom: 1.5rem;
  text-align: center;
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-container small {
  display: block;
  margin-top: 0.5rem;
  text-align: right;
}

/* Kontakt */
.contact {
  background: var(--light-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1rem;
}

.contact-info li {
  margin-bottom: 0.7rem;
}

.contact-info a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-info a:hover,
.contact-info a:focus {
  text-decoration: underline;
}

.contact-form-wrapper {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group label {
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--font-family);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(209, 43, 43, 0.2);
}

.form-response {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--primary-color);
}

/* Footer */
.footer {
  background: #f1f1f1;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

.footer .legal {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

/* Design‑Hinweis: dezent platzierter Link zum Designer */
.designed-by {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #888;
}

.designed-by a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, transform 0.3s ease;
}

.designed-by a:hover,
.designed-by a:focus {
  color: var(--primary-color);
  transform: translateY(-2px);
  outline: none;
}

/* Infos‑Sektion: Layout für nützliche Informationen */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.info-item {
  background: var(--light-bg);
  border-radius: 6px;
  padding: 1.5rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.info-item h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--secondary-color);
}

.info-item p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* Hervorhebungen in Info‑Boxen */
.info-item p strong {
  font-weight: 600;
  color: var(--secondary-color);
}

/* Team‑Sektion: Darstellung der Team‑Karten */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.team-card {
  background: var(--light-bg);
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.team-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.team-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* Responsive Anpassungen */
@media (max-width: 800px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    flex-direction: column;
    width: 220px;
    padding: 1rem;
    gap: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .services-grid {
    gap: 1.5rem;
  }
}