/* ---------------------------------------------------
   GLOBAL
--------------------------------------------------- */
/* Schriften werden lokal über vendor/fonts/fonts.css geladen */
* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  margin: 0;
  padding-top: 70px; /* Platz für fixe Navbar */
  background-color: #f7f5f3;
  color: #333;
}

/* ---------------------------------------------------
   NAVBAR
--------------------------------------------------- */

.navbar {
  font-size: 0.95rem;
}

.navbar .logo {
  height: 66px;
}

.brand-text {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.65rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #b89c6d !important;
}

/* ---------------------------------------------------
   HERO (Titelbereich)
--------------------------------------------------- */

.hero-section {
  padding: 1rem 0;
  min-height: 45vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
}

.hero-text {
  font-size: 1.2rem;
  max-width: 420px;
}

.hero-image,
.hero-img-compact {
  max-height: 320px;
  object-fit: cover;
}

/* ---------------------------------------------------
   HIGHLIGHTS – filigrane moderne Kacheln
   (aktuell auskommentiert im HTML-Bereich)
--------------------------------------------------- */

.highlight-title {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  margin-top: 0.2rem;
  text-align: center;
}

.highlight-section {
  margin-top: -6px;
}

.highlight-box {
  display: block;
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 3px 16px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

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

.highlight-img {
  width: 100%;
  max-width: 150px;
  border-radius: 10px;
  margin: 0 auto 10px auto;
  display: block;
}

.highlight-box h4 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.highlight-box p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.car-info-box {
  background: #faf7f1;
  border-left: 4px solid #b89c6d;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.4rem;
  flex-grow: 1; /* dehnt sich, damit der Button unten bleibt – kein <br>-Hack nötig */
}


/* ---------------------------------------------------
   SECTION-STYLES
--------------------------------------------------- */

.section {
  padding: 4rem 0;
}

.section-light {
  background: #f7f5f3;
}

.section-soft {
  background: #efe7dd;
}

.section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
}

/* ---------------------------------------------------
   FAHRZEUG-CARDS – Einheitliche Höhe
--------------------------------------------------- */

.car-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Bild immer oben */
.car-card .card-img-top {
  height: auto; /* width/height im HTML nur für reservierten Platz */
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

/* Fahrzeugfoto ist klickbar (öffnet die Galerie) */
.car-card picture {
  display: block;
  overflow: hidden;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.car-card-img {
  cursor: pointer;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.car-card-img:hover {
  transform: scale(1.04);
  filter: brightness(1.05);
}

/* Der Body soll den Platz füllen */
.car-card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Beschreibungstext soll flexibel bleiben */
.car-card .card-text {
  flex-grow: 1; /* dehnt sich, damit der Button unten bleibt */
  margin-bottom: 1rem;
}

/* Button immer unten */
.car-card .btn {
  margin-top: auto;
}

/* ---------------------------------------------------
   MODALS (Universal-Modal)
--------------------------------------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-window {
  background: #ffffff;
  width: 90%;
  max-width: 900px;
  max-height: 80vh;
  padding: 24px 30px;
  border-radius: 12px;
  overflow-y: auto;
  box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}

.modal-window h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.modal-text {
  font-size: 1rem;
  line-height: 1.45rem;
  color: #333;
}

.modal-close {
  margin-top: 1rem;
  background: #b89c6d;
  color: #fff;
  padding: 7px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.modal-close:hover {
  background: #9c8454;
}

/* ---------------------------------------------------
   FEEDBACK
--------------------------------------------------- */

.feedback-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35rem;
  white-space: pre-wrap;
}

/* ---------------------------------------------------
   FEEDBACK – schöner "Briefpapier"-Look
--------------------------------------------------- */



.modal-feedback-window {
  max-width: 920px;
}

/* Briefpapier-Hintergrund */
.feedback-letter-paper {
  background: #fffdf8;
  border: 1px solid #e0d8c8;
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: inset 0 0 25px rgba(0,0,0,0.05);
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 32px,
      rgba(185,185,185,0.15) 33px
    );
}

/* Handschriftliche Überschrift */
.feedback-script-title {
  font-family: "Dancing Script", cursive;
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 1.6rem;
  color: #b89c6d;
}

.feedback-letter-text {
  font-family: "Dancing Script", cursive;
  font-size: 1.8rem;
  line-height: 1.8rem;
  white-space: pre-wrap;
  color: #3b372f;
  padding: 0 12px;
}



.feedback-letter-text p {
  margin-bottom: 1.2rem;
}

/* Einzelne Einträge aus deiner TXT-Datei */
.feedback-entry {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 1.8rem;
}

/* Das Fenster selbst bleibt schlicht, das Briefpapier liegt innen
   (vorher war der Linien-Hintergrund doppelt gezeichnet) */
#modal-feedback .modal-window {
  background: #fdfaf4;
}



