.grid-row {
  position: relative;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat( 12, minmax(0,1fr) );
}
.grid-col {
  position: relative;
  box-sizing: content-box;
  display: grid;
}

.grid-block {
  position: relative;
  text-overflow: ellipsis;
}

.grid-col.aligncntnt-start {
  align-content: start;
}
.grid-col.aligncntnt-end {
  align-content: end;
}
.grid-col.aligncntnt-center {
  align-content: center;
}
.grid-col.aligncntnt-stretch {
  align-content: stretch;
}
.grid-col.aligncntnt-space-around {
  align-content: space-around;
}
.grid-col.aligncntnt-space-between {
  align-content: space-between;
}
.grid-col.aligncntnt-space-evenly {
  align-content: space-evenly;
}

.grid-block.align-left, .grid-block.txt-left {
  text-align: left;
}
.grid-block.align-right, .grid-block.txt-right {
  text-align: right;
}
.grid-block.align-center, .grid-block.txt-center {
  text-align: center;
}
.grid-block.align-justify, .grid-block.txt-justify {
  text-align: justify;
}
.grid-col.col-consent {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  font-family: var(--consentFontFamily, inherit);
}
.grid-col.col-consent.is-open { display: flex; }
.grid-col.col-consent .consent-overlay {
  position: absolute;
  inset: 0;
  background: var(--consentOverlayBackground, rgba(12,14,22,0.72));
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  cursor: pointer;
}
.grid-col.col-consent .consent-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--consentDialogMaxWidth, 560px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  box-sizing: border-box;
  padding: var(--consentDialogPadding, 28px);
  background: var(--consentDialogBackground, #ffffff);
  color: var(--consentDialogColor, #1b1d24);
  border: var(--consentDialogBorder, 0 solid transparent);
  border-radius: var(--consentDialogBorderRadius, 12px);
  box-shadow: var(--consentDialogBoxShadow, 0 24px 60px rgba(0,0,0,0.35));
}

/* Fixierter Wiederöffnen-Button (von consent.js eingefügt) */
.consent-trigger {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 99998;
  width: 46px;
  height: 46px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: var(--consentTriggerBackground, #1b1d24);
  color: var(--consentTriggerColor, #ffffff);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 150ms ease;
}
.consent-trigger:hover { filter: brightness(1.15); }
.consent-trigger:focus-visible { outline: 2px solid var(--consentTriggerBackground, #1b1d24); outline-offset: 3px; }
.consent-trigger svg { width: 24px; height: 24px; display: block; }
.grid-block.textarea-consent-category-external {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--consentDivider, rgba(0,0,0,0.1));
}
.grid-block.textarea-consent-category-external .consent-cat-text { flex: 1 1 auto; font-size: 0.9em; line-height: 1.45; }
.grid-block.textarea-consent-category-external .consent-cat-text > :first-child { margin-top: 0; font-weight: 600; }
.grid-block.textarea-consent-category-external .consent-cat-text > :last-child { margin-bottom: 0; }
.grid-block.textarea-consent-category-external .consent-switch {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  margin-top: 2px;
  display: inline-block;
  cursor: pointer;
}
.grid-block.textarea-consent-category-external .consent-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.grid-block.textarea-consent-category-external .consent-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--consentSwitchOff, #c9ccd6);
  transition: background 200ms ease;
}
.grid-block.textarea-consent-category-external .consent-switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform 200ms ease;
}
.grid-block.textarea-consent-category-external .consent-switch input:checked + .consent-switch-track { background: var(--consentSwitchOn, #6b5ecb); }
.grid-block.textarea-consent-category-external .consent-switch input:checked + .consent-switch-track::after { transform: translateX(20px); }
.grid-block.textarea-consent-category-external .consent-switch input:disabled { cursor: not-allowed; }
.grid-block.textarea-consent-category-external .consent-switch input:disabled + .consent-switch-track { opacity: 0.5; }
.grid-block.textarea-consent-category-external .consent-switch input:focus-visible + .consent-switch-track { outline: 2px solid var(--consentSwitchOn, #6b5ecb); outline-offset: 2px; }.grid-block.textarea-consent-category-necessary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--consentDivider, rgba(0,0,0,0.1));
}
.grid-block.textarea-consent-category-necessary .consent-cat-text { flex: 1 1 auto; font-size: 0.9em; line-height: 1.45; }
.grid-block.textarea-consent-category-necessary .consent-cat-text > :first-child { margin-top: 0; font-weight: 600; }
.grid-block.textarea-consent-category-necessary .consent-cat-text > :last-child { margin-bottom: 0; }
.grid-block.textarea-consent-category-necessary .consent-switch {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  margin-top: 2px;
  display: inline-block;
  cursor: pointer;
}
.grid-block.textarea-consent-category-necessary .consent-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.grid-block.textarea-consent-category-necessary .consent-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--consentSwitchOff, #c9ccd6);
  transition: background 200ms ease;
}
.grid-block.textarea-consent-category-necessary .consent-switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform 200ms ease;
}
.grid-block.textarea-consent-category-necessary .consent-switch input:checked + .consent-switch-track { background: var(--consentSwitchOn, #6b5ecb); }
.grid-block.textarea-consent-category-necessary .consent-switch input:checked + .consent-switch-track::after { transform: translateX(20px); }
.grid-block.textarea-consent-category-necessary .consent-switch input:disabled { cursor: not-allowed; }
.grid-block.textarea-consent-category-necessary .consent-switch input:disabled + .consent-switch-track { opacity: 0.5; }
.grid-block.textarea-consent-category-necessary .consent-switch input:focus-visible + .consent-switch-track { outline: 2px solid var(--consentSwitchOn, #6b5ecb); outline-offset: 2px; }.grid-block.textarea-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 4px;
}
.grid-block.textarea-consent-actions .consent-btn {
  flex: 1 1 auto;
  padding: 11px 18px;
  border-radius: var(--consentButtonRadius, 8px);
  font: inherit;
  font-weight: 600;
  font-size: 0.9em;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, filter 150ms ease;
}
/* Ablehnen und Akzeptieren mit identischer, gleichwertiger Gewichtung (DSGVO/EDSA). */
.grid-block.textarea-consent-actions .consent-btn--accept,
.grid-block.textarea-consent-actions .consent-btn--save ,
.grid-block.textarea-consent-actions .consent-btn--reject {
  background: var(--consentDecisionBackground, #005588);
  color: var(--consentDecisionColor, #ffffff);
  border-color: var(--consentDecisionBackground, #005588);
}
.grid-block.textarea-consent-actions .consent-btn--save:hover,
.grid-block.textarea-consent-actions .consent-btn--accept:hover,
.grid-block.textarea-consent-actions .consent-btn--reject:hover { 
  background: var(--consentDecisionBackground, #FFFFFF);
  color: var(--consentDecisionColor, #005588);
  border-color: var(--consentDecisionBackground, #005588);
}

.grid-block.textarea-consent-actions .consent-btn:focus-visible {
  outline: 2px solid var(--consentSwitchOn, #6b5ecb);
  outline-offset: 2px;
}
@media (max-width: 520px) {
  .grid-block.textarea-consent-actions .consent-btn { flex: 1 1 100%; }
}.grid-block.textarea-consent-intro { margin-bottom: 4px; }
.grid-block.textarea-consent-intro > :first-child { margin-top: 0; }
.grid-block.textarea-consent-intro h1,
.grid-block.textarea-consent-intro h2,
.grid-block.textarea-consent-intro h3 { margin: 0 0 8px; line-height: 1.2; }.grid-block.textarea-consent-category-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--consentDivider, rgba(0,0,0,0.1));
}
.grid-block.textarea-consent-category-meta .consent-cat-text { flex: 1 1 auto; font-size: 0.9em; line-height: 1.45; }
.grid-block.textarea-consent-category-meta .consent-cat-text > :first-child { margin-top: 0; font-weight: 600; }
.grid-block.textarea-consent-category-meta .consent-cat-text > :last-child { margin-bottom: 0; }
.grid-block.textarea-consent-category-meta .consent-switch {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  margin-top: 2px;
  display: inline-block;
  cursor: pointer;
}
.grid-block.textarea-consent-category-meta .consent-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.grid-block.textarea-consent-category-meta .consent-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--consentSwitchOff, #c9ccd6);
  transition: background 200ms ease;
}
.grid-block.textarea-consent-category-meta .consent-switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform 200ms ease;
}
.grid-block.textarea-consent-category-meta .consent-switch input:checked + .consent-switch-track { background: var(--consentSwitchOn, #6b5ecb); }
.grid-block.textarea-consent-category-meta .consent-switch input:checked + .consent-switch-track::after { transform: translateX(20px); }
.grid-block.textarea-consent-category-meta .consent-switch input:disabled { cursor: not-allowed; }
.grid-block.textarea-consent-category-meta .consent-switch input:disabled + .consent-switch-track { opacity: 0.5; }
.grid-block.textarea-consent-category-meta .consent-switch input:focus-visible + .consent-switch-track { outline: 2px solid var(--consentSwitchOn, #6b5ecb); outline-offset: 2px; }.grid-block.textarea-consent-category-google {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--consentDivider, rgba(0,0,0,0.1));
}
.grid-block.textarea-consent-category-google .consent-cat-text { flex: 1 1 auto; font-size: 0.9em; line-height: 1.45; }
.grid-block.textarea-consent-category-google .consent-cat-text > :first-child { margin-top: 0; font-weight: 600; }
.grid-block.textarea-consent-category-google .consent-cat-text > :last-child { margin-bottom: 0; }
.grid-block.textarea-consent-category-google .consent-switch {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  margin-top: 2px;
  display: inline-block;
  cursor: pointer;
}
.grid-block.textarea-consent-category-google .consent-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.grid-block.textarea-consent-category-google .consent-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--consentSwitchOff, #c9ccd6);
  transition: background 200ms ease;
}
.grid-block.textarea-consent-category-google .consent-switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform 200ms ease;
}
.grid-block.textarea-consent-category-google .consent-switch input:checked + .consent-switch-track { background: var(--consentSwitchOn, #6b5ecb); }
.grid-block.textarea-consent-category-google .consent-switch input:checked + .consent-switch-track::after { transform: translateX(20px); }
.grid-block.textarea-consent-category-google .consent-switch input:disabled { cursor: not-allowed; }
.grid-block.textarea-consent-category-google .consent-switch input:disabled + .consent-switch-track { opacity: 0.5; }
.grid-block.textarea-consent-category-google .consent-switch input:focus-visible + .consent-switch-track { outline: 2px solid var(--consentSwitchOn, #6b5ecb); outline-offset: 2px; }@media all and (min-width: 1101px) {
  .hide-default { display: none; }
  .col-1 { grid-column: span 1; }
  .col-2 { grid-column: span 2; }
  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
  .col-9 { grid-column: span 9; }
  .col-10 { grid-column: span 10; }
  .col-11 { grid-column: span 11; }
  .col-12 { grid-column: span 12; }
}

@media all and (max-width: 1100px) {
  .hide-tablet { display: none; }
  .col-t-1 { grid-column: span 1; }
  .col-t-2 { grid-column: span 2; }
  .col-t-3 { grid-column: span 3; }
  .col-t-4 { grid-column: span 4; }
  .col-t-5 { grid-column: span 5; }
  .col-t-6 { grid-column: span 6; }
  .col-t-7 { grid-column: span 7; }
  .col-t-8 { grid-column: span 8; }
  .col-t-9 { grid-column: span 9; }
  .col-t-10 { grid-column: span 10; }
  .col-t-11 { grid-column: span 11; }
  .col-t-12 { grid-column: span 12; }
}

@media all and (max-width: 600px) {
  .hide-mobile { display: none; }
  .col-m-1 { grid-column: span 1; }
  .col-m-2 { grid-column: span 2; }
  .col-m-3 { grid-column: span 3; }
  .col-m-4 { grid-column: span 4; }
  .col-m-5 { grid-column: span 5; }
  .col-m-6 { grid-column: span 6; }
  .col-m-7 { grid-column: span 7; }
  .col-m-8 { grid-column: span 8; }
  .col-m-9 { grid-column: span 9; }
  .col-m-10 { grid-column: span 10; }
  .col-m-11 { grid-column: span 11; }
  .col-m-12 { grid-column: span 12; }
}
