@charset "UTF-8";
/**
 * main.css – Theme-Variante für beisetzung.digital
 *
 * Strukturell identisch zum bisherigen main.css (Roboto/Headline-Fonts,
 * Bootstrap-artiges Grid, Utility-Klassen). Inhaltlich angepasst an die
 * pietätvolle Tonalität des Themas „digitaler Nachlass":
 *
 *  - Farbpalette: warmes Papier-Weiß, warmes Anthrazit, gedämpftes
 *    Salbeigrün statt knalligem Business-Blau
 *  - Header/Footer: ruhige, monochrome Flächen statt harter Grauverläufe
 *  - Event-Kalenderfarben entsättigt
 *  - Dark-Mode & High-Contrast konsistent auf die neue Palette gemappt
 */

:root {
  --font-family-base: "Roboto-VariableFont_wdth,wght", Arial, sans-serif;
  --font-family-headline: "Headline", var(--font-family-base);
  --font-size-base: 1.125rem;
  --font-size-small: 0.875rem;
  --font-size-large: 1.25rem;
  --line-height-base: 1.7;
  --line-height-heading: 1.25;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --color-white: #ffffff;
  --color-black: #000000;

  /* Warme, leicht ins Beige gezogene Grautöne */
  --color-gray-50:  #f7f5f1;
  --color-gray-100: #efece6;
  --color-gray-200: #e3ddd2;
  --color-gray-300: #d0c9bc;
  --color-gray-400: #a8a296;
  --color-gray-500: #7e7b73;
  --color-gray-600: #5b5a54;
  --color-gray-700: #413f3b;
  --color-gray-800: #2b2a27;
  --color-gray-900: #1a1917;

  /* Primärfarbe: gedämpftes Salbei-/Moosgrün – ruhig, respektvoll */
  --color-primary: #6b7d6a;
  --color-primary-dark: #4a5a4a;
  --color-primary-light: #8ea08c;

  --color-text: var(--color-gray-900);
  --color-text-muted: var(--color-gray-600);
  --color-bg: var(--color-gray-50);
  --color-bg-muted: var(--color-gray-100);
  --color-border: var(--color-gray-300);

  /* Fokus: warmes Altgold statt grelles Neon-Gelb */
  --color-focus: #c9a96a;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
}

@font-face {
  font-family: "InclusiveSans-Regular";
  src: url("/files/media/fonts/InclusiveSans-Regular.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: "InclusiveSans-Regular";
  src: url("/files/media/fonts/InclusiveSans-Italic.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Headline";
  src: url("/files/media/fonts/MozillaHeadline-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 400;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Roboto-VariableFont_wdth,wght";
  src: url("/files/media/fonts/Roboto-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Roboto-VariableFont_wdth,wght";
  src: url("/files/media/fonts/Roboto-Italic-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: italic;
  font-display: swap;
}
@supports (font-display: optional) {
  @font-face {
    font-family: "InclusiveSans-Fallback";
    src: local("Arial"), local("Helvetica"), local("sans-serif");
    font-display: optional;
    size-adjust: 105%;
  }
}
.fonts-loading { visibility: hidden; }
.fonts-loaded  { visibility: visible; }

@font-face {
  font-family: "Arial Fallback";
  src: local("Arial");
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 105%;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-bg);
  font-weight: var(--font-weight-normal);
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@media (max-width: 576px) {
  body { font-size: 1rem; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headline);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-heading);
  letter-spacing: -0.01em;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--color-primary-dark);
}
h1:first-child, h2:first-child, h3:first-child,
h4:first-child, h5:first-child, h6:first-child { margin-top: 0; }

h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
  font-weight: var(--font-weight-semibold);
}
@supports not (font-size: clamp(2rem, 4vw + 1rem, 3rem)) {
  h1 { font-size: 2.5rem; }
}

h2 {
  font-size: clamp(1.75rem, 3vw + 1rem, 2.25rem);
  position: relative;
  padding-bottom: var(--space-sm);
}
h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--color-primary);
  margin-top: var(--space-sm);
  opacity: 0.7;
}
@supports not (font-size: clamp(1.75rem, 3vw + 1rem, 2.25rem)) {
  h2 { font-size: 2rem; }
}

h3 { font-size: clamp(1.5rem, 2.5vw + 1rem, 1.875rem); }
@supports not (font-size: clamp(1.5rem, 2.5vw + 1rem, 1.875rem)) {
  h3 { font-size: 1.75rem; }
}

