/*
Theme Name:   Spessart Detailing Child
Theme URI:    https://spessartdetailing.de
Description:  Kadence Child Theme für Spessart Detailing
Author:       Spessart Detailing
Template:     kadence
Version:      2.3.0
Text Domain:  spessart-detailing
*/

/* ============================================================
   CSS VARIABLEN — Spessart Detailing Farbpalette
   ============================================================ */
:root {
  --sd-black:       #0a0a0a;
  --sd-dark:        #0f0f0f;
  --sd-card:        #141414;
  --sd-border:      #1e2e1e;
  --sd-green:       #7ed321;
  --sd-green-dark:  #5fa818;
  --sd-green-glow:  rgba(126, 211, 33, 0.15);
  --sd-white:       #ffffff;
  --sd-gray:        #888888;
  --sd-gray-light:  #cccccc;
  --sd-font:        'Barlow', 'Oswald', sans-serif;
  --sd-font-body:   'Barlow', sans-serif;
  --sd-radius:      10px;
  --sd-radius-lg:   16px;
  --sd-transition:  0.25s ease;
}

/* ============================================================
   GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,500;0,600;0,700;0,900;1,400&family=Oswald:wght@400;500;600;700&display=swap');

/* ============================================================
   GLOBALE RESET & BASIS
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--sd-black);
  color: var(--sd-white);
  font-family: var(--sd-font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sd-green);
  text-decoration: none;
  transition: color var(--sd-transition);
}

a:hover {
  color: var(--sd-green-dark);
}

/* ============================================================
   TYPOGRAFIE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  color: var(--sd-white);
  line-height: 1.2;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p {
  margin-bottom: 1rem;
  color: var(--sd-gray-light);
}

.sd-highlight {
  color: var(--sd-green);
}

/* ============================================================
   LAYOUT CONTAINER
   ============================================================ */
.sd-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sd-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--sd-border);
}

.sd-section-label {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sd-green);
  display: block;
  margin-bottom: 0.5rem;
}

.sd-section-title {
  margin-bottom: 0.5rem;
}

.sd-section-sub {
  font-size: 15px;
  color: var(--sd-gray);
  margin-bottom: 3rem;
  max-width: 560px;
}

/* ============================================================
   HEADER / NAVIGATION (Kadence Override)
   ============================================================ */
.site-header,
#masthead {
  background: rgba(10, 10, 10, 0.97) !important;
  border-bottom: 1px solid var(--sd-border) !important;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  /* Фиксируем высоту — Kadence не должен сжимать при скролле */
  min-height: unset !important;
  height: auto !important;
  transition: none !important;
}

/* Kadence добавляет sticky-shrink класс при скролле — блокируем */
.site-header.kadence-sticky-header--active,
#masthead.kadence-sticky-header--active,
.site-header[data-sticky="true"],
#masthead[data-sticky="true"] {
  transform: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  height: auto !important;
}

/* Внутренние контейнеры не должны менять высоту */
.site-header .header-inner,
.site-header .site-header-row,
#masthead .header-inner,
#masthead .site-header-row {
  min-height: unset !important;
  height: auto !important;
  transition: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Логотип не масштабируется */
.site-header .site-branding,
#masthead .site-branding {
  transform: none !important;
  transition: none !important;
}

.site-branding .site-title,
.site-branding .site-title a {
  font-family: 'Oswald', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.6rem !important;
  color: var(--sd-green) !important;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Nav links */
.main-navigation a,
.primary-menu a,
.kadence-navigation a {
  font-family: 'Barlow', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--sd-gray-light) !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color var(--sd-transition) !important;
}

.main-navigation a:hover,
.primary-menu a:hover,
.kadence-navigation a:hover {
  color: var(--sd-green) !important;
}

/* Nav CTA Button */
.header-cta-btn,
.nav-cta {
  background: var(--sd-green) !important;
  color: var(--sd-black) !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
  border-radius: var(--sd-radius) !important;
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background var(--sd-transition) !important;
}

.header-cta-btn:hover,
.nav-cta:hover {
  background: var(--sd-green-dark) !important;
}

/* ============================================================
   HERO SEKTION
   ============================================================ */
.sd-hero {
  background: var(--sd-dark);
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--sd-border);
}

.sd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(126, 211, 33, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(126, 211, 33, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

/* Vollbreite Hero — kein Grid */
.sd-hero--full .sd-container {
  position: relative;
  z-index: 1;
  display: block;
}

.sd-hero-content--full {
  max-width: 860px;  /* Text nicht zu breit — gute Lesbarkeit */
}

.sd-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sd-green-glow);
  border: 1px solid rgba(126, 211, 33, 0.3);
  color: var(--sd-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 1.5rem;
}

.sd-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);  /* Größer da kein Bild konkurriert */
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.sd-hero-desc {
  font-size: 18px;              /* Größer da mehr Platz */
  color: var(--sd-gray);
  margin-bottom: 2.5rem;
  max-width: 620px;             /* Breiter da kein Bild daneben */
  line-height: 1.8;
}

