/*
Theme Name: Skipass Go (Blocksy Child)
Template: blocksy
Author: DIGITA L EADER GMBH
Description: Child-Theme für skipass-go.com — moderner, bildgetriebener Wintersport-Look. Design: ~/skipass-go/DESIGN.md
Version: 0.1.2
*/

:root {
  --sg-navy: #0e2740;
  --sg-navy-soft: #22466a;
  --sg-teal: #13e0c8;
  --sg-orange: #ff6a3d;
  --sg-snow: #ffffff;
  --sg-page: #f5f8fb;
  --sg-ink: #0e2740;
  --sg-muted: #6b8199;
  --sg-line: #e4ecf3;
  --sg-radius: 14px;
}

/* ---- Skigebiets-Hub ---- */
body { overflow-x: hidden; }
.sg-hub { font-family: var(--theme-font-family, inherit); color: var(--sg-ink); }
/* Full-bleed: bricht aus jedem zentrierten Container aus, volle Viewport-Breite */
.sg-fullbleed { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.sg-wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.sg-readable { max-width: 760px; }
.sg-hero { position: relative; min-height: 440px; display: flex; align-items: flex-end;
  background: var(--sg-navy); color: #fff; overflow: hidden; }
.sg-hero__img { position: absolute; inset: 0; background-size: cover; background-position: center 28%; }
.sg-hero__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sg-hero__shade { position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,28,46,.85) 0%, rgba(10,28,46,.15) 55%, rgba(10,28,46,0) 100%); }
.sg-hero__in { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; padding: 40px clamp(16px,4vw,40px) 40px; }
.sg-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--sg-teal);
  color: #04342c; font-size: 13px; font-weight: 500; padding: 5px 13px; border-radius: 30px; margin-bottom: 12px; }
