/* -------------------------------------------------------------------------
   Einwilligungsdialog fuer Cookies.
   Ersetzt das frueher eingebundene Fremdskript "cookie-bar".
   ------------------------------------------------------------------------- */

.consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.consent-backdrop[hidden] { display: none; }

.consent-dialog {
  position: relative;
  z-index: 99999;
  width: 100%;
  max-width: 560px;
  margin: auto;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  padding: 34px 36px 30px;
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  color: #444444;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;

  /* Der Text scrollt bei Bedarf, die Schaltflaechen bleiben sichtbar.
     Sonst rutscht auf kleinen Displays eine der beiden unter die Falz. */
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
}

.consent-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  margin-right: -6px;
  padding-right: 6px;
}

.consent-actions,
.consent-links { flex-shrink: 0; }

.consent-logo {
  display: block;
  width: 96px;
  height: auto;
  margin: 0 auto 18px;
}

.consent-title {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  color: #93093b;
  text-align: center;
}

.consent-text { margin: 0 0 14px; }
.consent-text:last-of-type { margin-bottom: 20px; }

.consent-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #eaeaea;
}
.consent-list li {
  padding: 11px 0;
  border-bottom: 1px solid #eaeaea;
}
.consent-list strong {
  display: block;
  font-weight: 600;
  color: #333333;
}
.consent-list span {
  display: block;
  font-size: 13.5px;
  color: #666666;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  /* Trennt die Schaltflaechen vom Text, der darueber weggescrollt wird */
  padding-top: 18px;
  border-top: 1px solid #eaeaea;
}

/* Beide Schaltflaechen sind gleich gross und gleich auffaellig, damit die
   Ablehnung nicht schwerer zu treffen ist als die Zustimmung. */
.consent-btn {
  flex: 1 1 180px;
  display: inline-block;
  padding: 14px 18px;
  border-radius: 40px;
  border: 2px solid #93093b;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.consent-btn-accept {
  background-color: #93093b;
  color: #ffffff;
}
.consent-btn-accept:hover,
.consent-btn-accept:focus {
  background-color: rgba(147, 9, 59, 0.85);
  color: #ffffff;
}
.consent-btn-essential {
  background-color: #ffffff;
  color: #93093b;
}
.consent-btn-essential:hover,
.consent-btn-essential:focus {
  background-color: #f0e6eb;
  color: #93093b;
}
.consent-btn:focus-visible {
  outline: 3px solid #93093b;
  outline-offset: 2px;
}

.consent-links {
  margin: 0;
  font-size: 13.5px;
  text-align: center;
  color: #666666;
}
.consent-links a {
  color: #93093b;
  text-decoration: underline;
}
.consent-links a + a { margin-left: 16px; }

/* Link im Fussbereich, ueber den die Auswahl spaeter geaendert werden kann */
.consent-reopen {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.consent-reopen:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .consent-dialog {
    padding: 20px 20px 18px;
    font-size: 14.5px;
    max-height: calc(100vh - 24px);
  }
  .consent-logo { width: 74px; margin-bottom: 12px; }
  .consent-title { font-size: 20px; margin-bottom: 10px; }
  .consent-list li { padding: 9px 0; }
  .consent-actions { gap: 10px; margin-bottom: 14px; }
  .consent-btn { flex: 1 1 100%; padding: 13px 16px; }
}

/* Sehr niedrige Fenster: Logo weglassen, damit der Text nicht erdrueckt wird */
@media (max-height: 640px) {
  .consent-logo { display: none; }
  .consent-dialog { padding-top: 22px; }
}

/* Solange die Entscheidung aussteht, soll die Seite dahinter nicht scrollen */
body.consent-open { overflow: hidden; }