.sd-hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS (ruhige Hover-States — ohne Eck-Stroke-Animation)
   ============================================================ */
.sd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 28px;
  border-radius: var(--sd-radius);
  cursor: pointer;
  transition:
    transform 0.22s ease,
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
  text-decoration: none;
  position: relative;
  overflow: visible;
  background: transparent;
  color: var(--sd-white);
  border: 2px solid rgba(126, 211, 33, 0.45);
  box-shadow: none;
}

.sd-btn:hover {
  color: var(--sd-white);
  background: rgba(126, 211, 33, 0.12);
  border-color: var(--sd-green);
  box-shadow: 0 0 0 1px rgba(126, 211, 33, 0.35), 0 8px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.sd-btn:focus-visible {
  outline: 2px solid var(--sd-green);
  outline-offset: 3px;
}

/* Grün = gefüllt nur beim Klick */
.sd-btn:active,
.sd-btn.sd-btn--active {
  background: var(--sd-green) !important;
  color: var(--sd-black) !important;
  border-color: var(--sd-green) !important;
  box-shadow: 0 2px 12px rgba(126, 211, 33, 0.35) !important;
  transform: translateY(0) scale(0.98);
}

.sd-btn-primary {
  color: var(--sd-white);
  border-color: rgba(126, 211, 33, 0.55);
}

.sd-btn-primary:hover {
  background: rgba(126, 211, 33, 0.16);
}

.sd-btn-outline {
  color: var(--sd-white);
  border-color: rgba(126, 211, 33, 0.38);
}

.sd-btn-outline:hover {
  background: rgba(126, 211, 33, 0.1);
}

/* Preiskarte Buttons — auch outline */
.sd-price-card .sd-btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* ============================================================
   LEISTUNGEN (Services) CARDS
   ============================================================ */
.sd-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .sd-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .sd-services-grid {
    grid-template-columns: 1fr;
  }
}

.sd-service-card {
  background: var(--sd-card);
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius-lg);
  padding: 2rem 1.5rem;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-break: break-word;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-shadow: none;
}

.sd-service-card:hover {
  background: rgba(126, 211, 33, 0.06);
  border-color: var(--sd-green);
  box-shadow: 0 0 0 1px rgba(126, 211, 33, 0.25), 0 10px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px);
}

.sd-service-card:focus-visible {
  outline: 2px solid var(--sd-green);
  outline-offset: 3px;
}

/* Pfeil-Indikator rechts oben beim Hover */
.sd-service-card .sd-service-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 16px;
  color: var(--sd-green);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sd-service-card:hover .sd-service-arrow {
  opacity: 1;
  transform: translateX(0);
}

.sd-service-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;             /* verhindert Schrumpfen */
  background: var(--sd-green-glow);
  border: 1px solid rgba(126, 211, 33, 0.3);
  border-radius: var(--sd-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 22px;
}

.sd-service-card h3 {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  margin-bottom: 0.75rem;
  color: var(--sd-white);
  word-break: break-word;
  hyphens: auto;
  line-height: 1.3;
}

.sd-service-card p {
  font-size: 14px;
  color: var(--sd-gray);
  margin: 0;
  line-height: 1.6;
  flex-grow: 1;               /* füllt verfügbaren Platz, Preis bleibt unten */
  word-break: break-word;
}

.sd-service-price {
  display: block;             /* immer in eigener Zeile */
  margin-top: 1rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  color: var(--sd-green);
  font-weight: 600;
  white-space: nowrap;
}

/* ============================================================
   PREISLISTE (Preise)
   ============================================================ */
.sd-price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .sd-price-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .sd-price-grid {
    grid-template-columns: 1fr;
  }
}

.sd-price-card {
  background: var(--sd-card);
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius-lg);
  padding: 2rem;
  transition: border-color var(--sd-transition);
  display: flex;
  flex-direction: column;
  min-width: 0;               /* Grid-Überlauf verhindern */
  word-break: break-word;
}

.sd-price-card.sd-price-featured {
  border-color: var(--sd-green);
  position: relative;
}

.sd-price-featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sd-green);
  color: var(--sd-black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.sd-price-card h3 {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 0.25rem;
  word-break: break-word;
  hyphens: auto;
  line-height: 1.2;
}

.sd-price-amount {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--sd-green);
  font-weight: 700;
  line-height: 1.1;
  margin: 1rem 0;
  white-space: nowrap;        /* Preis bleibt in einer Zeile */
}

.sd-price-amount small {
  font-size: 1rem;
  color: var(--sd-gray);
  font-weight: 400;
}