h4 { font-size: clamp(1.25rem, 2vw + 1rem, 1.5rem); }
@supports not (font-size: clamp(1.25rem, 2vw + 1rem, 1.5rem)) {
  h4 { font-size: 1.5rem; }
}

h5 { font-size: var(--font-size-large); }
h6 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
}

p {
  margin-bottom: var(--space-lg);
  max-width: 70ch;
}
p + p { margin-top: calc(var(--space-lg) * -0.5); }

a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 0.075em;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, text-decoration-thickness 0.2s ease;
}
a:hover {
  color: var(--color-primary);
  text-decoration-thickness: 0.125em;
}
a:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

ul, ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}
ul li, ol li { margin-bottom: var(--space-sm); }
ul li:last-child, ol li:last-child { margin-bottom: 0; }
ul ul, ul ol, ol ul, ol ol {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}

strong, b { font-weight: var(--font-weight-bold); }
em, i { font-style: italic; }

small {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
}

code {
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 0.9em;
  background: var(--color-bg-muted);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

blockquote {
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  border-left: 3px solid var(--color-primary-light);
  background: var(--color-bg-muted);
  font-style: italic;
  color: var(--color-text-muted);
}
blockquote p:last-child { margin-bottom: 0; }

hr {
  border: 0;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-2xl) 0;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}
.container.container-fluid { max-width: none; }
@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

.grid { display: grid; gap: var(--space-lg); }
.grid.grid-auto { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 576px) { .grid.grid-2 { grid-template-columns: 1fr; } }
.grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 992px) { .grid.grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .grid.grid-3 { grid-template-columns: 1fr; } }
.grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1200px) { .grid.grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 992px)  { .grid.grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px)  { .grid.grid-4 { grid-template-columns: 1fr; } }

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(var(--space-lg) / -2);
  margin-right: calc(var(--space-lg) / -2);
}
.row.row-cols-auto > * { flex: 0 0 auto; width: auto; }
.row.no-gutters { margin-left: 0; margin-right: 0; }
.row.no-gutters > [class*=col-] { padding-left: 0; padding-right: 0; }

[class*=col-] {
  position: relative;
  width: 100%;
  padding-left: calc(var(--space-lg) / 2);
  padding-right: calc(var(--space-lg) / 2);
  box-sizing: border-box;
}

.col     { flex: 1 0 0%; }
.col-1   { flex: 0 0 auto; width: 8.3333333333%; }
.col-2   { flex: 0 0 auto; width: 16.6666666667%; }
.col-3   { flex: 0 0 auto; width: 25%; }
.col-4   { flex: 0 0 auto; width: 33.3333333333%; }
.col-5   { flex: 0 0 auto; width: 41.6666666667%; }
.col-6   { flex: 0 0 auto; width: 50%; }
.col-7   { flex: 0 0 auto; width: 58.3333333333%; }
.col-8   { flex: 0 0 auto; width: 66.6666666667%; }
.col-9   { flex: 0 0 auto; width: 75%; }
.col-10  { flex: 0 0 auto; width: 83.3333333333%; }
.col-11  { flex: 0 0 auto; width: 91.6666666667%; }
.col-12  { flex: 0 0 auto; width: 100%; }
.col-auto { flex: 0 0 auto; width: auto; }

