
.nh-consent { position: fixed; inset: auto 24px 24px; margin: auto; width: min(1120px, calc(100% - 48px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #7b9a8f66; border-radius: 18px; background: #f4f3ed; color: #023f17; box-shadow: 0 18px 70px #001c1738; font: 14px/1.6 Inter, Arial, sans-serif; overflow: auto; }
.nh-consent::backdrop { background: #10271f35; }
.nh-consent[open] { animation: consent-enter .28s ease-out; }
.nh-consent * { box-sizing: border-box; }
.nh-consent button, .nh-consent a { -webkit-tap-highlight-color: transparent; }
.nh-consent-layout { display: grid; grid-template-columns: 170px 1fr; gap: 36px; padding: 32px; }
.nh-consent-brand { border-right: 1px solid #7b9a8f55; padding-right: 28px; }
.nh-consent-brand img { display: block; width: 140px; height: 76px; object-fit: contain; }
.nh-consent-brand p { font-family: Caveat, cursive; font-size: 24px; line-height: 1.2; margin: 16px 0 0; }
.nh-consent h2 { font: 500 27px/1.2 Inter, Arial, sans-serif; margin: 0 40px 14px 0; color: #023f17; text-transform: none; }
.nh-consent p { margin: 0 0 14px; }
.nh-consent .consent-kicker { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 8px; }
.nh-consent-close { position: absolute; right: 12px; top: 10px; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; font-size: 28px; cursor: pointer; }
.nh-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.nh-consent-actions button { flex: 1 1 150px; min-height: 46px; padding: 11px 16px; border: 1px solid #023f17; border-radius: 7px; background: #023f17; color: white; font: 500 13px/1.3 Inter, Arial, sans-serif; cursor: pointer; transition: background .18s; }
.nh-consent-actions button:hover { background: #19532e; }
.nh-consent-actions .consent-settings { background: transparent; color: #023f17; }
.nh-consent-actions .consent-settings:hover { background: #e4e8de; }
.nh-consent-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font-size: 12px; }
.nh-consent a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.nh-consent :focus-visible { outline: 2px solid #7b9a8f; outline-offset: 4px; }
.nh-consent [hidden] { display: none !important; }
.consent-categories { margin-top: 20px; border-top: 1px solid #7b9a8f55; }
.consent-category { border-bottom: 1px solid #7b9a8f55; padding: 14px 0; }
.consent-category summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; cursor: pointer; font-weight: 500; list-style: none; min-height: 32px; }
.consent-category summary::after { content: '+'; font-size: 22px; }
.consent-category[open] summary::after { content: '−'; }
.consent-category summary::-webkit-details-marker { display: none; }
.consent-category small { display: block; font-weight: 400; font-size: 11px; color: #626d60; }
.consent-category p { margin: 14px 0 4px; font-size: 13px; }
.consent-category label { display: flex; gap: 10px; align-items: center; margin: 10px 0; }
.consent-category input { accent-color: #023f17; width: 18px; height: 18px; }
.consent-reset { margin-top: 16px; padding: 8px 0; border: 0; background: none; color: #023f17; text-decoration: underline; cursor: pointer; font: inherit; }
.consent-footer-trigger { background: transparent; border: 0; color: inherit; font: inherit; padding: 0; min-height: 44px; cursor: pointer; text-align: left; }
.consent-footer-trigger:hover { text-decoration: underline; text-underline-offset: 3px; }
body:has(.nh-consent[open]) { overflow: hidden; }
@keyframes consent-enter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
 .nh-consent { inset: 0; width: calc(100% - 28px); max-height: calc(100dvh - 32px); border-radius: 16px; }
 .nh-consent::backdrop { background: #10271f88; backdrop-filter: blur(4px); }
 .nh-consent-layout { display: block; padding: 24px 20px; }
 .nh-consent-brand { border-right: 0; padding: 0; margin-bottom: 18px; }
 .nh-consent-brand img { width: 125px; height: 62px; }
 .nh-consent-brand p { display: none; }
 .nh-consent h2 { font-size: 23px; margin-right: 0; }
 .nh-consent { font-size: 13px; }
 .nh-consent-actions { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 18px; }
 .nh-consent-actions button { width: 100%; }
 .consent-footer-trigger { padding: 3px 0; }
}
@media (prefers-reduced-motion: reduce) { .nh-consent[open] { animation: none; } .nh-consent-actions button { transition: none; } }

/* Ruhige Logo-Spalte ohne zusaetzlichen Schriftzug. */
@media (min-width: 761px) {
  .nh-consent-layout { grid-template-columns: 150px minmax(0, 1fr); gap: 32px; }
  .nh-consent-brand { align-self: center; border: 0; padding: 0; }
  .nh-consent-brand img { width: 150px; height: auto; }
  .nh-consent-brand p { display: none; }
  .footer-bottom { align-items: flex-start; gap: 20px 32px; }
  .footer-bottom > p { flex: 1 1 auto; min-width: 0; }
  .footer-bottom .legal { display: grid; grid-template-columns: repeat(3, max-content); column-gap: 24px; row-gap: 0; flex: 0 0 auto; }
  .footer-bottom .legal > a { min-height: 24px; }
  .footer-bottom .consent-footer-trigger { grid-column: 1 / -1; justify-self: end; min-height: 32px; font-size: 11px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .footer-bottom { flex-wrap: wrap; }
  .footer-bottom > p { flex-basis: 100%; }
}
@media (max-width: 760px) {
  .footer-bottom .legal { display: flex; flex-wrap: wrap; }
  .footer-bottom .legal > a:last-of-type { border-right: 0; }
  .footer-bottom .consent-footer-trigger { flex-basis: 100%; margin-top: 4px; }
}

@media (min-width: 761px) {
  .nh-consent-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .nh-consent-brand { align-self: start; }
  .nh-consent-brand img { width: 110px; height: auto; }
}
@media (max-width: 760px) {
  .nh-consent-brand img { width: 110px; height: auto; }
}

/* Kompakter Desktop-Banner mit unveraendert gut bedienbaren Buttons. */
@media (min-width: 761px) {
  .nh-consent { width: min(760px, calc(100% - 40px)); inset: auto 20px 20px; font-size: 13px; line-height: 1.5; }
  .nh-consent-layout { padding: 18px 22px; gap: 8px; }
  .nh-consent h2 { font-size: 23px; margin-bottom: 10px; }
  .nh-consent p { margin-bottom: 10px; }
  .nh-consent .consent-kicker { margin-bottom: 6px; }
  .nh-consent-actions { margin-top: 14px; gap: 8px; }
  .nh-consent-actions button { min-height: 44px; padding: 10px 12px; }
  .nh-consent-links { margin-top: 10px; }
}