.sd-price-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  border-top: 1px solid var(--sd-border);
  padding-top: 1.5rem;
  flex-grow: 1;              /* füllt Platz, Button bleibt unten */
}

.sd-price-features li {
  font-size: 14px;
  color: var(--sd-gray-light);
  padding: 6px 0 6px 24px;
  position: relative;
  word-break: break-word;
  line-height: 1.5;
}

.sd-price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--sd-green);
  font-weight: 700;
  line-height: 1.5;
}

.sd-extras-section {
  background: var(--sd-card);
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius-lg);
  padding: 2rem;
  margin-top: 2rem;
}

.sd-extras-section h3 {
  font-size: 1.2rem;
  color: var(--sd-green);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sd-border);
}

.sd-extras-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
}

.sd-extras-list li {
  display: block !important;
  width: 100% !important;
  padding: 14px 16px !important;
  margin-bottom: 8px !important;
  background: rgba(255,255,255,0.03) !important;
  border-radius: 8px !important;
  border: 1px solid var(--sd-border) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.sd-extras-list li .extras-text {
  display: block !important;
  color: var(--sd-gray-light) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  word-break: break-word !important;
  margin-bottom: 6px !important;
}

.sd-extras-list li span:last-child {
  display: block !important;
  color: var(--sd-green) !important;
  font-weight: 700 !important;
  font-family: 'Oswald', sans-serif !important;
  font-size: 1.1rem !important;
  line-height: 1 !important;
}

/* ============================================================
   GALERIE (Vorher / Nachher) — Crossfade beim Hover
   ============================================================ */
.sd-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .sd-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .sd-gallery-grid { grid-template-columns: 1fr; }
}

/* Karte — kein Link mehr, kein Klick-Redirect */
.sd-gallery-item {
  display: block;
  border-radius: var(--sd-radius-lg);
  overflow: hidden;
  border: 1px solid var(--sd-border);
  position: relative;
  aspect-ratio: 4/3;
  background: var(--sd-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
  cursor: default;
}

.sd-gallery-item:hover {
  transform: scale(1.02);
  border-color: rgba(126, 211, 33, 0.5);
}

/* Beide Bilder liegen übereinander */
.sd-gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.55s ease;
  display: block;
}

/* Vorher-Bild: sichtbar */
.sd-gallery-img-before {
  opacity: 1;
  z-index: 1;
}

/* Nachher-Bild: versteckt, liegt darunter */
.sd-gallery-img-after {
  opacity: 0;
  z-index: 2;
}

/* Beim Hover: Nachher-Bild blendet ein */
.sd-gallery-item:hover .sd-gallery-img-after {
  opacity: 1;
}
.sd-gallery-item:hover .sd-gallery-img-before {
  opacity: 0;
}

/* Label unten: zeigt aktuellen Zustand */
.sd-gallery-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  transition: opacity 0.2s ease;
}

.sd-gallery-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--sd-white);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Badge wechselt beim Hover */
.sd-gallery-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.sd-gallery-tag-before {
  background: rgba(255,255,255,0.15);
  color: #ccc;
}

.sd-gallery-tag-after {
  background: rgba(126, 211, 33, 0.2);
  color: var(--sd-green);
  border: 1px solid rgba(126, 211, 33, 0.4);
}

/* Tag-Wechsel: JS toggled .is-hovered */
.sd-gallery-item .sd-gallery-tag-before { display: inline-block; }
.sd-gallery-item .sd-gallery-tag-after  { display: none; }
.sd-gallery-item:hover .sd-gallery-tag-before { display: none; }
.sd-gallery-item:hover .sd-gallery-tag-after  { display: inline-block; }

/* Hover-Hinweis oben rechts */
.sd-gallery-hint {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.6);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 10;
  transition: opacity 0.2s;
}

.sd-gallery-item:hover .sd-gallery-hint {
  opacity: 0;
}

/* ============================================================
   GALERIE DETAIL-SEITE (single-galerie.php)
   ============================================================ */
.sd-galerie-detail {
  padding: 4rem 0;
}

.sd-galerie-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sd-gray);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.sd-galerie-detail-back:hover {
  color: var(--sd-green);
}

.sd-galerie-detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.sd-galerie-detail-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0;
}

.sd-galerie-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (max-width: 640px) {
  .sd-galerie-photos { grid-template-columns: 1fr; }
}

.sd-galerie-photo-wrap {
  border-radius: var(--sd-radius-lg);
  overflow: hidden;
  border: 1px solid var(--sd-border);
  position: relative;
}

.sd-galerie-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/3;
}

.sd-galerie-photo-label {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  border-radius: 20px;
}

.sd-galerie-photo-label.before {
  background: rgba(255,255,255,0.15);
  color: #ccc;
}