@media (min-width: 576px) {
  .col-sm-1{flex:0 0 auto;width:8.3333333333%}
  .col-sm-2{flex:0 0 auto;width:16.6666666667%}
  .col-sm-3{flex:0 0 auto;width:25%}
  .col-sm-4{flex:0 0 auto;width:33.3333333333%}
  .col-sm-5{flex:0 0 auto;width:41.6666666667%}
  .col-sm-6{flex:0 0 auto;width:50%}
  .col-sm-7{flex:0 0 auto;width:58.3333333333%}
  .col-sm-8{flex:0 0 auto;width:66.6666666667%}
  .col-sm-9{flex:0 0 auto;width:75%}
  .col-sm-10{flex:0 0 auto;width:83.3333333333%}
  .col-sm-11{flex:0 0 auto;width:91.6666666667%}
  .col-sm-12{flex:0 0 auto;width:100%}
  .col-sm-auto{flex:0 0 auto;width:auto}
}
@media (min-width: 768px) {
  .col-md-1{flex:0 0 auto;width:8.3333333333%}
  .col-md-2{flex:0 0 auto;width:16.6666666667%}
  .col-md-3{flex:0 0 auto;width:25%}
  .col-md-4{flex:0 0 auto;width:33.3333333333%}
  .col-md-5{flex:0 0 auto;width:41.6666666667%}
  .col-md-6{flex:0 0 auto;width:50%}
  .col-md-7{flex:0 0 auto;width:58.3333333333%}
  .col-md-8{flex:0 0 auto;width:66.6666666667%}
  .col-md-9{flex:0 0 auto;width:75%}
  .col-md-10{flex:0 0 auto;width:83.3333333333%}
  .col-md-11{flex:0 0 auto;width:91.6666666667%}
  .col-md-12{flex:0 0 auto;width:100%}
  .col-md-auto{flex:0 0 auto;width:auto}
}
@media (min-width: 992px) {
  .col-lg-1{flex:0 0 auto;width:8.3333333333%}
  .col-lg-2{flex:0 0 auto;width:16.6666666667%}
  .col-lg-3{flex:0 0 auto;width:25%}
  .col-lg-4{flex:0 0 auto;width:33.3333333333%}
  .col-lg-5{flex:0 0 auto;width:41.6666666667%}
  .col-lg-6{flex:0 0 auto;width:50%}
  .col-lg-7{flex:0 0 auto;width:58.3333333333%}
  .col-lg-8{flex:0 0 auto;width:66.6666666667%}
  .col-lg-9{flex:0 0 auto;width:75%}
  .col-lg-10{flex:0 0 auto;width:83.3333333333%}
  .col-lg-11{flex:0 0 auto;width:91.6666666667%}
  .col-lg-12{flex:0 0 auto;width:100%}
  .col-lg-auto{flex:0 0 auto;width:auto}
}
@media (min-width: 1200px) {
  .col-xl-1{flex:0 0 auto;width:8.3333333333%}
  .col-xl-2{flex:0 0 auto;width:16.6666666667%}
  .col-xl-3{flex:0 0 auto;width:25%}
  .col-xl-4{flex:0 0 auto;width:33.3333333333%}
  .col-xl-5{flex:0 0 auto;width:41.6666666667%}
  .col-xl-6{flex:0 0 auto;width:50%}
  .col-xl-7{flex:0 0 auto;width:58.3333333333%}
  .col-xl-8{flex:0 0 auto;width:66.6666666667%}
  .col-xl-9{flex:0 0 auto;width:75%}
  .col-xl-10{flex:0 0 auto;width:83.3333333333%}
  .col-xl-11{flex:0 0 auto;width:91.6666666667%}
  .col-xl-12{flex:0 0 auto;width:100%}
  .col-xl-auto{flex:0 0 auto;width:auto}
}
@media (min-width: 1400px) {
  .col-2xl-1{flex:0 0 auto;width:8.3333333333%}
  .col-2xl-2{flex:0 0 auto;width:16.6666666667%}
  .col-2xl-3{flex:0 0 auto;width:25%}
  .col-2xl-4{flex:0 0 auto;width:33.3333333333%}
  .col-2xl-5{flex:0 0 auto;width:41.6666666667%}
  .col-2xl-6{flex:0 0 auto;width:50%}
  .col-2xl-7{flex:0 0 auto;width:58.3333333333%}
  .col-2xl-8{flex:0 0 auto;width:66.6666666667%}
  .col-2xl-9{flex:0 0 auto;width:75%}
  .col-2xl-10{flex:0 0 auto;width:83.3333333333%}
  .col-2xl-11{flex:0 0 auto;width:91.6666666667%}
  .col-2xl-12{flex:0 0 auto;width:100%}
  .col-2xl-auto{flex:0 0 auto;width:auto}
}

.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.justify-content-center  { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.text-center { text-align: center !important; }
.text-left   { text-align: left !important; }
.text-right  { text-align: right !important; }

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-text);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-md);
  text-decoration: none;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 6px; }

:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