/* Mobile */
@media (max-width: 768px) {
  .feedback-letter-paper {
    padding: 22px 20px;
  }
  .feedback-script-title {
    font-size: 2rem;
  }
  .feedback-letter-text {
    font-family: "Poppins", sans-serif;
    font-size: 0.95rem;
    line-height: 1.5rem;
    color: #3b372f;
    padding: 0 0px;
  }
}



/* ---------------------------------------------------
   MOBILE
--------------------------------------------------- */

@media (max-width: 768px) {

  body {
    padding-top: 72px;
  }

  /* Logo und Schriftzug kleiner, damit Navbar einzeilig bleibt
     (vorher rutschte der Menü-Button in eine zweite Zeile und
     verdeckte den Seitenanfang) */
  .navbar .logo {
    height: 44px;
  }

  .brand-text {
    font-size: 1.25rem;
  }

  .hero-section {
    padding: 1.5rem 0;
    min-height: auto;
  }

  .hero-img-compact,
  .hero-image {
    max-height: 220px;
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .highlight-img {
    max-width: 120px;
  }

  .modal-window {
    padding: 18px;
  }

  .modal-text {
    font-size: 1rem;
    line-height: 1.45rem;
  }
}
  

/* ---------------------------------------------------
   FOOTER
--------------------------------------------------- */

.footer {
  background: #2b2b2b;
  color: #ccc;
  padding: 1.2rem 0;
  font-size: 0.9rem;
  margin-top: 3rem;
}

.footer span {
  color: #aaa;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-link {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #b89c6d;
}

/* ---------------------------------------------------
   WHATSAPP FLOATING BUTTON
--------------------------------------------------- */

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
}

.whatsapp-float i,
.whatsapp-float span {
  line-height: 60px;
}

/* ---------------------------------------------------
   HELFERKLASSEN
--------------------------------------------------- */

.d-none {
  display: none !important;
}

/* ---------------------------------------------------
   RECHTSTEXTE (Impressum, Datenschutz)
--------------------------------------------------- */

.legal-text h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-text h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.25rem;
}

.section-h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
}

/* ---------------------------------------------------
   KONTAKTFORMULAR
--------------------------------------------------- */

/* Honeypot gegen Spam-Bots: für Menschen unsichtbar */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------
   LIGHTBOX (Galerie & Fotoalbum)
--------------------------------------------------- */

.js-lightbox img {
  cursor: zoom-in;
  border-radius: 6px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2500;
}

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-btn {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible {
  background: #b89c6d;
  outline: none;
}

.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev  { left: 16px;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 16px; top: 50%; transform: translateY(-50%); }

.lightbox-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #ddd;
  font-size: 0.9rem;
}

/* ---------------------------------------------------
   BUTTONS IN HAUSFARBE (Gold/Messing)
   #b89c6d ist für weiße Schrift zu hell (Kontrast 2,6:1).
   Buttons nutzen daher den dunkleren Ton #86693a (5,1:1, WCAG AA).
--------------------------------------------------- */

:root {
  --gold: #b89c6d;
  --gold-dunkel: #86693a;
  --gold-dunkler: #6b532c;
  /* Links (Telefon, E-Mail, Datenschutz ...) ebenfalls in Gold statt Blau */
  --bs-link-color: #86693a;
  --bs-link-color-rgb: 134, 105, 58;
  --bs-link-hover-color: #6b532c;
  --bs-link-hover-color-rgb: 107, 83, 44;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--gold-dunkel);
  --bs-btn-border-color: var(--gold-dunkel);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--gold-dunkler);
  --bs-btn-hover-border-color: var(--gold-dunkler);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--gold-dunkler);
  --bs-btn-active-border-color: var(--gold-dunkler);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--gold-dunkel);
  --bs-btn-disabled-border-color: var(--gold-dunkel);
  --bs-btn-focus-shadow-rgb: 184, 156, 109;
}

.btn-outline-primary {
  --bs-btn-color: var(--gold-dunkel);
  --bs-btn-border-color: var(--gold-dunkel);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--gold-dunkel);
  --bs-btn-hover-border-color: var(--gold-dunkel);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--gold-dunkler);
  --bs-btn-active-border-color: var(--gold-dunkler);
  --bs-btn-disabled-color: var(--gold-dunkel);
  --bs-btn-disabled-border-color: var(--gold-dunkel);
  --bs-btn-focus-shadow-rgb: 184, 156, 109;
}

/* Formularfelder: goldener statt blauer Fokusrahmen */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.25rem rgba(184, 156, 109, 0.3);
}

.form-check-input:checked {
  background-color: var(--gold-dunkel);
  border-color: var(--gold-dunkel);
}

/* Modal-Schließen-Button ebenfalls lesbar */
.modal-close {
  background: var(--gold-dunkel);
}

.modal-close:hover {
  background: var(--gold-dunkler);
}