.sd-galerie-photo-label.after {
  background: rgba(126, 211, 33, 0.2);
  color: var(--sd-green);
  border: 1px solid rgba(126, 211, 33, 0.4);
}

.sd-galerie-content {
  background: var(--sd-card);
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.sd-galerie-content h2 {
  font-size: 1.2rem;
  color: var(--sd-green);
  margin-bottom: 1rem;
}

.sd-galerie-content p {
  color: var(--sd-gray-light);
  line-height: 1.8;
  margin-bottom: 0;
}

.sd-galerie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.sd-galerie-meta-item {
  background: var(--sd-card);
  border: 1px solid var(--sd-border);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
}

.sd-galerie-meta-item strong {
  display: block;
  color: var(--sd-green);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

/* ============================================================
   ONLINE TERMINBUCHUNG (Formular)
   ============================================================ */
.sd-booking {
  background: var(--sd-dark);
}

.sd-booking .sd-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.sd-booking-info h2 {
  margin-bottom: 1rem;
}

.sd-booking-info p {
  color: var(--sd-gray);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.sd-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  font-size: 15px;
  color: var(--sd-gray-light);
}

.sd-contact-icon {
  width: 36px;
  height: 36px;
  background: var(--sd-green-glow);
  border: 1px solid rgba(126, 211, 33, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.sd-booking-form {
  background: var(--sd-card);
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius-lg);
  padding: 2.5rem;
}

.sd-booking-form h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sd-border);
}

.sd-form-success {
  background: rgba(126,211,33,0.1);
  border: 1px solid rgba(126,211,33,0.4);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  color: var(--sd-green);
  line-height: 1.6;
}

.sd-form-errors {
  background: rgba(226,75,74,0.1);
  border: 1px solid rgba(226,75,74,0.4);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  color: #f09595;
  font-size: 14px;
}

.sd-form-errors p { margin: 0; padding: 2px 0; }

.sd-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sd-form-group {
  margin-bottom: 1.25rem;
}

.sd-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sd-gray);
  margin-bottom: 6px;
}

.sd-form-group input,
.sd-form-group select,
.sd-form-group textarea {
  width: 100%;
  background: var(--sd-dark);
  border: 1px solid var(--sd-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--sd-white);
  font-family: 'Barlow', sans-serif;
  transition: border-color var(--sd-transition);
  outline: none;
}

.sd-form-group input:focus,
.sd-form-group select:focus,
.sd-form-group textarea:focus {
  border-color: var(--sd-green);
}

.sd-form-group input::placeholder,
.sd-form-group textarea::placeholder {
  color: #555;
}

.sd-form-group select option {
  background: var(--sd-dark);
}

.sd-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.sd-footer {
  background: var(--sd-dark);
  border-top: 1px solid var(--sd-border);
  padding: 3rem 0 1.5rem;
}

.sd-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.sd-footer-brand h3 {
  font-size: 1.4rem;
  color: var(--sd-green);
  margin-bottom: 0.75rem;
}

.sd-footer-brand p {
  font-size: 14px;
  color: var(--sd-gray);
  line-height: 1.7;
  max-width: 280px;
}

.sd-footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--sd-white);
  margin-bottom: 1.25rem;
}

.sd-footer-links {
  list-style: none;
  padding: 0;
}

.sd-footer-links li {
  margin-bottom: 0.6rem;
}

.sd-footer-links a {
  font-size: 14px;
  color: var(--sd-gray);
  transition: color var(--sd-transition);
}

.sd-footer-links a:hover {
  color: var(--sd-green);
}

.sd-footer-bottom {
  border-top: 1px solid var(--sd-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--sd-gray);
  flex-wrap: wrap;
  gap: 1rem;
}

.sd-footer-bottom a {
  color: var(--sd-gray);
}

.sd-footer-bottom a:hover {
  color: var(--sd-green);
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .sd-section {
    padding: 3rem 0;
  }

  .sd-hero .sd-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sd-hero-visual {
    display: none;
  }

  .sd-booking .sd-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sd-form-row {
    grid-template-columns: 1fr;
  }

  .sd-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sd-hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .sd-footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .sd-hero {
    padding: 4rem 0 3rem;
  }

  .sd-hero-btns {
    flex-direction: column;
  }

  .sd-btn {
    width: 100%;
    justify-content: center;
  }

  .sd-hero-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   KADENCE OVERRIDES (globale Hintergrundfarben)
   ============================================================ */
.site,
.site-content,
#content,
.content-area,
.entry-content,
.wp-site-blocks {
  background-color: var(--sd-black) !important;
}

/* Kadence: eigene Grid-Layouts nicht überschreiben lassen */
.entry-content .sd-extras-list,
.entry-content .sd-services-grid,
.entry-content .sd-price-grid,
.entry-content .sd-gallery-grid {
  all: revert;
}

.entry-content .sd-extras-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  width: 100% !important;
}

