/* =========================================
   Mustermann Besaitungsservice - Styles
   Farbschema: Weiß / Grau / Schwarz / Rot
   ========================================= */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f5;
  --color-text: #1a1a1a;
  --color-muted: #6b6b6b;
  --color-border: #e0e0e0;
  --color-accent: #E63946;       /* Klassisches Rot */
  --color-accent-dark: #b8222e;
  --color-black: #000000;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
  --radius: 10px;
  --transition: all 0.3s ease;
}

* { box-sizing: border-box; } 

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  margin: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.01em; }

a { color: var(--color-accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-accent-dark); }

.text-accent { color: var(--color-accent); }

/* ====== NAVBAR ====== */
.navbar-custom {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 0.6rem 0;
}
.navbar-custom .nav-link {
  color: var(--color-text);
  font-weight: 500;
  margin: 0 0.4rem;
  position: relative;
  transition: var(--transition);
}
.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--color-accent);
  transition: var(--transition);
  transform: translateX(-50%);
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active { color: var(--color-accent); }
.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after { width: 100%; }

/* Sprachumschalter */
.lang-switcher .lang-btn {
  border: 2px solid var(--color-border);
  background: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: var(--transition);
}
.lang-switcher .lang-btn:hover {
  border-color: var(--color-accent);
  transform: scale(1.05);
}
.lang-switcher .lang-btn.active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
}

/* Flaggen als PNG-Bilder */
.flag-icon {
  display: block;
  width: 24px;
  height: 24px;               /* quadratisch, passt gut in den runden Button */
  border-radius: 50%;         /* runde Flaggen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Deutsche Flagge */
.flag-de {
  background-image: url('../img/flag-de.png');
}

/* Englische Flagge */
.flag-en {
  background-image: url('../img/flag-en.png');
}






/* ====== SECTIONS ====== */
.section {
  padding: 6rem 0 4rem;
  scroll-margin-top: 70px;
}
.section-alt { background: var(--color-bg-alt); }
.section-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  margin-top: 2.5rem; /*20260710*/
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

/* ====== FILTER BAR ====== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter-chip {
  background: #fff;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.filter-chip:hover { border-color: var(--color-accent); color: var(--color-accent); }
.filter-chip.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.filter-reset {
  background: transparent;
  border: none;
  color: var(--color-muted);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}
.filter-reset:hover { color: var(--color-accent); }

/* ====== TILE GRID ====== */
.tile-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
@media (min-width: 1200px) {
  .tile-grid { grid-template-columns: repeat(4, 1fr); }
}

.tile {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.tile-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: var(--color-bg-alt);
  overflow: hidden;
}
.tile-image-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.tile:hover .tile-image-wrapper img { transform: scale(1.05); }

/* Hover-Overlay (Desktop) */
.tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  font-size: 0.85rem;
}
.tile-overlay strong { color: var(--color-accent); }
.tile-overlay p { margin: 0.2rem 0; }

@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile-overlay { opacity: 1; }
}