button:focus,
input:focus,
select:focus,
textarea:focus,
[role=button]:focus,
[tabindex]:focus {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 5px var(--color-focus);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
button:hover,
input:hover,
select:hover,
textarea:hover { border-color: var(--color-primary-light); }
button:invalid,
input:invalid,
select:invalid,
textarea:invalid { border-color: #a5574c; }
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  background-color: var(--color-bg-muted);
  color: var(--color-text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

button,
[role=button],
input[type=submit],
input[type=button],
input[type=reset] {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: 1px solid var(--color-primary);
  cursor: pointer;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}
button:hover:not(:disabled),
[role=button]:hover:not(:disabled),
input[type=submit]:hover:not(:disabled),
input[type=button]:hover:not(:disabled),
input[type=reset]:hover:not(:disabled) {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}
button:active:not(:disabled),
[role=button]:active:not(:disabled),
input[type=submit]:active:not(:disabled),
input[type=button]:active:not(:disabled),
input[type=reset]:active:not(:disabled) {
  transform: translateY(0);
}

.error-message {
  color: #a5574c;
  font-size: var(--font-size-small);
  margin-top: var(--space-xs);
}
.error-message::before { content: "⚠ "; font-weight: bold; }

.success-message {
  color: #5e7a4c;
  font-size: var(--font-size-small);
  margin-top: var(--space-xs);
}
.success-message::before { content: "✓ "; font-weight: bold; }

.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}
.visually-hidden-focusable:focus,
.sr-only-focusable:focus {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: inherit !important;
  margin: inherit !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-contrast: high) {
  :root {
    --color-text: var(--color-black);
    --color-bg: var(--color-white);
    --color-primary: #2f3d2e;
    --color-primary-dark: #1a241a;
    --color-border: var(--color-black);
  }
  button, input, select, textarea { border-width: 2px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #ebe7dd;
    --color-text-muted: #a8a296;
    --color-bg: #1a1917;
    --color-bg-muted: #25231f;
    --color-border: #3d3a34;
    --color-primary: #8ea08c;
    --color-primary-dark: #6b7d6a;
    --color-primary-light: #a9b7a7;
    --color-focus: #c9a96a;
  }
}
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a, a:visited { text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  h2::after { display: none; }
  .no-print { display: none !important; }
}

/* ------------------------------------------------------------------
   Header – ruhig, hell; kein harter Grauverlauf mehr
   ------------------------------------------------------------------ */
header,
.header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  box-shadow: none;
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl) 0 var(--space-lg);
}
header .header-content,
.header .header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}
@media (max-width: 768px) {
  header .header-content,
  .header .header-content {
    flex-direction: column;
    gap: var(--space-md);
  }
}
header .content-hyperlink figure,
.header .content-hyperlink figure { margin: 0; }
header .content-hyperlink img,
.header .content-hyperlink img {
  display: block;
  filter: grayscale(0.15);
  transition: filter 0.3s ease;
}
header .content-hyperlink a:hover img,
.header .content-hyperlink a:hover img { filter: grayscale(0); }

/* Claim neben dem Logo */
header .content-text .rte p,
.header .content-text .rte p {
  margin: 0;
  font-style: italic;
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  letter-spacing: 0.02em;
  max-width: 28ch;
}

header .header-logo,
.header .header-logo {
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  text-decoration: none;
}
header .header-logo:hover,
.header .header-logo:hover { color: var(--color-primary); }

header .header-nav ul,
.header .header-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-lg);
}
@media (max-width: 768px) {
  header .header-nav ul,
  .header .header-nav ul {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}
header .header-nav ul li a,
.header .header-nav ul li a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
header .header-nav ul li a:hover,
header .header-nav ul li a:focus,
.header .header-nav ul li a:hover,
.header .header-nav ul li a:focus {
  background: var(--color-primary);
  color: var(--color-white);
}

/* „Links"-Button rechts im Header */
header .content-hyperlink a[href="/links"],
.header .content-hyperlink a[href="/links"] {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--font-size-small);
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
}
header .content-hyperlink a[href="/links"]:hover,
.header .content-hyperlink a[href="/links"]:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ------------------------------------------------------------------
   Footer – warmes, ruhiges Beige statt dunkler Verlauf
   ------------------------------------------------------------------ */