.entry-content .sd-extras-list li,
.sd-extras-list li {
  display: block !important;
  float: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 14px 16px !important;
  margin: 0 0 8px 0 !important;
  background: rgba(255,255,255,0.03) !important;
  border-radius: 8px !important;
  border: 1px solid var(--sd-border) !important;
  overflow: hidden !important;
  position: static !important;
}

/* Kadence Buttons überschreiben */
.wp-block-button .wp-block-button__link {
  font-family: 'Barlow', sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

/* Widgets */
.widget-title {
  font-family: 'Oswald', sans-serif !important;
  text-transform: uppercase !important;
}

/* WooCommerce falls vorhanden */
.woocommerce a.button,
.woocommerce button.button {
  background: var(--sd-green) !important;
  color: var(--sd-black) !important;
  font-weight: 700 !important;
}

/* ============================================================
   LEISTUNG DETAIL-SEITE (single-leistung.php)
   ============================================================ */
.sd-leistung-detail {
  padding: 4rem 0;
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.sd-leistung-detail .sd-container {
  max-width: 1320px;
}

.sd-leistung-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sd-gray);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 2.5rem;
  text-decoration: none;
  transition: color 0.2s;
}

.sd-leistung-back:hover { color: var(--sd-green); }

.sd-leistung-hero {
  display: block;          /* Single column — kein Grid mehr */
  margin-bottom: 4rem;
  min-width: 0;
}

.sd-leistung-hero-content,
.sd-leistung-hero-image {
  min-width: 0;
}

/* Badge entfernen */
.sd-leistung-badge {
  display: none;
}

.sd-leistung-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

/* Preisbox direkt unter Titel */
.sd-leistung-price-box {
  background: var(--sd-card);
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 560px;
}

.sd-leistung-price-box .sd-price-amount {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  color: var(--sd-green);
  font-weight: 700;
}

.sd-leistung-price-box .sd-price-label {
  font-size: 13px;
  color: var(--sd-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hauptbild: volle Breite der linken Spalte */
.sd-leistung-hero-image-main {
  width: 100%;
  border-radius: var(--sd-radius-lg);
  overflow: hidden;
  border: 1px solid var(--sd-border);
  background: var(--sd-card);
  margin-top: 0.5rem;
}

.sd-leistung-hero-image-main img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: cover;
}

/* Rechte Spalte ausblenden */
.sd-leistung-hero-image[style*="display:none"] {
  display: none !important;
}

/* Список "Im Preis enthalten" (перенесён в карточку) */
.sd-leistung-included {
  margin-bottom: 1.5rem;
}

.sd-leistung-included h2 {
  font-size: 1.2rem;
  color: var(--sd-green);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--sd-border);
}

.sd-leistung-included ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sd-leistung-included ul li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
  color: var(--sd-gray-light);
  font-size: 15px;
  line-height: 1.8;
}

.sd-leistung-included ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sd-green);
  font-weight: 700;
}