.sg-hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.05; font-weight: 600; margin: 2px 0 8px; color: #fff; }
.sg-hero h1 .y { color: var(--sg-teal); }
.sg-hero__sub { font-size: 17px; color: #dce8f3; max-width: 520px; }

/* Split-Hero (Vergleichsseiten mit Foto) — zeigt das Bild ohne starken Beschnitt */
.sg-hero-split { display: flex; background: var(--sg-navy); overflow: hidden; min-height: 330px; }
.sg-hs-text { flex: 1 1 46%; min-width: 280px; padding: 40px clamp(16px, 4vw, 50px); display: flex; flex-direction: column; justify-content: center; color: #fff; }
.sg-hs-img { flex: 1 1 54%; min-width: 0; }
.sg-hs-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; min-height: 330px; }
.sg-hero-split h1 { color: #fff; font-size: clamp(27px, 3.6vw, 40px); line-height: 1.1; font-weight: 600; margin: 2px 0 8px; }
.sg-hero-split h1 .y { color: var(--sg-teal); }
.sg-h1-sub { font-weight: 400; color: #c7d6e5; }
@media (max-width: 760px) {
  .sg-hero-split { flex-direction: column; }
  .sg-hs-img { order: -1; }
  .sg-hs-img img { height: 210px; min-height: 210px; }
  .sg-hs-text { padding: 26px 18px; }
}

/* ---- Interaktive Rechner (Tools) ---- */
.sg-calc { background: var(--sg-snow); border: 1px solid var(--sg-line); border-radius: 14px; padding: 20px 22px; }
.sg-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
@media (max-width: 560px) { .sg-calc-grid { grid-template-columns: 1fr; } }
.sg-calc label.l { display: block; font-size: 14px; font-weight: 500; color: var(--sg-ink); margin-bottom: 6px; }
.sg-calc input[type=range] { width: 100%; }
.sg-calc .out { font-weight: 600; color: var(--sg-navy); }
.sg-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.sg-seg button { flex: 1; min-width: 88px; padding: 8px 10px; border: 1px solid var(--sg-line); background: #fff; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--sg-navy); cursor: pointer; }
.sg-seg button.on { background: var(--sg-navy); color: #fff; border-color: var(--sg-navy); }
.sg-calc-res { margin-top: 18px; background: var(--sg-navy); border-radius: 12px; padding: 18px 20px; color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.sg-calc-val { font-size: 34px; font-weight: 600; color: var(--sg-teal); line-height: 1; }
.sg-calc-range { font-size: 14px; color: #c7d6e5; }
.sg-calc-note { font-size: 13px; color: var(--sg-muted); margin-top: 10px; }
.sg-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--sg-orange); color: #fff;
  font-weight: 500; font-size: 15px; padding: 12px 22px; border-radius: 11px; text-decoration: none; margin-top: 16px; }
.sg-cta:hover { filter: brightness(1.05); color:#fff; }

.sg-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--sg-line);
  border-radius: 12px; overflow: hidden; margin: 22px 0; }
.sg-stats > div { background: #fff; padding: 14px 16px; }
.sg-stats .k { font-size: 12px; color: var(--sg-muted); }
.sg-stats .v { font-size: 20px; font-weight: 600; }
.sg-stats .v.teal { color: #0f6e56; }

.sg-section { margin: 0 0 22px; }
.sg-section h2 { font-size: 20px; font-weight: 600; margin: 0 0 12px; display: flex; align-items: center; gap: 9px; }
.sg-section h2 i { color: var(--sg-orange); }
.sg-card { background: #fff; border: 1px solid var(--sg-line); border-radius: var(--sg-radius); padding: 18px 20px; }
.sg-grid { display: grid; gap: 14px; }
.sg-grid.cols { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.sg-price { font-size: 22px; font-weight: 600; }
.sg-muted { color: var(--sg-muted); font-size: 14px; line-height: 1.6; }
.sg-aff { display:inline-block; font-size:11px; font-weight:500; color:#0f6e56; background:#e1f5ee; padding:2px 9px; border-radius:8px; }
.sg-pill-link { color: #185fa5; font-weight: 500; font-size: 14px; text-decoration: none; display:inline-flex; align-items:center; gap:5px; }

@media (max-width: 600px) { .sg-stats { grid-template-columns: repeat(2,1fr); } .sg-hero h1 { font-size: 27px; } }

/* Autor/Datum überall ausblenden (Single + Archive) */
.ct-meta-element-author,
.ct-meta-element-date,
.ct-author-box-container,
.author.vcard,
.entry-meta .meta-author,
.entry-meta .meta-date,
.posted-by,
.posted-on { display:none !important; }

/* Globale Blocksy-Palette an Marke angleichen (Header/Links/Headings → Navy/Türkis) */
:root{
  --theme-palette-color-1:#0e2740; /* primär: Links/Buttons → Navy */
  --theme-palette-color-2:#13a596; /* primär hover → Türkis-dunkel */
  --theme-palette-color-4:#0e2740; /* Überschriften → Navy */
  --theme-palette-color-5:#e4ecf3; /* Rahmen → sg-line */
}

/* === Header: navy Markenbalken, Logo, lesbare Dropdowns === */
header.ct-header { position: sticky; top: 0; z-index: 90;
  background: linear-gradient(180deg,#10304f 0%, var(--sg-navy,#0e2740) 100%) !important;
  box-shadow: 0 3px 18px rgba(10,28,46,.28); }
header.ct-header [data-row] { background: transparent !important; }

/* Logo statt Text-Titel */
.ct-header .site-title a {
  display:inline-block; width:200px; height:44px; overflow:hidden; white-space:nowrap;
  background: url(assets/logo.svg) left center / contain no-repeat; text-indent:-9999px;
}
@media (max-width:600px){ .ct-header .site-title a { width:158px; height:36px; } }

/* Nav-Links weiß auf navy */
.header-menu-1 > ul > .menu-item > .ct-menu-link { color:#fff !important; font-weight:600; font-size:16.5px !important; letter-spacing:.01em; position:relative; }
.header-menu-1 .ct-menu-link { font-size:16px; }
.header-menu-1 > ul > .menu-item > .ct-menu-link:hover { color:#fff !important; }
.header-menu-1 > ul > .menu-item > .ct-menu-link::after {
  content:''; position:absolute; left:14px; right:14px; bottom:6px; height:2px;
  background: var(--sg-teal); border-radius:2px; transform: scaleX(0); transform-origin:left; transition: transform .2s ease;
}
.header-menu-1 > ul > .menu-item:hover > .ct-menu-link::after,
.header-menu-1 > ul > .menu-item.current-menu-item > .ct-menu-link::after,
.header-menu-1 > ul > .menu-item.current-menu-ancestor > .ct-menu-link::after { transform: scaleX(1); }
/* Eltern-Pfeil andeuten */
.header-menu-1 > ul > .menu-item-has-children > .ct-menu-link { padding-right:6px; }

/* Header-Icons (Suche/Toggle/Hamburger) weiß */
.ct-header .ct-toggle, .ct-header .ct-header-trigger, .ct-header [data-id="search"] *,
.ct-header .ct-icon { color:#fff !important; fill:#fff !important; }

/* Dropdown: weißes Panel, NAVY Text (Lesbarkeit-Fix) */
.header-menu-1 .sub-menu {
  border-radius: 14px !important; box-shadow: 0 18px 50px rgba(14,39,64,.22) !important;
  border: 1px solid var(--sg-line) !important; padding: 8px !important; min-width: 250px !important; background:#fff !important;
}
.header-menu-1 .sub-menu .menu-item > .ct-menu-link {
  color: var(--sg-navy) !important; padding: 10px 14px !important; border-radius: 9px; font-size: 14.5px;
  transition: background .15s, color .15s;
}
.header-menu-1 .sub-menu .menu-item > .ct-menu-link::after { display:none !important; }
.header-menu-1 .sub-menu .menu-item > .ct-menu-link:hover { background: var(--sg-page) !important; color: var(--sg-navy) !important; }

/* === Generisches Seiten-Template: Prosa-Content === */
.sg-page-content { font-size: 16.5px; line-height: 1.75; color: var(--sg-ink); }
.sg-page-content h2 { font-size: 24px; font-weight: 700; color: var(--sg-navy); margin: 30px 0 12px; }
.sg-page-content h3 { font-size: 20px; font-weight: 600; color: var(--sg-navy); margin: 24px 0 10px; }
.sg-page-content h4 { font-size: 17px; font-weight: 600; color: var(--sg-navy); margin: 20px 0 8px; }
.sg-page-content p { margin: 0 0 16px; }
.sg-page-content ul, .sg-page-content ol { margin: 0 0 16px; padding-left: 24px; }
.sg-page-content li { margin: 0 0 7px; }
.sg-page-content a { color: #185fa5; text-decoration: underline; text-underline-offset: 2px; }
.sg-page-content a:hover { color: var(--sg-navy); }
.sg-page-content strong { color: var(--sg-navy); }
.sg-page-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 14px 0; }
.sg-page-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.sg-page-content th, .sg-page-content td { border: 1px solid var(--sg-line); padding: 9px 12px; text-align: left; }
.sg-page-content th { background: var(--sg-page); }
.sg-page-content h1:first-child { display: none; } /* doppelten Titel aus Content ausblenden (Hero hat ihn) */

/* === Mobile-Menü-Panel: solider Hintergrund + lesbare Links === */
.ct-panel.ct-header { background: #fff !important; }
.ct-panel.ct-header .ct-panel-content, .ct-panel.ct-header .ct-panel-content-inner { background: #fff !important; }
.ct-panel.ct-header .ct-panel-actions { background: var(--sg-navy) !important; }
.ct-panel.ct-header .ct-toggle-close { color: #fff !important; }
.ct-panel.ct-header .site-title a { background-image: url(assets/logo.svg) !important; } /* weißes Logo auf navy Leiste */

.mobile-menu { padding: 6px 0 24px; }
.mobile-menu .menu-item { border-bottom: 1px solid var(--sg-line); }
.mobile-menu .ct-menu-link { color: var(--sg-navy) !important; font-size: 16px !important; font-weight: 600; padding: 14px 22px !important; display: flex; align-items: center; }
.mobile-menu .sub-menu { background: var(--sg-page); }
.mobile-menu .sub-menu .menu-item { border-bottom: 1px solid #fff; }
.mobile-menu .sub-menu .ct-menu-link { color: #3A4F66 !important; font-weight: 500; font-size: 15px !important; padding: 12px 22px 12px 38px !important; }
/* Submenu-Aufklapp-Pfeil sichtbar */
.mobile-menu .ct-toggle-dropdown-mobile, .mobile-menu button[class*="toggle"], .mobile-menu .menu-item-has-children > .ct-menu-link svg { color: var(--sg-navy) !important; fill: var(--sg-navy) !important; }

/* === Mobile-Panel: durchgehend navy + weiße Schrift (überschreibt obigen Mix) === */
.ct-panel.ct-header, .ct-panel.ct-header .ct-panel-inner,
.ct-panel.ct-header .ct-panel-content, .ct-panel.ct-header .ct-panel-content-inner { background: var(--sg-navy) !important; }
.ct-panel.ct-header .ct-panel-actions { background: #0a1d30 !important; }
.mobile-menu .menu-item { border-bottom: 1px solid rgba(255,255,255,.12) !important; }
.mobile-menu .ct-menu-link { color: #fff !important; }
.mobile-menu .sub-menu { background: rgba(255,255,255,.05) !important; }
.mobile-menu .sub-menu .menu-item { border-bottom: 1px solid rgba(255,255,255,.07) !important; }
.mobile-menu .sub-menu .ct-menu-link { color: #c7d6e5 !important; }
.mobile-menu .menu-item-has-children > .ct-menu-link svg, .mobile-menu [class*="toggle"] svg,
.mobile-menu [class*="toggle"], .ct-panel.ct-header .ct-toggle-close { color: #fff !important; fill: #fff !important; }

/* === Google-Maps Klick-zum-Laden (Consent / DSGVO) === */
.sg-map-ph { background: linear-gradient(135deg,#16324f,#0e2740); min-height: 320px; display: flex; align-items: center; justify-content: center; text-align: center; }
.sg-map-ph__in { max-width: 440px; padding: 26px; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.sg-map-ph .ti-map-2 { font-size: 42px; color: var(--sg-teal); }
.sg-map-ph strong { color: #fff; font-size: 18px; }
.sg-map-ph span { font-size: 13.5px; line-height: 1.55; color: #a9c0d6; }
.sg-map-ph a { color: var(--sg-teal); }
.sg-map-load { margin-top: 6px; background: var(--sg-teal); color: #06281f; border: 0; border-radius: 8px; padding: 11px 22px; font-weight: 700; cursor: pointer; font-size: 15px; display: inline-flex; align-items: center; gap: 7px; }
.sg-map-load:hover { filter: brightness(1.06); }

/* === Kontaktformular === */
.sg-form { max-width: 680px; display: flex; flex-direction: column; gap: 15px; }
.sg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.sg-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--sg-navy); font-size: 14.5px; }
.sg-form input[type=text], .sg-form input[type=email], .sg-form textarea { font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid var(--sg-line); border-radius: 9px; background: #fff; color: var(--sg-navy); width: 100%; }
.sg-form textarea { resize: vertical; }
.sg-form input:focus, .sg-form textarea:focus { outline: 0; border-color: var(--sg-teal); box-shadow: 0 0 0 3px rgba(19,224,200,.18); }
.sg-form-consent { flex-direction: row !important; align-items: flex-start; gap: 9px; font-weight: 400 !important; font-size: 13.5px; color: #3a4f66; }
.sg-form-consent input { margin-top: 3px; flex: 0 0 auto; }
.sg-form-consent a { color: var(--sg-teal); }
.sg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sg-form .sg-btn { align-self: flex-start; background: var(--sg-orange); color: #fff; border: 0; border-radius: 9px; padding: 13px 28px; font-weight: 700; font-size: 15.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.sg-form .sg-btn:hover { filter: brightness(1.06); }
.sg-formmsg { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.sg-formmsg--ok { background: #e7faf6; color: #0a7d6b; border: 1px solid #b5ebe2; }
.sg-formmsg--err { background: #fdecea; color: #b23b2a; border: 1px solid #f5cdc6; }
@media (max-width: 560px) { .sg-form-row { grid-template-columns: 1fr; } }

/* TOC auf Content-Seiten nutzt denselben Pill-Stil wie Produkte (.sg-toc/.sg-toc-t/.sg-toc-l, inline in functions.php) */
.sg-page-content h2 { scroll-margin-top: 90px; }

/* === Unterkunft-Popup (Trivago) === */
.sg-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.sg-modal[hidden] { display: none; }
.sg-modal__overlay { position: absolute; inset: 0; background: rgba(10,28,46,.6); }
.sg-modal__box { position: relative; background: #fff; border-radius: 16px; max-width: 360px; width: 100%; padding: 26px 24px; box-shadow: 0 20px 60px rgba(10,28,46,.35); text-align: center; }
.sg-modal__x { position: absolute; top: 8px; right: 14px; background: 0; border: 0; font-size: 28px; line-height: 1; color: var(--sg-navy); cursor: pointer; }
.sg-modal__box h3 { margin: 0 0 16px; color: var(--sg-navy); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 19px; }
.sg-modal__box h3 i { color: var(--sg-orange); }
.sg-uk-body { min-height: 250px; display: flex; align-items: center; justify-content: center; }
.sg-uk-consent { font-size: 14px; color: #3a4f66; line-height: 1.55; }
.sg-uk-consent-btn { display: inline-block; margin-top: 12px; background: var(--sg-teal); color: #04342c; padding: 9px 18px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.sg-modal__note { font-size: 12px; color: #7c93aa; margin: 14px 0 0; }
.sg-modal__lead { font-size: 14.5px; color: #3a4f66; line-height: 1.55; margin: 0 0 18px; }
.sg-modal__box .sg-cta { margin-top: 4px; }
