/* stieggmbh.at – Stil für Cookie-Hinweis und Karten-Platzhalter (gesteuert von cookie.js)
   Grundlage: Website-Vorlage basis.css (Cookie-Hinweis), Farben von stieggmbh.at. Stand 18.11.2026.
   Selektoren mit .stieg-… und doppelter Klasse, damit Divi-Regeln für h2, button und iframe nicht durchschlagen. */
.stieg-cookie, .stieg-karte {
  --sc-text: #1b2126;
  --sc-text-leise: #4d5761;
  --sc-grund: #ffffff;
  --sc-flaeche: #f1f3f5;
  --sc-linie: #c9d0d6;
  --sc-akzent: #cd3524;          /* Stieg-Rot, Weiß darauf 5,1:1 */
  --sc-akzent-dunkel: #a3281b;
  --sc-auf-akzent: #ffffff;
  --sc-radius: 4px;
  --sc-ease: cubic-bezier(0.23, 1, 0.32, 1);
  font-family: inherit;
}

/* ---------- Cookie-Hinweis: Karte unten links, blockiert nichts ---------- */
.stieg-cookie {
  position: fixed; z-index: 100000; left: 16px; right: 16px; bottom: 16px;
  box-sizing: border-box; max-width: 440px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: 24px; background: var(--sc-grund); color: var(--sc-text);
  border-top: 5px solid var(--sc-akzent); border-radius: var(--sc-radius); box-shadow: 0 12px 40px rgba(27, 33, 38, .25);
  font-size: 15px; line-height: 1.55; text-align: left;
  visibility: hidden; opacity: 0; transform: translateY(16px);
  transition: opacity 250ms var(--sc-ease), transform 250ms var(--sc-ease), visibility 0s linear 250ms;
}
.stieg-cookie.ist-offen { visibility: visible; opacity: 1; transform: none; transition: opacity 250ms var(--sc-ease), transform 250ms var(--sc-ease), visibility 0s; }
.stieg-cookie:focus { outline: none; }
.stieg-cookie *, .stieg-cookie *::before, .stieg-cookie *::after { box-sizing: border-box; }
.stieg-cookie [hidden] { display: none !important; }
.stieg-cookie.stieg-cookie .stieg-cookie__titel { margin: 0 0 8px; padding: 0; font-family: inherit; font-weight: 700; font-size: 20px; line-height: 1.25; color: var(--sc-text); letter-spacing: 0; text-transform: none; }
.stieg-cookie.stieg-cookie .stieg-cookie__text, .stieg-cookie.stieg-cookie .stieg-cookie__stand { margin: 0 0 16px; padding: 0; font-size: 15px; line-height: 1.55; color: var(--sc-text); }
.stieg-cookie.stieg-cookie .stieg-cookie__stand { font-weight: 600; }
.stieg-cookie.stieg-cookie a { color: var(--sc-akzent-dunkel); text-decoration: underline; text-underline-offset: .18em; }
.stieg-cookie__knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.stieg-cookie.stieg-cookie .stieg-cookie__knopf {
  flex: 1 1 140px; min-height: 44px; margin: 0; padding: 8px 16px;
  border: 2px solid var(--sc-akzent); border-radius: var(--sc-radius);
  background: var(--sc-akzent); color: var(--sc-auf-akzent);
  font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; text-transform: none; letter-spacing: 0; cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, transform 160ms var(--sc-ease);
}
.stieg-cookie.stieg-cookie .stieg-cookie__knopf--leise { flex-basis: 100%; background: transparent; color: var(--sc-text); border-color: var(--sc-linie); }
.stieg-cookie.stieg-cookie .stieg-cookie__knopf:active { transform: scale(0.97); }
.stieg-cookie__liste { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.stieg-cookie.stieg-cookie .stieg-cookie__untertitel { padding: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sc-text); }
.stieg-cookie__wahl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--sc-linie); font-size: 15px; cursor: pointer; }
.stieg-cookie__wahl:last-child { border-bottom: 1px solid var(--sc-linie); }
.stieg-cookie.stieg-cookie .stieg-cookie__wahl input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sc-akzent); }
.stieg-cookie__wahl b { display: block; }