.sd-leistung-price-box {
  background: var(--sd-card);
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sd-leistung-price-box .sd-price-amount {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  color: var(--sd-green);
  font-weight: 700;
}

.sd-leistung-price-box .sd-price-label {
  font-size: 13px;
  color: var(--sd-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sd-leistung-hero-image {
  border-radius: var(--sd-radius-lg);
  overflow: hidden;
  border: 1px solid var(--sd-border);
  aspect-ratio: 4/3;
  background: var(--sd-card);
}

.sd-leistung-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Leistung: Foto-Karussell — volle Breite wie img-block */
.sd-leistung-carousel {
  position: relative;
  width: 100%;
  background: var(--sd-card);
  border-radius: var(--sd-radius-lg);
  border: 1px solid var(--sd-border);
  overflow: hidden;
  margin-bottom: 2rem;
}

.sd-leistung-carousel-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.sd-leistung-carousel-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd-leistung-carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.sd-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(126, 211, 33, 0.45);
  background: rgba(10, 10, 10, 0.75);
  color: var(--sd-green);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sd-carousel-btn:hover {
  background: rgba(126, 211, 33, 0.15);
  border-color: var(--sd-green);
  color: var(--sd-white);
}

.sd-carousel-btn:focus-visible {
  outline: 2px solid var(--sd-green);
  outline-offset: 2px;
}

.sd-carousel-prev { left: 10px; }
.sd-carousel-next { right: 10px; }

.sd-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
  pointer-events: none;
}

.sd-carousel-dots button {
  pointer-events: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sd-carousel-dots button[aria-current="true"] {
  background: var(--sd-green);
  transform: scale(1.15);
}

/* Inhalt-Bereich */
.sd-leistung-body {
  display: block; /* nicht mehr verwendet, aber für Kompatibilität */
}

/* Titel */
.sd-leistung-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

/* Bild-Block (einzelnes Bild oder Karussell) — volle Breite */
.sd-leistung-img-block {
  width: 100%;
  border-radius: var(--sd-radius-lg);
  overflow: hidden;
  border: 1px solid var(--sd-border);
  background: var(--sd-card);
  margin-bottom: 2rem;
}

.sd-leistung-img-block img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Beschreibung — volle Breite */
.sd-leistung-description {
  width: 100%;
  background: var(--sd-card);
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  min-width: 0;
  overflow: hidden;
}

/* Details + CTA — unter der Beschreibung, zwei gleichbreite Spalten */
/* CTA-Block — volle Breite */
.sd-leistung-bottom {
  display: block;
  margin-bottom: 3rem;
}

.sd-leistung-cta-box p {
  font-size: 14px;
  color: var(--sd-gray);
  line-height: 1.6;
  margin-bottom: 1rem;
}


/* Gutenberg / Kadence: Inhalt darf die Spalte nicht sprengen (alignfull / riesige Überschriften) */
.sd-leistung-entry {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.sd-leistung-entry > * {
  max-width: 100%;
}

.sd-leistung-entry .alignwide,
.sd-leistung-entry .alignfull,
.sd-leistung-entry .wp-block-group.alignwide,
.sd-leistung-entry .wp-block-group.alignfull,
.sd-leistung-entry .wp-block-columns.alignwide,
.sd-leistung-entry .wp-block-columns.alignfull,
.sd-leistung-entry .wp-block-cover.alignwide,
.sd-leistung-entry .wp-block-cover.alignfull {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  left: auto !important;
  right: auto !important;
}

.sd-leistung-entry .wp-block-cover {
  min-height: 12rem !important;
  padding: 1.25rem !important;
}

.sd-leistung-entry .wp-block-media-text {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.sd-leistung-entry .wp-block-media-text.is-stacked-on-mobile {
  display: block;
}

.sd-leistung-entry h1,
.sd-leistung-entry h2,
.sd-leistung-entry h3,
.sd-leistung-entry h4,
.sd-leistung-entry h5,
.sd-leistung-entry h6,
.sd-leistung-entry .wp-block-heading {
  font-size: clamp(1.05rem, 2.4vw, 1.45rem) !important;
  line-height: 1.3 !important;
  max-width: 100%;
  word-break: break-word;
  text-transform: none;
  letter-spacing: normal;
}

.sd-leistung-entry h1 {
  font-size: clamp(1.2rem, 2.8vw, 1.65rem) !important;
}

.sd-leistung-entry p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--sd-gray-light);
}

.sd-leistung-entry ul,
.sd-leistung-entry ol {
  margin: 0 0 1rem 0;
  padding-left: 1.35rem;
  list-style-position: outside;
}

.sd-leistung-entry ul {
  list-style: disc;
}

.sd-leistung-entry ol {
  list-style: decimal;
}

.sd-leistung-entry ul li,
.sd-leistung-entry ol li {
  margin-bottom: 0.35em;
  padding-left: 0;
}

.sd-leistung-entry ul li::before,
.sd-leistung-entry ol li::before {
  content: none !important;
}

.sd-leistung-entry img,
.sd-leistung-entry .wp-block-image img,
.sd-leistung-entry .wp-block-image figure {
  max-width: 100% !important;
  height: auto !important;
}

.sd-leistung-entry .wp-block-image {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.sd-leistung-entry .wp-block-buttons {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.sd-leistung-entry .wp-block-button .wp-block-button__link {
  white-space: normal !important;
  text-align: center;
}

.sd-leistung-description h2 {
  font-size: 1.2rem;
  color: var(--sd-green);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--sd-border);
}

.sd-leistung-description > p {
  color: var(--sd-gray-light);
  font-size: 15px;
  line-height: 1.8;
}

/* Nur die Liste „Im Preis enthalten“ (direktes Kind von .sd-leistung-description) */
.sd-leistung-description > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sd-leistung-description > ul > li {
  color: var(--sd-gray-light);
  font-size: 15px;
  line-height: 1.8;
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
}

.sd-leistung-description > ul > li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sd-green);
  font-weight: 700;
}

/* Sidebar */
.sd-leistung-info-box {
  background: var(--sd-card);
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sd-leistung-info-box h3 {
  font-size: 1rem;
  color: var(--sd-green);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--sd-border);
}

.sd-leistung-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 14px;
}

.sd-leistung-info-row:last-child { border-bottom: none; }

.sd-leistung-info-row .info-label { color: var(--sd-gray); }
.sd-leistung-info-row .info-value { color: var(--sd-white); font-weight: 600; }

/* ============================================================
   BREADCRUMB — SEO Navigation
   ============================================================ */
.sd-breadcrumb {
  margin-bottom: 1.5rem;
}

.sd-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.sd-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

.sd-breadcrumb a {
  color: var(--sd-gray);
  text-decoration: none;
  transition: color 0.2s;
}

.sd-breadcrumb a:hover {
  color: var(--sd-green);
}

.sd-breadcrumb li:last-child span[itemprop="name"] {
  color: var(--sd-green);
  font-weight: 600;
}

.sd-breadcrumb-sep {
  color: var(--sd-border);
  font-size: 14px;
}

/* ============================================================
   CONTACT FORM 7 — Стилизация под дизайн Spessart Detailing
   ============================================================ */

/* Обёртка формы */
.wpcf7 {
  background: var(--sd-card);
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius-lg);
  padding: 2.5rem;
}

