/* =============================================================
   ZTM DESIGN – Zukunft Thüringer Meer
   Pixelgenau nach Mockup (Sölden-Style)
   Version 1.0.0 – SINNLA Development Selection
   ============================================================= */

/* ---- CSS CUSTOM PROPERTIES ---- */
:root {
  --ztm-accent:        #017B6E;
  --ztm-accent-light:  #E5F1F0;
  --ztm-dark:          #141414;
  --ztm-text:          #24353f;
  --ztm-white:         #ffffff;
  --ztm-bg-light:      #f5fafd;
  --ztm-bg-blue:       #ebf3ff;
  --ztm-overlay:       rgba(0,0,0,0.45);
  --ztm-font-heading:  'Montserrat', sans-serif;
  --ztm-font-body:     'Open Sans', sans-serif;
  --ztm-nav-h:         80px;
  --ztm-sidebar-w:     480px;
  --ztm-ease:          cubic-bezier(.8,.3,.2,1);
}

/* ---- RESET BASIS ---- */
.ztm-site * { box-sizing: border-box; }
.ztm-site { font-family: var(--ztm-font-body); color: var(--ztm-text); overflow-x: hidden; }
.ztm-site a { text-decoration: none; color: inherit; }
.ztm-site img { max-width: 100%; display: block; }
html { scroll-behavior: smooth; }

/* ---- DIVI ELEMENTE AUSBLENDEN ---- */
#main-header,
#top-header,
.et-l--header,
.et_pb_section.et_pb_section_first.et_pb_fullwidth_section:first-child > .et_pb_row:first-child { display: none !important; }
#page-container { padding-top: 0 !important; }
.et_pb_section_first { padding-top: 0 !important; }
#main-footer { display: none !important; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.ztm-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  height: var(--ztm-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  background: transparent;
  transition: background 0.4s var(--ztm-ease), backdrop-filter 0.4s;
}
.ztm-nav.ztm-scrolled {
  background: rgba(20,20,20,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Logo */
.ztm-nav__logo a { display: flex; align-items: center; }
.ztm-nav__logo img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

/* Desktop Nav-Links (mittig) */
.ztm-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.ztm-nav__links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 24px;
  font-family: var(--ztm-font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ztm-white);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.25s, transform 0.2s;
  white-space: nowrap;
}
.ztm-nav__links a:hover {
  background: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}
.ztm-icon { font-size: 14px; }

/* Rechte Nav-Elemente */
.ztm-nav__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ---- WINTER / SOMMER TOGGLE ---- */
.ztm-season-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 24px;
  padding: 6px 14px;
}
.ztm-toggle-label {
  font-family: var(--ztm-font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--ztm-white);
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity 0.3s;
  user-select: none;
}
.ztm-active  { opacity: 1; }
.ztm-inactive { opacity: 0.4; }

.ztm-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
  flex-shrink: 0;
}
.ztm-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.ztm-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--ztm-accent);
  border-radius: 22px;
  transition: background 0.4s;
}
.ztm-slider::before {
  content: "";
  position: absolute;
  height: 16px; width: 16px;
  left: 3px; bottom: 3px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.4s var(--ztm-ease);
}
.ztm-switch input:checked + .ztm-slider { background: #e8a020; }
.ztm-switch input:checked + .ztm-slider::before { transform: translateX(22px); }

/* ---- HAMBURGER ---- */
.ztm-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.25s;
}
.ztm-burger:hover { background: rgba(255,255,255,0.28); }
.ztm-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ztm-white);
  border-radius: 2px;
  transition: all 0.3s var(--ztm-ease);
}
.ztm-burger.ztm-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ztm-burger.ztm-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ztm-burger.ztm-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   OFF-CANVAS SIDEBAR
   ============================================================ */
.ztm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ztm-ease);
}
.ztm-overlay.ztm-open { opacity: 1; pointer-events: all; }

.ztm-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--ztm-sidebar-w);
  height: 100vh;
  background: var(--ztm-text);
  z-index: 9200;
  transform: translateX(-100%);
  transition: transform 0.35s var(--ztm-ease);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.ztm-sidebar.ztm-open { transform: translateX(0); }

.ztm-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.ztm-sidebar__logo img {
  height: 44px;
  filter: brightness(0) invert(1);
}
.ztm-sidebar__close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  cursor: pointer;
  color: white;
  font-size: 20px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.ztm-sidebar__close:hover { background: rgba(255,255,255,0.22); }

.ztm-sidebar__nav {
  padding: 20px 0;
  flex: 1;
}
.ztm-sidebar__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  color: var(--ztm-white);
  font-family: var(--ztm-font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}
.ztm-sidebar__nav a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--ztm-accent-light);
  padding-left: 36px;
}
.ztm-arrow { font-size: 12px; opacity: 0.5; }

.ztm-sidebar__footer {
  padding: 24px 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.ztm-sidebar__footer p {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  margin-bottom: 14px;
}
.ztm-sidebar__social {
  display: flex;
  gap: 10px;
}
.ztm-sidebar__social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  transition: background 0.2s;
}
.ztm-sidebar__social a:hover { background: var(--ztm-accent); }

