/* ==========================================================================
   Root Variablen (Farben, Größen, Akzente)
   ========================================================================== */
:root {
  --bg-gradient: radial-gradient(circle at center, #fff 0%, #333 60%, #000 100%);
  --accent: #d4af37; /* Gold */
  --text-light: #f0f0f0;
  --text-muted: #ccc;
  --max-width: 1100px;
}

/* ==========================================================================
   Global Styles (Body, Schrift, Grundlayout)
   ========================================================================== */
body {
  font-family: "Times New Roman", Arial, Helvetica, sans-serif; /* Primäre Schrift + Fallbacks */
  background: var(--bg-gradient);
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* Container */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ==========================================================================
   Header
   ========================================================================== */
/* Hamburger Menü für Mobile */
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: rgba(0,0,0,0.9);
  border: 0;
  color: var(--text-light);
}

   .site-header {
  background: rgba(102, 102, 102, 0.9); /* gleichmäßige Hintergrundfarbe hinter Logo & Navi */
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: -10px; /* wie weit der Verlauf in den Content hineinragt */
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(
    to bottom,
    rgba(102, 102, 102, 0.9) 0%,
    rgba(102, 102, 102, 0.7) 70%,
    rgba(102, 102, 102, 0) 100%
  );
  pointer-events: none; /* klicks gehen durch */
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
}

.logo {
  max-height: 60px;
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 1rem;
}

.main-nav a {
  color: var(--text-light);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: background 0.3s;
}

.main-nav a:hover {
  background: var(--accent);
  color: #000;
}



/* ==========================================================================
   Content Bereich
   ========================================================================== */
.content {
  padding: 2rem 0;
  background: rgba(0,0,0,0.6); /* Lesbarkeit */
  border-radius: 10px;
  margin-top: 1rem;
}

.content h1,
.content h2 {
  color: var(--accent);
  text-align: center;
}

.content p {
  color: var(--text-light);
  text-align: center;
}

.content img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
/* Sticky-Footer-Grundlayout */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* schiebt Footer nach unten */
}

   .site-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  background: rgba(0,0,0,0.85);
  color: var(--text-muted);
  margin-top: 2rem;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 900px) {
  .main-nav {
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    background: rgba(0,0,0,0.95);
    position: absolute;
    right: 1rem;
    top: 70px;
    padding: 1rem;
    border-radius: 8px;
  }

  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ==========================================================================
   Team Section
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* ========================================================================== 
   Team Section - Flip Cards (Front / Back) - angepasst, keine fixe Höhe
   ========================================================================== */
/* äußere Karte/Box behält den alten Look (Hintergrund + Padding wie vorher) */
.team-member {
  perspective: 1000px;
  background: rgba(0,0,0,0.5);
  padding: 1rem;
  border-radius: 12px;
  transition: transform 0.3s;
  text-align: center;
}

/* Die eigentliche Flip-Card: KEINE feste Höhe, Größe wird vom Bild bestimmt */
.card {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  border-radius: 8px;
  overflow: visible;
  margin-bottom: 0.75rem; /* Abstand zum Namen darunter */
  -webkit-transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Hover (Desktop) dreht die Karte */
.team-member:hover .card,
.team-member:focus-within .card {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

/* Klasse für Touch / Klick (JS toggelt .is-flipped) */
.card.is-flipped {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

/* Vorder- und Rückseite: Front bleibt im Flow, Back liegt absolut darüber */
.card-side {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
}

/* Front-Seite: im normalen Flow, Bild definiert Höhe */
.card-front {
  position: relative;
  display: block;
  overflow: hidden;
}

.card-front img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* Back-Seite: absolut über dem Front-Inhalt, initial um 180° gedreht */
.card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  background: rgba(0,0,0,0.85);
  color: var(--text-light);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 6px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Rückseiten-Inhalt */
.card-back h3 { margin: 0 0 0.5rem 0; color: var(--accent); font-size: 1.05rem; }
.card-back p  { margin: 0; color: #e6e6e6; font-size: 0.95rem; line-height: 1.4; }

/* Name unter der Karte (wie vorher) */
.team-member .member-name {
  margin: 0;
  font-size: 1.1rem;
  color: var(--accent);
}

/* Mobile: etwas kompakter */
@media (max-width: 600px) {
  .team-member .member-name { font-size: 1rem; }
}

/* ==========================================================================
   Produktübersicht
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-item {
  text-align: center;
  background: rgba(0,0,0,0.5);
  padding: 1.5rem;
  border-radius: 12px;
  transition: transform 0.3s;
}

.product-item:hover { transform: translateY(-5px); }

.product-item img {
  max-width: 150px;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.6));
}

.product-item h2 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: var(--accent);
}

.product-item p {
  font-size: 0.95rem;
  color: #ddd;
}

.product-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: var(--accent);
  color: #000;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s, color 0.3s;
}

.product-link:hover {
  background-color: #fff;
  color: #000;
}

/* ==========================================================================
   Preislisten
   ========================================================================== */
.price-nav {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.price-link {
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  background: var(--accent);
  color: #000;
  font-weight: bold;
  transition: background 0.3s;
}

.price-link:hover { background: #fff; }

.price-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

.price-item {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
}

.price-item span:last-child { font-weight: bold; }

.price-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--accent);
  font-weight: bold;
}

/* ==========================================================================
   Logo Center (z.B. auf Preis-/Teamseiten)
   ========================================================================== */
.logo-center {
  text-align: center;
  margin-bottom: 1.5rem;
}

.logo-center img {
  max-width: 180px; 
  height: auto;
}

/* ==========================================================================
   Service Seite
   ========================================================================== */
.service-intro h1 { color: var(--accent); text-align: center; margin-bottom: 1.5rem; }

.service-intro p { text-align: center; font-size: 1.2rem; margin: 0.5rem 0; }

.divider { border: none; border-top: 2px solid var(--accent); margin: 2rem auto; width: 60%; }

.voucher-section {
  text-align: center;
  margin-top: 2rem;
}

.voucher-section h2 { color: var(--accent); margin-bottom: 1rem; }

.voucher-download a {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.voucher-download a:hover { background: #ff4040; }

.voucher-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #666;
}

/* ==========================================================================
   Galerie
   ========================================================================== */
.gallery-intro { text-align: center; margin-bottom: 40px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.gallery-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

.gallery-item h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #fff;
}

.gallery-item p {
  font-size: 16px;
  color: #ccc;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* ==========================================================================
   Cookie Banner & Modal
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.9);
  color: #fff;
  padding: 1rem 0;
  z-index: 1000;
  font-size: 0.95rem;
}

.cookie-inner {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.cookie-buttons button {
  background-color: var(--accent);
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.cookie-buttons button:hover { background-color: #fff; }

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
}

.cookie-modal-inner {
  background: rgba(0,0,0,0.95);
  color: #fff;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
}

.cookie-modal-inner h2 { color: var(--accent); margin-bottom: 1rem; }
.cookie-modal-inner label { display: block; margin-bottom: 0.5rem; }

.modal-buttons {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.modal-buttons button {
  background: var(--accent);
  color: #000;
  border-radius: 6px;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.modal-buttons button:hover { background: #fff; color: #000; }

/* Aktive Navigation */
.main-nav a.active {
  background: var(--accent);
  color: #000;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  z-index: 9999;
  max-width: 95%;
  width: 450px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.cookie-buttons button {
  margin: 0.3rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
#accept-all { background: var(--accent); color: #000; }
#accept-necessary { background: #555; color: #fff; }
#settings { background: #888; color: #fff; }

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.8);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:10000;
}

.cookie-modal-inner {
  background: #222;
  padding: 2rem;
  border-radius: 12px;
  color: #fff;
  max-width: 400px;
  width: 90%;
}
.cookie-modal-inner h2 { color: var(--accent); margin-bottom: 1rem; }
.cookie-modal-inner label { display:block; margin:0.5rem 0; }
.modal-buttons { margin-top: 1rem; display:flex; justify-content: flex-end; gap:0.5rem; }
.modal-buttons button { padding:0.5rem 1rem; border:none; border-radius:6px; cursor:pointer; }
#save-settings { background: var(--accent); color: #000; }
#close-modal { background:#555; color:#fff; }

/* Mobile Anpassungen */
@media (max-width:600px){
  .cookie-inner { flex-direction: column; text-align:center; }
  .modal-buttons { flex-direction: column; align-items: center; }
}