/* Заголовок формы (если есть) */
.wpcf7 .wpcf7-form > p:first-child { display: none; }

/* Поля */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100% !important;
  background: var(--sd-dark) !important;
  border: 1px solid var(--sd-border) !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  color: var(--sd-white) !important;
  font-family: 'Barlow', sans-serif !important;
  transition: border-color 0.25s ease !important;
  outline: none !important;
  box-shadow: none !important;
  display: block !important;
  margin-bottom: 1.25rem !important;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: var(--sd-green) !important;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #555 !important;
}

.wpcf7 textarea {
  min-height: 120px !important;
  resize: vertical !important;
}

/* Labels */
.wpcf7 label,
.wpcf7 .wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
}

.wpcf7 label {
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: var(--sd-gray) !important;
  margin-bottom: 6px !important;
  font-family: 'Barlow', sans-serif !important;
}

/* Submit-Button */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
  width: 100% !important;
  background: transparent !important;
  color: var(--sd-white) !important;
  border: 2px solid rgba(126, 211, 33, 0.6) !important;
  border-radius: var(--sd-radius) !important;
  padding: 14px 28px !important;
  font-family: 'Barlow', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  cursor: pointer !important;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease !important;
  margin-top: 0.5rem !important;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover {
  color: var(--sd-green) !important;
  border-color: var(--sd-green) !important;
}

.wpcf7 input[type="submit"]:active,
.wpcf7 .wpcf7-submit:active {
  background: var(--sd-green) !important;
  color: var(--sd-black) !important;
  transform: scale(0.98) !important;
}

/* Validierungs-Fehler */
.wpcf7 .wpcf7-not-valid-tip {
  color: #f09595 !important;
  font-size: 12px !important;
  margin-top: -1rem !important;
  margin-bottom: 0.75rem !important;
  display: block !important;
}

.wpcf7 .wpcf7-not-valid {
  border-color: #e24b4a !important;
}

/* Erfolgs- & Fehlermeldungen */
.wpcf7 .wpcf7-response-output {
  border-radius: 10px !important;
  padding: 1rem 1.25rem !important;
  font-size: 14px !important;
  margin: 1rem 0 0 !important;
  border-width: 1px !important;
}

.wpcf7 .wpcf7-mail-sent-ok {
  background: rgba(126,211,33,0.1) !important;
  border-color: rgba(126,211,33,0.4) !important;
  color: var(--sd-green) !important;
}

.wpcf7 .wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-spam-blocked {
  background: rgba(226,75,74,0.1) !important;
  border-color: rgba(226,75,74,0.4) !important;
  color: #f09595 !important;
}

.wpcf7 .wpcf7-validation-errors {
  background: rgba(239,159,39,0.1) !important;
  border-color: rgba(239,159,39,0.4) !important;
  color: #fabc40 !important;
}

/* Loading-Spinner beim Absenden */
.wpcf7 .ajax-loader {
  display: none !important;
}

/* Info-Notice wenn CF7 nicht eingerichtet */
.sd-form-notice {
  background: rgba(126,211,33,0.08);
  border: 1px solid rgba(126,211,33,0.25);
  border-radius: var(--sd-radius-lg);
  padding: 1.5rem 2rem;
  color: var(--sd-gray-light);
  font-size: 14px;
  line-height: 1.7;
}

.sd-form-notice strong { color: var(--sd-green); }
.sd-form-notice em { color: var(--sd-gray-light); font-style: normal; font-weight: 600; }

/* ============================================================
   DSGVO-CHECKBOX — Pflichtfeld (Art. 7 DSGVO)
   ============================================================ */

/* Fallback-Formular */
.sd-dsgvo-group {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.sd-dsgvo-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  cursor: pointer !important;
  font-size: 13px !important;
  color: var(--sd-gray-light) !important;
  line-height: 1.6 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
}

.sd-dsgvo-label input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin-top: 2px !important;
  accent-color: var(--sd-green) !important;
  cursor: pointer !important;
  border: 1px solid var(--sd-border) !important;
  background: var(--sd-dark) !important;
  border-radius: 4px !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
}