footer,
.footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-muted);
  margin-top: var(--space-3xl);
  padding: var(--space-2xl) 0 var(--space-xl);
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
}
footer .footer-content,
.footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
footer .footer-section,
.footer .footer-section { margin-bottom: var(--space-lg); }
footer .footer-section:last-child,
.footer .footer-section:last-child { margin-bottom: 0; }
footer .footer-section h3, footer .footer-section h4,
.footer .footer-section h3,
.footer .footer-section h4 {
  color: var(--color-text);
  font-size: var(--font-size-base);
  margin-bottom: var(--space-md);
  font-weight: var(--font-weight-semibold);
}
footer a,
.footer a {
  color: var(--color-primary-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
footer a:hover, footer a:focus,
.footer a:hover,
.footer a:focus {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  text-decoration: none;
}

footer .content-text p,
.footer .content-text p {
  margin-bottom: var(--space-sm);
  max-width: none;
}

footer .mod_customnav nav.header-nav ul,
.footer .mod_customnav nav.header-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: 0;
}
footer .mod_customnav nav.header-nav ul li a,
.footer .mod_customnav nav.header-nav ul li a {
  padding: 0;
  font-weight: var(--font-weight-normal);
  background: transparent;
}
footer .mod_customnav nav.header-nav ul li a:hover,
footer .mod_customnav nav.header-nav ul li a:focus,
.footer .mod_customnav nav.header-nav ul li a:hover,
.footer .mod_customnav nav.header-nav ul li a:focus {
  background: transparent;
  color: var(--color-primary);
}

footer .footer-nav ul,
.footer .footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer .footer-nav ul li,
.footer .footer-nav ul li { margin-bottom: var(--space-sm); }
footer .footer-nav ul li:last-child,
.footer .footer-nav ul li:last-child { margin-bottom: 0; }

footer .footer-grid,
.footer .footer-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
}
@media (min-width: 576px) {
  footer .footer-grid,
  .footer .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  footer .footer-grid,
  .footer .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
  footer .footer-grid,
  .footer .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

footer .footer-bottom,
.footer .footer-bottom {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  text-align: center;
  font-size: 0.8rem;
}
@media (min-width: 768px) {
  footer .footer-bottom,
  .footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

footer .footer-social,
.footer .footer-social {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-md);
}
@media (min-width: 768px) {
  footer .footer-social,
  .footer .footer-social { margin-top: 0; justify-content: flex-end; }
}
footer .footer-social a,
.footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-border);
  color: var(--color-text);
  transition: all 0.2s ease;
  border-bottom: none;
}
footer .footer-social a:hover,
.footer .footer-social a:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
}
.page-wrapper .main-content { flex: 1; }

.footer-elevated {
  box-shadow: 0 -1px 0 var(--color-border);
  border-top: none;
}
.footer-gradient {
  background: linear-gradient(to bottom, var(--color-bg), var(--color-bg-muted));
}
.footer-dark {
  background: var(--color-gray-800);
  color: var(--color-gray-200);
  border-top: 1px solid var(--color-primary-dark);
}
.footer-dark a { color: var(--color-gray-300); }
.footer-dark a:hover, .footer-dark a:focus { color: var(--color-white); }
.footer-dark .footer-bottom { border-top-color: var(--color-gray-700); }

/* „Keine Termine"-Hinweis dezenter */
.empty {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-muted);
  border-left: 3px solid var(--color-primary-light);
  color: var(--color-text-muted);
  font-style: italic;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ------------------------------------------------------------------
   Event-Komponenten – ruhiger, ohne knallige Farbcodes
   ------------------------------------------------------------------ */
