/* Speidel: einheitliche Cookie-Gestaltung 2026-11-16.
   Gemeinsamer Darstellungsblock fuer Shop und Contao; keine Consent-Logik. */

#klaro #klaro-cookie-notice:not(.cookie-modal-notice):not(.cn-embedded) {
  box-sizing: border-box;
  width: 640px;
  max-width: calc(100% - 32px);
  right: 16px;
  left: auto;
  bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  border: 1px solid #dedede;
  border-bottom: 3px solid #f9d616;
  border-radius: 8px;
  background: #fff;
  color: #242424;
  box-shadow: 0 6px 24px rgb(0 0 0 / 15%);
}
#klaro #klaro-cookie-notice .cn-body {
  display: block;
  box-sizing: border-box;
  padding: 24px;
  margin: 0;
}
#klaro #klaro-cookie-notice h2 {
  margin: 0 0 12px;
  padding: 0;
  font-size: 22px;
  line-height: 1.25;
  text-indent: 0;
  text-transform: none;
}
#klaro #klaro-cookie-notice h2::before { display: none; }
#klaro #klaro-cookie-notice #id-cookie-notice {
  margin: 0 0 20px;
  padding: 0;
  width: auto;
  max-width: none;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
#klaro #klaro-cookie-notice #id-cookie-notice a {
  color: #454545 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#klaro #klaro-cookie-notice .cn-ok {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  margin: 0;
  padding: 0;
  width: 100%;
}
/* Semantikfreie DIV-Gruppe auflösen, damit alle drei Aktionen gleich breit sind. */
#klaro #klaro-cookie-notice .cn-buttons {
  display: contents;
  margin: 0;
  padding: 0;
}
#klaro #klaro-cookie-notice .cm-btn,
#klaro #klaro-cookie-notice .cn-learn-more {
  display: flex;
  align-items: center;
  justify-content: center;
  float: none;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 48px;
  height: auto;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 12px 10px;
  border: 1px solid #d0b200;
  border-radius: 5px;
  background: #f9d616;
  color: #151515 !important;
  font-family: "DIN Next W02 Medium", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  text-transform: none;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  cursor: pointer;
}
#klaro #klaro-cookie-notice .cn-learn-more {
  order: 0;
  background: #fff;
  border-color: #777;
}
#klaro #klaro-cookie-notice .cn-decline { order: 1; }
#klaro #klaro-cookie-notice .cm-btn-success { order: 2; }
#klaro #klaro-cookie-notice .cm-btn:hover,
#klaro #klaro-cookie-notice .cn-learn-more:hover {
  background: #242424;
  color: #fff !important;
  border-color: #242424;
}
#klaro #klaro-cookie-notice .cm-btn:focus-visible,
#klaro #klaro-cookie-notice .cn-learn-more:focus-visible {
  outline: 2px solid #242424;
  outline-offset: 3px;
}
#klaro .cookie-modal .cm-modal .cm-footer-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}
#klaro .cookie-modal .cm-modal .cm-footer-buttons .cm-btn {
  flex: 1 1 150px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 48px;
  width: auto;
  margin: 0 !important;
  padding: 12px;
  white-space: normal;
  line-height: 1.35;
  font-size: 16px;
  text-transform: none;
}
@media (max-width: 767px) {
  #klaro #klaro-cookie-notice:not(.cookie-modal-notice):not(.cn-embedded) {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    max-height: 88vh;
    max-height: 88dvh;
    border-radius: 12px 12px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  #klaro #klaro-cookie-notice .cn-body { padding: 20px; }
  #klaro #klaro-cookie-notice h2 { font-size: 20px; }
  #klaro #klaro-cookie-notice .cn-ok { grid-template-columns: minmax(0, 1fr); }
  /* Bestehende mobile Reihenfolge beibehalten. */
  #klaro #klaro-cookie-notice .cm-btn-success { order: 0; }
  #klaro #klaro-cookie-notice .cn-decline { order: 1; }
  #klaro #klaro-cookie-notice .cn-learn-more { order: 2; }
  #klaro .cookie-modal .cm-modal .cm-footer-buttons { flex-direction: column; }
  #klaro .cookie-modal .cm-modal .cm-footer-buttons .cm-btn { flex: 0 0 auto; width: 100%; }
}
/* Ende Speidel einheitliche Cookie-Gestaltung 2026-11-16. */


/* Speidel: Schrift im Contao-Consent 2026-11-16.
   Die Seite content-x definiert DIN Next LT W04 lokal in 300/400/500/900.
   Nur dort anpassen; ältere Contao-Layouts behalten ihre eigene Schrift.
   Am Ende von files/layout/css/cookie-consent-css.css einfügen. */

body.content-x #klaro,
body.content-x #klaro .klaro,
body.content-x #klaro .cookie-notice,
body.content-x #klaro .cookie-modal,
body.content-x #klaro .context-notice,
body.content-x #klaro .cm-btn,
body.content-x #klaro #klaro-cookie-notice .cm-btn,
body.content-x #klaro .cm-link,
body.content-x #klaro .cn-learn-more,
body.content-x #klaro #klaro-cookie-notice .cn-learn-more,
body.content-x #klaro .cm-list-title,
body.content-x #klaro .cm-list-description,
body.content-x #klaro .cm-header h1,
body.content-x #klaro .cm-header h2 {
  font-family: "DIN Next LT W04", Helvetica, Arial, sans-serif;
}
body.content-x #klaro .cm-btn,
body.content-x #klaro #klaro-cookie-notice .cm-btn,
body.content-x #klaro .cn-learn-more,
body.content-x #klaro #klaro-cookie-notice .cn-learn-more,
body.content-x #klaro .cm-list-title,
body.content-x #klaro .cm-header h1,
body.content-x #klaro .cm-header h2 {
  font-weight: 500;
}
body.content-x #klaro #id-cookie-notice {
  font-weight: 400;
  line-height: 1.5;
}
/* Ende Speidel Contao-Consent-Schrift 2026-11-16. */