/* ---------- Fußzeilen-Knopf „Cookie-Einstellungen“ (Kurzcode [stieg_cookie_einstellungen]) ---------- */
.stieg-karte .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.stieg-cookie-link.stieg-cookie-link { padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
/* In der Divi-Fußzeile wie die Links daneben (Impressum, Datenschutz: schwarz, ohne Unterstrich; geprüft 18.11.2026) */
.et-l--footer .stieg-cookie-link.stieg-cookie-link { color: #000000; line-height: inherit; text-decoration: none; }
.et-l--footer .stieg-cookie-link.stieg-cookie-link:hover { text-decoration: underline; }

/* ---------- Karten-Platzhalter (Kurzcode [stieg_karte]) ---------- */
/* Größe wie von Norbert abgenommen (18.11.2026): mindestens 360 px hoch, die geladene Karte im Format 16:9.
   Der Hinweis darf wachsen (schmale Spalte, große Schrift), damit nichts abgeschnitten wird. */
.stieg-karte { position: relative; box-sizing: border-box; width: 100%; height: auto; min-height: 360px; container-type: inline-size; background: var(--sc-flaeche); border: 1px solid var(--sc-linie); border-radius: var(--sc-radius); color: var(--sc-text); overflow: hidden; }
.stieg-karte[data-geladen="1"] { aspect-ratio: 16 / 9; background: none; }
.stieg-karte.stieg-karte .stieg-karte__rahmen { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; }
.stieg-karte__hinweis { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding: 24px; box-sizing: border-box;
  min-height: 358px;                                   /* 360 minus 2 px Rahmen */
  min-height: max(358px, calc(56.25cqw - 2px)); }      /* in breiten Spalten wie die Karte 16:9, nichts springt beim Laden */
.stieg-karte__hinweis[hidden] { display: none; }
.stieg-karte.stieg-karte .stieg-karte__adresse { margin: 0; padding: 0; font-style: normal; font-weight: 600; font-size: 17px; line-height: 1.5; color: var(--sc-text); }
.stieg-karte.stieg-karte .stieg-karte__text { margin: 0; padding: 0; max-width: 46ch; font-size: 15px; line-height: 1.55; color: var(--sc-text-leise); }
.stieg-karte__aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.stieg-karte.stieg-karte .stieg-karte__knopf {
  min-height: 44px; margin: 0; padding: 8px 20px; border: 2px solid var(--sc-akzent); border-radius: var(--sc-radius);
  background: var(--sc-akzent); color: var(--sc-auf-akzent); font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, transform 160ms var(--sc-ease);
}
.stieg-karte.stieg-karte .stieg-karte__knopf:active { transform: scale(0.97); }
.stieg-karte.stieg-karte .stieg-karte__route { color: var(--sc-akzent-dunkel); font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }
.stieg-karte.stieg-karte .stieg-karte__klein { margin: 0; padding: 0; font-size: 13px; line-height: 1.5; color: var(--sc-text-leise); }

/* ---------- Fokus und Hover ---------- */
.stieg-cookie :focus-visible, .stieg-karte :focus-visible, .stieg-cookie-link:focus-visible { outline: 3px solid var(--sc-akzent-dunkel, #a3281b); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .stieg-cookie.stieg-cookie .stieg-cookie__knopf:hover, .stieg-karte.stieg-karte .stieg-karte__knopf:hover { background: var(--sc-akzent-dunkel); border-color: var(--sc-akzent-dunkel); }
  .stieg-cookie.stieg-cookie .stieg-cookie__knopf--leise:hover { background: var(--sc-flaeche); color: var(--sc-text); border-color: var(--sc-linie); }
}
@media (max-width: 480px) {
  .stieg-cookie { left: 8px; right: 8px; bottom: 8px; padding: 20px; }
  .stieg-karte { min-height: 320px; }
  .stieg-karte[data-geladen="1"] { aspect-ratio: auto; }
  .stieg-karte__hinweis { min-height: 318px; }   /* unter 480 px ist die Spalte schmal, 16:9 wäre ohnehin kleiner */
}
@media (prefers-reduced-motion: reduce) {
  .stieg-cookie, .stieg-cookie.ist-offen { transform: none; transition: none; }
  .stieg-cookie.stieg-cookie .stieg-cookie__knopf, .stieg-karte.stieg-karte .stieg-karte__knopf { transition: none; }
}