.event {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.event:hover {
  box-shadow: 0 2px 6px rgba(42, 45, 51, 0.06);
  border-color: var(--color-primary-light);
}
.event:focus-within {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.event .date {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-sm);
  display: block;
}
.event .date::before {
  content: "📅";
  margin-right: var(--space-xs);
  font-size: 0.9em;
}

.event a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  line-height: var(--line-height-heading);
  transition: color 0.2s ease;
}
.event a:hover {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.event a:focus { outline: none; }

.event .event-teaser {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
  line-height: 1.6;
}
.event .event-teaser p { margin-bottom: var(--space-xs); }
.event .event-teaser p:last-child { margin-bottom: 0; }

.event .event-location {
  display: flex;
  align-items: center;
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}
.event .event-location .event-location-icon {
  margin-right: var(--space-xs);
  font-size: 0.9em;
}

.event.layout_upcoming {
  border-left: 3px solid var(--color-primary);
}
.event.layout_upcoming.upcoming {
  background: var(--color-bg-muted);
}

.event.featured {
  position: relative;
  background: var(--color-primary-dark);
  color: var(--color-white);
  border-color: var(--color-primary-dark);
}
.event.featured .date { color: rgba(255, 255, 255, 0.85); }
.event.featured .date::before { content: "★"; }
.event.featured a { color: var(--color-white); }
.event.featured a:hover {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.event.featured::after {
  content: "Hervorgehoben";
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.1em;
}

/* Entsättigte Kalenderfarben */
.event.cal_1 { border-left-color: #8c6a6a; }
.event.cal_1.featured { background: #6d4f4f; }

.event.cal_2 { border-left-color: #6a7c8c; }
.event.cal_2.featured { background: #4e5e6d; }

.event.cal_3 { border-left-color: #7a8c6a; }
.event.cal_3.featured { background: #5c6d4f; }

.event.cal_4 { border-left-color: #8c826a; }
.event.cal_4.featured { background: #6d634f; }

.events-grid {
  display: grid;
  gap: var(--space-lg);
}
@media (min-width: 576px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .events-grid { grid-template-columns: repeat(3, 1fr); }
}

.events-list .event {
  flex-direction: row;
  align-items: center;
}
.events-list .event .date {
  margin-bottom: 0;
  margin-right: var(--space-lg);
  min-width: 180px;
  flex-shrink: 0;
}
.events-list .event a { flex: 1; }

.event.compact {
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
}
.event.compact .date { font-size: 0.8rem; margin-bottom: var(--space-xs); }
.event.compact a     { font-size: 0.9rem; }

.event.card {
  padding: var(--space-xl);
  text-align: center;
}
.event.card .date {
  font-size: var(--font-size-large);
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg-muted);
  border-radius: var(--radius-md);
  display: inline-block;
}
.event.card a {
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-bold);
}

@media (max-width: 576px) {
  .event { padding: var(--space-md); }
  .event.layout_upcoming { border-left-width: 3px; }
  .events-list .event { flex-direction: column; align-items: flex-start; }
  .events-list .event .date {
    margin-right: 0;
    margin-bottom: var(--space-sm);
    min-width: auto;
  }
}
@media (prefers-color-scheme: dark) {
  .event {
    background: var(--color-bg-muted);
    border-color: var(--color-border);
  }
  .event:hover {
    background: var(--color-gray-700);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  .event .date   { color: var(--color-text-muted); }
  .event a       { color: var(--color-text); }
  .event a:hover { color: var(--color-primary-light); }
}
@media (prefers-contrast: high) {
  .event { border-width: 2px; }
  .event.featured { border-width: 3px; }
  .event a { font-weight: var(--font-weight-bold); }
}
@media (prefers-reduced-motion: reduce) {
  .event { transition: none; }
  .event:hover { transform: none; }
}
@media print {
  .event {
    break-inside: avoid;
    border: 1px solid #000;
    background: white !important;
    color: black !important;
    box-shadow: none;
    transform: none;
  }
  .event .date::before { content: ""; }
  .event a { color: black !important; text-decoration: underline; }
  .event.featured::after {
    content: " (Hervorgehoben)";
    position: static;
    background: none;
    color: black;
    font-weight: normal;
  }
}

/* ------------------------------------------------------------------
   Utility-Klassen (Spacing, Display, Flex, Text, …) – unverändert
   ------------------------------------------------------------------ */
.m-0{margin:0!important}.mt-0{margin-top:0!important}.mr-0{margin-right:0!important}.mb-0{margin-bottom:0!important}.ml-0{margin-left:0!important}
.m-xs{margin:var(--space-xs)!important}.mt-xs{margin-top:var(--space-xs)!important}.mr-xs{margin-right:var(--space-xs)!important}.mb-xs{margin-bottom:var(--space-xs)!important}.ml-xs{margin-left:var(--space-xs)!important}.mx-xs{margin-left:var(--space-xs)!important;margin-right:var(--space-xs)!important}.my-xs{margin-top:var(--space-xs)!important;margin-bottom:var(--space-xs)!important}
.p-xs{padding:var(--space-xs)!important}.pt-xs{padding-top:var(--space-xs)!important}.pr-xs{padding-right:var(--space-xs)!important}.pb-xs{padding-bottom:var(--space-xs)!important}.pl-xs{padding-left:var(--space-xs)!important}.px-xs{padding-left:var(--space-xs)!important;padding-right:var(--space-xs)!important}.py-xs{padding-top:var(--space-xs)!important;padding-bottom:var(--space-xs)!important}
.m-sm{margin:var(--space-sm)!important}.mt-sm{margin-top:var(--space-sm)!important}.mr-sm{margin-right:var(--space-sm)!important}.mb-sm{margin-bottom:var(--space-sm)!important}.ml-sm{margin-left:var(--space-sm)!important}.mx-sm{margin-left:var(--space-sm)!important;margin-right:var(--space-sm)!important}.my-sm{margin-top:var(--space-sm)!important;margin-bottom:var(--space-sm)!important}
.p-sm{padding:var(--space-sm)!important}.pt-sm{padding-top:var(--space-sm)!important}.pr-sm{padding-right:var(--space-sm)!important}.pb-sm{padding-bottom:var(--space-sm)!important}.pl-sm{padding-left:var(--space-sm)!important}.px-sm{padding-left:var(--space-sm)!important;padding-right:var(--space-sm)!important}.py-sm{padding-top:var(--space-sm)!important;padding-bottom:var(--space-sm)!important}
.m-md{margin:var(--space-md)!important}.mt-md{margin-top:var(--space-md)!important}.mr-md{margin-right:var(--space-md)!important}.mb-md{margin-bottom:var(--space-md)!important}.ml-md{margin-left:var(--space-md)!important}.mx-md{margin-left:var(--space-md)!important;margin-right:var(--space-md)!important}.my-md{margin-top:var(--space-md)!important;margin-bottom:var(--space-md)!important}
.p-md{padding:var(--space-md)!important}.pt-md{padding-top:var(--space-md)!important}.pr-md{padding-right:var(--space-md)!important}.pb-md{padding-bottom:var(--space-md)!important}.pl-md{padding-left:var(--space-md)!important}.px-md{padding-left:var(--space-md)!important;padding-right:var(--space-md)!important}.py-md{padding-top:var(--space-md)!important;padding-bottom:var(--space-md)!important}
.m-lg{margin:var(--space-lg)!important}.mt-lg{margin-top:var(--space-lg)!important}.mr-lg{margin-right:var(--space-lg)!important}.mb-lg{margin-bottom:var(--space-lg)!important}.ml-lg{margin-left:var(--space-lg)!important}.mx-lg{margin-left:var(--space-lg)!important;margin-right:var(--space-lg)!important}.my-lg{margin-top:var(--space-lg)!important;margin-bottom:var(--space-lg)!important}
.p-lg{padding:var(--space-lg)!important}.pt-lg{padding-top:var(--space-lg)!important}.pr-lg{padding-right:var(--space-lg)!important}.pb-lg{padding-bottom:var(--space-lg)!important}.pl-lg{padding-left:var(--space-lg)!important}.px-lg{padding-left:var(--space-lg)!important;padding-right:var(--space-lg)!important}.py-lg{padding-top:var(--space-lg)!important;padding-bottom:var(--space-lg)!important}
.m-xl{margin:var(--space-xl)!important}.mt-xl{margin-top:var(--space-xl)!important}.mr-xl{margin-right:var(--space-xl)!important}.mb-xl{margin-bottom:var(--space-xl)!important}.ml-xl{margin-left:var(--space-xl)!important}.mx-xl{margin-left:var(--space-xl)!important;margin-right:var(--space-xl)!important}.my-xl{margin-top:var(--space-xl)!important;margin-bottom:var(--space-xl)!important}
.p-xl{padding:var(--space-xl)!important}.pt-xl{padding-top:var(--space-xl)!important}.pr-xl{padding-right:var(--space-xl)!important}.pb-xl{padding-bottom:var(--space-xl)!important}.pl-xl{padding-left:var(--space-xl)!important}.px-xl{padding-left:var(--space-xl)!important;padding-right:var(--space-xl)!important}.py-xl{padding-top:var(--space-xl)!important;padding-bottom:var(--space-xl)!important}
.m-2xl{margin:var(--space-2xl)!important}.mt-2xl{margin-top:var(--space-2xl)!important}.mr-2xl{margin-right:var(--space-2xl)!important}.mb-2xl{margin-bottom:var(--space-2xl)!important}.ml-2xl{margin-left:var(--space-2xl)!important}.mx-2xl{margin-left:var(--space-2xl)!important;margin-right:var(--space-2xl)!important}.my-2xl{margin-top:var(--space-2xl)!important;margin-bottom:var(--space-2xl)!important}
.p-2xl{padding:var(--space-2xl)!important}.pt-2xl{padding-top:var(--space-2xl)!important}.pr-2xl{padding-right:var(--space-2xl)!important}.pb-2xl{padding-bottom:var(--space-2xl)!important}.pl-2xl{padding-left:var(--space-2xl)!important}.px-2xl{padding-left:var(--space-2xl)!important;padding-right:var(--space-2xl)!important}.py-2xl{padding-top:var(--space-2xl)!important;padding-bottom:var(--space-2xl)!important}
.m-3xl{margin:var(--space-3xl)!important}.mt-3xl{margin-top:var(--space-3xl)!important}.mr-3xl{margin-right:var(--space-3xl)!important}.mb-3xl{margin-bottom:var(--space-3xl)!important}.ml-3xl{margin-left:var(--space-3xl)!important}.mx-3xl{margin-left:var(--space-3xl)!important;margin-right:var(--space-3xl)!important}.my-3xl{margin-top:var(--space-3xl)!important;margin-bottom:var(--space-3xl)!important}
.p-3xl{padding:var(--space-3xl)!important}.pt-3xl{padding-top:var(--space-3xl)!important}.pr-3xl{padding-right:var(--space-3xl)!important}.pb-3xl{padding-bottom:var(--space-3xl)!important}.pl-3xl{padding-left:var(--space-3xl)!important}.px-3xl{padding-left:var(--space-3xl)!important;padding-right:var(--space-3xl)!important}.py-3xl{padding-top:var(--space-3xl)!important;padding-bottom:var(--space-3xl)!important}

.d-none{display:none!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-grid{display:grid!important}

@media (min-width: 576px){.d-sm-none{display:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-grid{display:grid!important}}
@media (min-width: 768px){.d-md-none{display:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-grid{display:grid!important}}
@media (min-width: 992px){.d-lg-none{display:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-grid{display:grid!important}}
@media (min-width: 1200px){.d-xl-none{display:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-grid{display:grid!important}}

.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}
.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}
.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}
.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}
.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}

.text-left{text-align:left!important}.text-right{text-align:right!important}.text-center{text-align:center!important}.text-justify{text-align:justify!important}
.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}
.font-weight-light{font-weight:var(--font-weight-normal)!important}.font-weight-normal{font-weight:var(--font-weight-normal)!important}.font-weight-medium{font-weight:var(--font-weight-medium)!important}.font-weight-semibold{font-weight:var(--font-weight-semibold)!important}.font-weight-bold{font-weight:var(--font-weight-bold)!important}
.font-italic{font-style:italic!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}

.text-primary{color:var(--color-primary)!important}.text-muted{color:var(--color-text-muted)!important}.text-white{color:var(--color-white)!important}.text-dark{color:var(--color-text)!important}
.bg-primary{background-color:var(--color-primary)!important}.bg-white{background-color:var(--color-white)!important}.bg-light{background-color:var(--color-bg-muted)!important}.bg-transparent{background-color:transparent!important}

.border{border:1px solid var(--color-border)!important}.border-0{border:0!important}.border-top{border-top:1px solid var(--color-border)!important}.border-right{border-right:1px solid var(--color-border)!important}.border-bottom{border-bottom:1px solid var(--color-border)!important}.border-left{border-left:1px solid var(--color-border)!important}

.rounded{border-radius:var(--radius-md)!important}.rounded-sm{border-radius:var(--radius-sm)!important}.rounded-lg{border-radius:var(--radius-lg)!important}.rounded-xl{border-radius:var(--radius-xl)!important}.rounded-circle{border-radius:50%!important}.rounded-0{border-radius:0!important}

.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:sticky!important}

.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}
.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}
.mw-100{max-width:100%!important}.mh-100{max-height:100%!important}

.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}

.shadow-none{box-shadow:none!important}.shadow-sm{box-shadow:0 0.125rem 0.25rem rgba(42,41,39,0.05)!important}.shadow{box-shadow:0 0.375rem 0.75rem rgba(42,41,39,0.08)!important}.shadow-lg{box-shadow:0 0.75rem 2rem rgba(42,41,39,0.1)!important}

.visible{visibility:visible!important}.invisible{visibility:hidden!important}.invisible{display:none}.hidden{display:none!important}