.sd-dsgvo-label a {
  color: var(--sd-green) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

.sd-dsgvo-label a:hover {
  color: var(--sd-green-dark) !important;
}

.sd-required-mark {
  color: var(--sd-green);
  font-style: normal;
  font-size: 14px;
  margin-left: 2px;
  text-decoration: none;
  cursor: default;
}

/* CF7: acceptance-Feld (wpcf7-acceptance) */
.wpcf7 .wpcf7-acceptance {
  display: block !important;
  margin-bottom: 1.5rem !important;
}

.wpcf7 .wpcf7-acceptance .wpcf7-list-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin-top: 2px !important;
  accent-color: var(--sd-green) !important;
  cursor: pointer !important;
  border: 1px solid var(--sd-border) !important;
  background: var(--sd-dark) !important;
  border-radius: 4px !important;
  padding: 0 !important;
  display: inline-block !important;
  margin-bottom: 0 !important;
}

.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label {
  font-size: 13px !important;
  color: var(--sd-gray-light) !important;
  line-height: 1.6 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
  cursor: pointer !important;
}

.wpcf7 .wpcf7-acceptance a {
  color: var(--sd-green) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

.wpcf7 .wpcf7-acceptance a:hover {
  color: var(--sd-green-dark) !important;
}

/* Fehler-Markierung bei nicht angehakter DSGVO-Checkbox */
.wpcf7 .wpcf7-acceptance.wpcf7-not-valid .wpcf7-list-item-label {
  color: #f09595 !important;
}

/* ============================================================
   FIXES v2.2
   ============================================================ */

/* 1. Белый текст в полях формы (override Kadence) */
.sd-form-group input,
.sd-form-group select,
.sd-form-group textarea {
  color: #ffffff !important;
  cursor: text !important;
}
.sd-form-group textarea {
  cursor: text !important;
}
.sd-booking-form,
.sd-booking-form * {
  cursor: auto;
}
.sd-booking-form input,
.sd-booking-form textarea,
.sd-booking-form select {
  cursor: text !important;
}
.sd-booking-form button,
.sd-booking-form a,
.sd-booking-form label {
  cursor: pointer !important;
}

/* Placeholder чуть светлее чем #555 — читаемо но отличается от значения */
.sd-form-group input::placeholder,
.sd-form-group textarea::placeholder {
  color: #888 !important;
  opacity: 1;
}

/* 2. cursor: default im Formular — kein Verbots-Cursor */
.sd-booking-form,
.sd-booking-form form {
  cursor: default;
}

/* 3. Контакт-ссылки — нормальный вид на мобайл */
.sd-contact-item a {
  color: var(--sd-gray-light) !important;
  text-decoration: none;
  transition: color 0.2s;
}
.sd-contact-item a:hover {
  color: var(--sd-green) !important;
}

/* 4. DSGVO-ошибка — inline подсветка чекбокса */
.sd-dsgvo-group.sd-dsgvo-error label {
  color: #f09595;
}
.sd-dsgvo-group.sd-dsgvo-error input[type="checkbox"] {
  outline: 2px solid #e24b4a;
  outline-offset: 2px;
}
.sd-dsgvo-inline-error {
  display: block;
  color: #f09595;
  font-size: 13px;
  margin-top: 6px;
  padding: 6px 10px;
  background: rgba(226,75,74,0.1);
  border-radius: 6px;
  border-left: 3px solid #e24b4a;
}

/* ============================================================
   FIX: Social Icons im Header — immer horizontal nebeneinander
   (Kadence Header Builder Widget)
   ============================================================ */

/* Allgemeine Kadence Social-Icon-Container */
.header-social-wrap,
.kadence-header-social,
.kadence-blocks-social-links,
.wp-block-social-links,
.kadence-blocks-icon-wrap,
.header-widget .kadence-blocks-social-links,
.header-widget .wp-block-social-links {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}

/* Mobile: gleiche Regel mit höherer Spezifität */
@media (max-width: 767px) {
  .header-social-wrap,
  .kadence-header-social,
  .kadence-blocks-social-links,
  .wp-block-social-links,
  .kadence-blocks-icon-wrap,
  .header-widget .kadence-blocks-social-links,
  .header-widget .wp-block-social-links,
  .mobile-header-widget .kadence-blocks-social-links,
  .mobile-header-widget .wp-block-social-links,
  [class*="header"] .wp-block-social-links,
  [class*="header"] .kadence-blocks-social-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }
}

/* Kadence Header: ul-Liste mit Social-Links */
.site-header ul.wp-block-social-links,
#masthead ul.wp-block-social-links,
.site-header .wp-block-social-links,
#masthead .wp-block-social-links {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-header .wp-block-social-links li,
#masthead .wp-block-social-links li,
.site-header .wp-social-link,
#masthead .wp-social-link {
  display: inline-flex !important;
  margin: 0 !important;
}
