/* KNW Cookie & Datenschutz 1.0.3. Isolierte Klassen ohne Abhängigkeiten. */
.knw-consent-banner[hidden], .knw-consent-launcher[hidden] { display: none !important; }
.knw-consent-banner, .knw-consent-dialog { font-family: inherit; font-size: 15px; line-height: 1.55; box-sizing: border-box; }
.knw-consent-banner *, .knw-consent-dialog *, .knw-consent-embed *, .knw-consent-launcher { box-sizing: border-box; }
.knw-consent-banner { position: fixed; inset: auto 0 0 0; background: #fff; color: #202938; border-top: 2px solid #31557f; box-shadow: 0 -5px 20px rgba(0,0,0,.17); z-index: 2147483000; padding: 20px 18px; }
.knw-consent-banner-content { max-width: 1120px; margin: 0 auto; }
.knw-consent-banner h2, .knw-consent-dialog h2 { color: #183856; font-size: 1.2rem; line-height: 1.3; margin: 0 0 8px; }
.knw-consent-banner p, .knw-consent-dialog p { margin: 0 0 14px; }
.knw-consent-banner a, .knw-consent-dialog a, .knw-consent-embed a { color: #15599a; text-decoration: underline; }
.knw-consent-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.knw-consent-btn { min-height: 44px; padding: 10px 18px; border: 2px solid #234b79; border-radius: 6px; background: #234b79; color: #fff; font: inherit; font-weight: 650; text-align: center; cursor: pointer; }
.knw-consent-btn-secondary { background: #f4f6f9; color: #234b79; }
.knw-consent-btn:hover { filter: brightness(.92); }
.knw-consent-btn:focus-visible, .knw-consent-launcher:focus-visible, .knw-consent-inline-settings:focus-visible { outline: 3px solid #eea800; outline-offset: 3px; }
.knw-consent-dialog { width: min(580px, calc(100% - 28px)); max-height: min(85vh, 800px); overflow: auto; padding: 0; color: #202938; background: #fff; border: 1px solid #9aabc0; border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.28); }
.knw-consent-dialog::backdrop { background: rgba(0,0,0,.55); }
.knw-consent-dialog-inner { padding: 22px; }
.knw-consent-category { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid #d8dfe8; padding: 15px 0; }
.knw-consent-category p { display: block; margin: 5px 0 0; color: #465362; }
.knw-consent-description { display: block; margin-top: 4px; color: #465362; }
.knw-consent-category input[type="checkbox"] { width: 22px; height: 22px; accent-color: #234b79; flex-shrink: 0; }
.knw-consent-launcher { position: fixed; left: 12px; bottom: 12px; z-index: 2147482900; padding: 6px 10px; background: #fff; color: #234b79; border: 1px solid #234b79; border-radius: 5px; font: inherit; font-size: 12px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.knw-consent-inline-settings { background: transparent; color: inherit; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.knw-consent-embed { padding: 25px; min-height: var(--knw-embed-height, 450px); border: 1px solid #afbccb; background: #f7f9fb; color: #222; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.knw-consent-embed p { margin: 0; }
.knw-consent-embed-loaded { display: block; padding: 0; border: 0; background: transparent; min-height: 0; }
@media (max-width: 600px) {
  .knw-consent-banner { padding: 14px; max-height: 70vh; overflow-y: auto; }
  .knw-consent-banner h2, .knw-consent-dialog h2 { font-size: 1.05rem; }
  .knw-consent-actions { display: grid; grid-template-columns: 1fr; }
  .knw-consent-btn { width: 100%; }
  .knw-consent-dialog-inner { padding: 16px; }
  .knw-consent-category { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .knw-consent-btn { transition: none; } }

/* Spezieller Speedtest-Platzhalter: lokal, ohne externe Bilder oder Schriftarten. */
.knw-consent-embed--speedtest {
  width:100%; min-height:min(370px, var(--knw-embed-height,450px));
  padding:clamp(18px, 3vw, 32px); text-align:left; align-items:stretch;
  gap:18px; border:0; border-radius:5px; overflow:hidden;
  background:linear-gradient(140deg,#edf5ff 0%,#f8fbff 50%,#fff 100%);
  color:#1d3047; font-family:inherit;
}
.knw-speedtest-heading { display:flex; align-items:center; gap:16px; }
.knw-speedtest-icon-wrap {
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 72px;
  width:72px; height:72px; color:#0c71c3; background:#fff;
  border:2px solid #bfdcf5; border-radius:17px;
}
.knw-speedtest-heading-copy { min-width:0; }
.knw-speedtest-eyebrow { display:block; color:#245c8a; font-size:13px; font-weight:700; letter-spacing:.02em; margin-bottom:3px; }
.knw-consent-embed--speedtest h3 {
  font-family:inherit; font-size:clamp(20px, 2.5vw, 27px); line-height:1.23;
  font-weight:750; color:#163c60; padding:0; margin:0 0 7px;
}
.knw-consent-embed--speedtest p { line-height:1.55; font-size:15px; margin:0; }
.knw-speedtest-privacy { padding:14px 17px; border-left:4px solid #0c71c3; border-radius:5px; background:#fff; box-shadow:0 1px 6px rgba(20,64,104,.07); }
.knw-speedtest-privacy strong { display:block; font-size:16px; font-weight:700; color:#163c60; margin-bottom:6px; }
.knw-speedtest-actions { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.knw-consent-embed--speedtest .knw-speedtest-action {
  display:inline-flex; align-items:center; justify-content:center; min-width:230px;
  background:#0c71c3; border:2px solid #0c71c3; color:#fff !important;
  font-weight:700; line-height:1.3; text-decoration:none !important;
  border-radius:8px; padding:12px 19px; box-shadow:0 2px 7px rgba(12,113,195,.15);
}
.knw-consent-embed--speedtest .knw-speedtest-action:hover { background:#095b9e; border-color:#095b9e; }
.knw-consent-embed--speedtest .knw-speedtest-action:focus-visible { outline:3px solid #f0b429; outline-offset:3px; }
.knw-consent-embed--speedtest .knw-speedtest-hint { flex:1 1 220px; font-size:13px; color:#455d72; }
.knw-consent-embed--speedtest .knw-speedtest-privacy-link { align-self:flex-start; font-size:13px; color:#15599a; text-decoration:underline; }
.knw-consent-embed--speedtest.knw-consent-embed-loaded {
  display:block; padding:0; border:0; border-radius:0; min-height:0;
  background:transparent; overflow:visible;
}
@media (max-width:600px) {
  .knw-consent-embed--speedtest { padding:18px 14px; min-height:0; gap:15px; }
  .knw-speedtest-heading { align-items:flex-start; gap:12px; }
  .knw-speedtest-icon-wrap { width:52px; height:52px; flex-basis:52px; border-radius:12px; }
  .knw-speedtest-icon { width:29px; height:29px; }
  .knw-consent-embed--speedtest h3 { font-size:20px; }
  .knw-speedtest-privacy { padding:12px; }
  .knw-speedtest-actions { display:flex; flex-direction:column; align-items:stretch; gap:9px; }
  .knw-consent-embed--speedtest .knw-speedtest-action { min-width:0; width:100%; }
  .knw-consent-embed--speedtest .knw-speedtest-hint { flex:none; }
}

/* Einzelfreigabe und Alternativlink des Speedtests, auch ohne Cookie-Banner. */
.knw-speedtest-linkrow { display:flex; gap:8px 22px; flex-wrap:wrap; align-items:center; }
.knw-consent-embed--speedtest .knw-speedtest-external-link,
.knw-consent-embed--speedtest .knw-speedtest-privacy-link {
  align-self:auto; font-size:13px; color:#15599a; text-decoration:underline;
}
@media (max-width:600px) {
  .knw-speedtest-linkrow { flex-direction:column; align-items:flex-start; gap:9px; }
}