/* ============================================================
   HERO SECTION – DIVI Fullwidth Header Override
   STREIFEN-FIX: Alle DIVI-eigenen Overlays/Gradienten entfernen
   ============================================================ */

/* DIVI Overlay-Elemente komplett entfernen */
.ztm-hero-section .et_pb_fullwidth_header_overlay,
.ztm-hero-section .et_pb_section_video_bg,
.ztm-hero-section > .et_pb_background_mask,
.ztm-hero-section .et_pb_background_pattern,
.ztm-hero-section .et_pb_background_color_gradient {
  display: none !important;
  opacity: 0 !important;
  background: transparent !important;
}

/* DIVI Section Hintergrundfarbe überschreiben */
.ztm-hero-section,
.ztm-hero-section.et_pb_section {
  background-color: transparent !important;
  background-blend-mode: normal !important;
}

/* DIVI Fullwidth Header Hintergrundfarbe überschreiben */
.ztm-hero-section .et_pb_fullwidth_header,
.ztm-hero-inner {
  background-color: transparent !important;
  background-blend-mode: normal !important;
}

/* Alle automatisch gesetzten DIVI-Gradienten entfernen */
.ztm-hero-section *[style*="background-image: linear-gradient"],
.ztm-hero-section *[style*="background: linear-gradient"] {
  background-image: none !important;
}

/* Hero-Hintergrund korrekt setzen – JS übernimmt die Bildpfade */
.ztm-hero-section {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* DIVI Fullwidth Header als Hero */
.et_pb_fullwidth_header.ztm-hero-section {
  height: 100vh !important;
  min-height: 600px !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding: 0 !important;
}

/* Hero Overlay */
.et_pb_fullwidth_header.ztm-hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.65) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Hero Content */
.et_pb_fullwidth_header.ztm-hero-section .et_pb_fullwidth_header_container {
  position: relative;
  z-index: 2;
  text-align: center !important;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Title */
.et_pb_fullwidth_header.ztm-hero-section .et_pb_fullwidth_header_container h1,
.et_pb_fullwidth_header.ztm-hero-section .et_pb_fullwidth_header_container .et_pb_title_container h1 {
  font-family: var(--ztm-font-heading) !important;
  font-size: clamp(52px, 8vw, 110px) !important;
  font-weight: 900 !important;
  color: var(--ztm-white) !important;
  line-height: 0.95 !important;
  letter-spacing: -2px !important;
  text-transform: uppercase !important;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4) !important;
  margin-bottom: 24px !important;
}

/* Hero Subtitle */
.et_pb_fullwidth_header.ztm-hero-section .et_pb_fullwidth_header_container .et_pb_fullwidth_header_subhead {
  font-family: var(--ztm-font-body) !important;
  font-size: clamp(15px, 2vw, 19px) !important;
  color: rgba(255,255,255,0.85) !important;
  font-weight: 300 !important;
  letter-spacing: 0.3px !important;
  margin-bottom: 40px !important;
  max-width: 600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Hero Buttons */
.et_pb_fullwidth_header.ztm-hero-section .et_pb_button_wrapper {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.et_pb_fullwidth_header.ztm-hero-section .et_pb_button {
  font-family: var(--ztm-font-heading) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  padding: 14px 32px !important;
  border-radius: 4px !important;
  transition: all 0.25s var(--ztm-ease) !important;
  border-width: 2px !important;
}
.et_pb_fullwidth_header.ztm-hero-section .et_pb_button_one {
  background: var(--ztm-accent) !important;
  color: white !important;
  border-color: var(--ztm-accent) !important;
}
.et_pb_fullwidth_header.ztm-hero-section .et_pb_button_one:hover {
  background: #015f55 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(1,123,110,0.4) !important;
}
.et_pb_fullwidth_header.ztm-hero-section .et_pb_button_two {
  background: transparent !important;
  color: white !important;
  border-color: rgba(255,255,255,0.6) !important;
}
.et_pb_fullwidth_header.ztm-hero-section .et_pb_button_two:hover {
  background: rgba(255,255,255,0.15) !important;
  border-color: white !important;
  transform: translateY(-2px) !important;
}

/* Hero Live-Info-Leiste (rechts) */
.ztm-live-bar {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ztm-live-item {
  background: rgba(20,20,20,0.75);
  backdrop-filter: blur(8px);
  color: white;
  padding: 10px 14px;
  text-align: right;
  cursor: default;
  transition: background 0.2s, padding-right 0.2s;
  min-width: 120px;
}
.ztm-live-item:hover { background: var(--ztm-accent); padding-right: 20px; }
.ztm-live-item__value {
  font-family: var(--ztm-font-heading);
  font-size: 16px;
  font-weight: 800;
  display: block;
}
.ztm-live-item__label {
  font-size: 10px;
  opacity: 0.7;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Scroll-Indikator */
.ztm-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  font-family: var(--ztm-font-heading);
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
}
.ztm-scroll-arrow {
  width: 40px; height: 40px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: ztm-bounce 2s infinite;
}
@keyframes ztm-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ============================================================
   SEKTIONEN ALLGEMEIN
   ============================================================ */
.ztm-section-tag {
  font-family: var(--ztm-font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ztm-accent);
  margin-bottom: 16px;
}

/* DIVI Sektionen: Padding-Anpassung */
.et_pb_section { padding: 80px 0 !important; }
.et_pb_section.et_pb_section--no-padding { padding: 0 !important; }

/* ============================================================
   THEMENFELDER KARTEN
   ============================================================ */
.ztm-themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 50px;
}
.ztm-theme-card {
  background: var(--ztm-white);
  border: 1px solid #e8eef2;
  border-radius: 12px;
  padding: 32px 28px;
  transition: all 0.3s var(--ztm-ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.ztm-theme-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--ztm-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ztm-ease);
}
.ztm-theme-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.1);
  border-color: var(--ztm-accent-light);
}
.ztm-theme-card:hover::before { transform: scaleX(1); }
.ztm-theme-card__icon { font-size: 36px; margin-bottom: 18px; display: block; }
.ztm-theme-card__title {
  font-family: var(--ztm-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--ztm-dark);
  margin-bottom: 10px;
}
.ztm-theme-card__text { font-size: 14px; color: #6b7c87; line-height: 1.6; }

/* ============================================================
   KEY FACTS SECTION
   ============================================================ */
.ztm-facts-section {
  background: var(--ztm-dark) !important;
  padding: 80px 40px !important;
  position: relative;
  overflow: hidden;
}
.ztm-facts-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1600') center / cover no-repeat;
  opacity: 0.1;
  pointer-events: none;
}
.ztm-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 50px;
  position: relative;
  z-index: 1;
}
.ztm-fact-item {
  background: rgba(255,255,255,0.05);
  padding: 36px 28px;
  text-align: center;
  transition: background 0.25s;
}
.ztm-fact-item:hover { background: rgba(1,123,110,0.25); }
.ztm-fact-item__value {
  font-family: var(--ztm-font-heading);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900;
  color: var(--ztm-accent-light);
  line-height: 1;
  margin-bottom: 10px;
}
.ztm-fact-item__label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
  line-height: 1.4;
}