/* Always-visible info (Mobile) */
.tile-info {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--color-border);
}
.tile-info .brand { font-size: 0.75rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.tile-info .model { font-weight: 600; font-size: 1rem; margin: 0.1rem 0; color: var(--color-text); }
.tile-info .price { font-weight: 700; color: var(--color-accent); font-size: 1.05rem; }

/* Hide always-visible info on hover-capable devices to keep it clean */
@media (hover: hover) and (pointer: fine) {
  .tile-info .price { display: inline-block; }
}

/* ====== MODAL (Tile Detail) ====== */
.modal-content { border: none; border-radius: var(--radius); overflow: hidden; }
.btn-close-custom {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-close-custom:hover { background: var(--color-accent); }

.tile-detail { padding: 1rem; }
.tile-detail img { width: 100%; max-height: 400px; object-fit: contain; border-radius: var(--radius); margin-bottom: 1.5rem; background: var(--color-bg-alt); }
.tile-detail h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.tile-detail .subtitle { color: var(--color-muted); margin-bottom: 1rem; }
.tile-detail .props { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.tile-detail .props span {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
}
.tile-detail .price-big {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 1rem 0;
}
.tile-detail .meta { display: flex; gap: 2rem; flex-wrap: wrap; color: var(--color-muted); margin-bottom: 1rem; }
.tile-detail .meta span strong { color: var(--color-text); }

/* ====== SERVICE TABLE ====== */
.service-table {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.service-table thead {
  background: var(--color-black);
  color: #fff;
}
.service-table th { padding: 1rem; font-weight: 600; border: none; }
.service-table td { padding: 1rem; vertical-align: middle; }
.service-table tbody tr:hover { background: var(--color-bg-alt); }
.service-table .price-cell { font-weight: 700; color: var(--color-accent); white-space: nowrap; }
.service-note {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
  font-style: italic;
}

/* ====== CONTACT ====== */
.contact-card {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.contact-card h3 { color: var(--color-accent); margin-bottom: 1rem; }
.contact-card hr { border-color: var(--color-border); }
.contact-card a { color: var(--color-text); }
.contact-card a:hover { color: var(--color-accent); }
.contact-card i { margin-right: 0.5rem; }
.qr-code { width: 300px; height: 342px; border-radius: 8px; margin-top: 0.5rem; }
.social-icons { display: flex; gap: 1rem; }
.social-icons a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-black);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}
.social-icons a:hover { background: var(--color-accent); transform: translateY(-2px); }

/* DSGVO Maps */
.maps-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-bg-alt);
  height: 100%;
  min-height: 400px;
  position: relative;
}
.maps-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  height: 100%;
  min-height: 400px;
}
.maps-placeholder i { font-size: 3rem; color: var(--color-accent); margin-bottom: 1rem; }
.maps-placeholder p { color: var(--color-muted); margin-bottom: 1.5rem; }
.maps-wrapper iframe { width: 100%; height: 100%; min-height: 400px; border: 0; }

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  transition: var(--transition);
}
.btn-accent:hover { background: var(--color-accent-dark); color: #fff; }

/* ====== ACCORDION (FAQs) ====== */
.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.accordion-button {
  font-weight: 500;
  background: #fff;
  color: var(--color-text);
  padding: 1.2rem 1.5rem;
}
.accordion-button:not(.collapsed) {
  background: var(--color-accent);
  color: #fff;
  box-shadow: none;
}
.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}
.accordion-button:focus { box-shadow: none; border: none; }
.accordion-body { padding: 1.5rem; line-height: 1.7; }
.accordion-body img { max-width: 100%; height: auto; border-radius: 6px; margin: 0.5rem 0; }
.accordion-body table { width: 100%; margin: 0.5rem 0; }
.accordion-body th, .accordion-body td { padding: 0.5rem; border: 1px solid var(--color-border); }
.accordion-body th { background: var(--color-bg-alt); }

/* ====== FOOTER ====== */
.footer {
  background: var(--color-black);
  color: #ccc;
  padding: 2rem 0;
  text-align: center;
}
.footer p { margin: 0 0 0.5rem 0; }
.footer-links a { color: #ccc; margin: 0 0.5rem; }
.footer-links a:hover { color: var(--color-accent); }
.footer-links span { color: #555; }

/* ====== RESPONSIVE ====== */
@media (max-width: 991px) {
  .navbar-custom .nav-link { margin: 0.3rem 0; }
  .lang-switcher { margin-top: 0.8rem; }
  .section { padding: 4rem 0 3rem; }
  .section-title { font-size: 1.8rem; }
}

@media (max-width: 576px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .tile-info { padding: 0.5rem 0.75rem; }
  .tile-info .model { font-size: 0.85rem; }
  .tile-info .price { font-size: 0.95rem; }
  .section-title { font-size: 1.6rem; }
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.5s ease forwards; }



/* ====== IMAGE MODAL (FAQ Lightbox) ====== */
#imageModal .modal-content {
  background: transparent;
  box-shadow: none;
}
#imageModal .modal-body img {
  max-height: 85vh;
  width: auto;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
#imageModal .btn-close-custom {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
}
#imageModal .btn-close-custom:hover {
  background: var(--color-accent);
  color: #fff;
}
#imageModal .modal-backdrop.show {
  opacity: 0.9;
}

/* Klickbare FAQ-Bild-Links */
.faq-image-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-accent);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  margin: 0.3rem 0;
}
.faq-image-link:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  transform: translateY(-1px);
}
.faq-image-link i {
  font-size: 1.1rem;
}