/* ============================================================
   PARTNER SECTION
   ============================================================ */
.ztm-partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}
.ztm-partner-logo {
  background: var(--ztm-bg-light);
  border: 1px solid #e0eaef;
  border-radius: 10px;
  padding: 16px 28px;
  font-family: var(--ztm-font-heading);
  font-size: 12px;
  font-weight: 700;
  color: #8a9aaa;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.25s;
}
.ztm-partner-logo:hover {
  background: var(--ztm-accent-light);
  border-color: var(--ztm-accent);
  color: var(--ztm-accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.ztm-footer {
  background: var(--ztm-dark);
  color: rgba(255,255,255,0.7);
  padding: 70px 40px 30px;
}
.ztm-footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ztm-footer__brand-name {
  font-family: var(--ztm-font-heading);
  font-size: 20px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}
.ztm-footer__brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.5);
}
.ztm-footer__social { display: flex; gap: 10px; margin-top: 16px; }
.ztm-footer__social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 15px;
  transition: background 0.2s;
}
.ztm-footer__social a:hover { background: var(--ztm-accent); }
.ztm-footer__col h4 {
  font-family: var(--ztm-font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: white;
  margin-bottom: 20px;
}
.ztm-footer__col ul { list-style: none; padding: 0; margin: 0; }
.ztm-footer__col ul li { margin-bottom: 10px; }
.ztm-footer__col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s, padding-left 0.2s;
}
.ztm-footer__col ul li a:hover {
  color: var(--ztm-accent-light);
  padding-left: 6px;
}
.ztm-footer__bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.ztm-footer__bottom p { font-size: 13px; color: rgba(255,255,255,0.3); }
.ztm-footer__bottom-links { display: flex; gap: 20px; }
.ztm-footer__bottom-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.ztm-footer__bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   SEASON TOGGLE – BODY-KLASSEN
   ============================================================ */
body.ztm-season-summer .et_pb_fullwidth_header.ztm-hero-section {
  /* Sommer-Hintergrund wird per JS gesetzt */
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .ztm-nav__links { display: none; }
  :root { --ztm-sidebar-w: 340px; }
}
@media (max-width: 768px) {
  .ztm-live-bar { display: none; }
  .ztm-facts-grid { grid-template-columns: repeat(2, 1fr); }
  .ztm-footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .ztm-footer { padding: 50px 24px 24px; }
}
@media (max-width: 480px) {
  .ztm-footer__grid { grid-template-columns: 1fr; }
  .ztm-facts-grid { grid-template-columns: repeat(2, 1fr); }
  .ztm-nav { padding: 0 16px; }
  .ztm-season-toggle { display: none; }
}
