/* =========================================================
   IVÖ – Design-Refresh 2026 (refresh.css)

   Moderner Anstrich über style.css:
   - Markenfarbe #7B3738 (Weinrot) bleibt, wird aber konsequenter eingesetzt
   - Montserrat bleibt, Typografie wird ruhiger und besser lesbar
   - weichere Karten, mehr Tiefe, sanfte Bewegung
   Wird NACH css/style.css eingebunden.
========================================================= */

:root {
  --iv-primary: #7B3738;
  --iv-primary-dark: #5e2a2b;
  --iv-primary-light: #9c4a4c;
  --iv-primary-2: rgba(123, 55, 56, .12);
  --iv-primary-3: rgba(123, 55, 56, .06);
  --iv-dark: #2a161a;
  --iv-dark-2: #3a2026;
  --iv-bg-soft: #faf7f7;
  --iv-bg-page: #f6f1ef;
  --iv-text: #2b2b2b;
  --iv-muted: #6b6b6b;
  --iv-border: rgba(0, 0, 0, .08);
  --iv-radius: 14px;
  --iv-radius-lg: 18px;
  --iv-shadow-sm: 0 2px 10px rgba(40, 20, 20, .06);
  --iv-shadow: 0 10px 35px rgba(40, 20, 20, .10);
  --iv-shadow-lg: 0 18px 50px rgba(40, 20, 20, .14);
  --iv-focus: 0 0 0 3px rgba(123, 55, 56, .22);
}

/* ------------------------------------------------ Grundlagen */

/* Skip-Link: unsichtbar, bis er per Tastatur fokussiert wird */
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--iv-border);
  color: var(--iv-text);
  z-index: 9999;
}

.skip-link:focus {
  left: 10px;
  box-shadow: var(--iv-focus);
  outline: none;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  color: var(--iv-text);
  text-rendering: optimizeLegibility;
  /* getönter Seitenhintergrund lässt die weißen Inhaltskarten schweben */
  background-color: var(--iv-bg-page);
}

::selection {
  background: var(--iv-primary);
  color: #fff;
}

::-moz-selection {
  background: var(--iv-primary);
  color: #fff;
}

a {
  color: var(--iv-primary);
  transition: color .15s ease;
}

a:hover {
  color: var(--iv-primary-dark);
  text-decoration: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--iv-focus);
  border-radius: 6px;
}

/* ------------------------------------------------ Typografie */

h1, .h1 {
  font-size: clamp(34px, 4.5vw, 46px);
  font-weight: 700;
  letter-spacing: -.02em;
}

h2, .h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -.015em;
}

h3, .h3 { font-size: clamp(24px, 3vw, 30px); }

p, .paragraph {
  color: #3c3c3c;
  line-height: 1.75;
}

.section-title {
  position: relative;
  padding-bottom: 14px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--iv-primary), var(--iv-primary-light));
}

.text-lg-left .section-title::after,
.text-left .section-title::after {
  left: 0;
  transform: none;
}

/* ------------------------------------------------ Navigation */

.navigation {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--iv-border);
  box-shadow: 0 4px 18px rgba(40, 20, 20, .05);
}

.navigation.nav-bg {
  background: rgba(255, 255, 255, .96);
}

.navigation .navbar {
  min-height: 88px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.navigation .navbar-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 4px 0;
  margin-right: 24px;
}

.navigation .navbar-brand img {
  display: block;
  width: 112px !important;
  max-width: 112px !important;
  height: auto;
  border-radius: 0;
}

.navbar-light .navbar-nav .nav-link {
  position: relative;
  font-weight: 500;
  color: #333;
}

.navbar-light .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--iv-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-light .navbar-nav .nav-link.active {
  color: var(--iv-primary);
}

/* "Mitgliederbereich" als auffälliger Login-Button in der Navigation */
.navbar-nav .nav-link[href$="mitgliederbereich.php"],
.navbar-nav .nav-link[href="../mitgliederbereich.php"] {
  background: linear-gradient(135deg, var(--iv-primary), var(--iv-primary-dark));
  color: #fff !important;
  border-radius: 999px;
  padding: 10px 24px !important;
  margin-left: 12px;
  box-shadow: var(--iv-shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}

.navbar-nav .nav-link[href$="mitgliederbereich.php"]:hover {
  transform: translateY(-1px);
  box-shadow: var(--iv-shadow);
}

.navbar-nav .nav-link[href$="mitgliederbereich.php"]::after {
  display: none;
}

@media (max-width: 991px) {
  .navbar-light .navbar-nav .nav-link::after { display: none; }
  .navbar-nav .nav-link[href$="mitgliederbereich.php"] {
    display: inline-block;
    margin: 8px auto;
  }
}

.nav-language {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 6px 10px;
  color: #9aa2af;
  background: #f1f3f6;
  border: 1px solid rgba(27, 35, 48, .08);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
}

.nav-language a,
.nav-language-current {
  padding: 2px;
  color: #697386;
}

.nav-language a:hover,
.nav-language-current {
  color: var(--iv-primary);
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-light .navbar-nav .nav-link {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 12px;
  }

  .navbar-nav .nav-link[href$="mitgliederbereich.php"],
  .navbar-nav .nav-link[href="../mitgliederbereich.php"] {
    margin-left: 5px;
    padding: 9px 14px !important;
  }

  .nav-language {
    margin-left: 6px;
    padding-left: 7px;
    padding-right: 7px;
  }
}

@media (max-width: 991.98px) {
  .nav-language {
    justify-content: center;
    margin: 12px auto 4px;
  }
}

/* ------------------------------------------------ Buttons */

.btn {
  border-radius: 999px;
  text-transform: none;
  letter-spacing: .01em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--iv-shadow-sm) !important;
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--iv-primary), var(--iv-primary-dark));
  border-color: var(--iv-primary-dark);
}

.btn-primary:active, .btn-primary:hover, .btn-primary:focus,
.btn-primary.focus, .btn-primary.active {
  background: linear-gradient(135deg, var(--iv-primary-light), var(--iv-primary)) !important;
  border-color: var(--iv-primary) !important;
}

.btn-outline-primary:active, .btn-outline-primary:hover, .btn-outline-primary:focus,
.btn-outline-primary.focus, .btn-outline-primary.active {
  background: var(--iv-primary) !important;
  border-color: var(--iv-primary) !important;
  color: #fff;
}

.btn-light {
  background: #fff;
  border-color: var(--iv-border);
  color: var(--iv-primary);
}

.btn-light:hover {
  background: var(--iv-primary-3);
  color: var(--iv-primary-dark);
}

/* ------------------------------------------------ Formulare */

.form-control {
  border-radius: 10px;
  border-color: rgba(0, 0, 0, .14);
  padding: 12px 14px;
  height: auto;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus {
  border-color: var(--iv-primary);
  box-shadow: var(--iv-focus);
}

label {
  font-weight: 500;
  font-size: 14px;
  color: #444;
  margin-bottom: 6px;
}

/* ------------------------------------------------ Karten & Flächen */

.card {
  border: 1px solid var(--iv-border);
  border-radius: var(--iv-radius);
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--iv-shadow) !important;
}

.container.shadow {
  box-shadow: var(--iv-shadow) !important;
  border-radius: var(--iv-radius-lg) !important;
  border: 1px solid rgba(0, 0, 0, .04);
}

.rounded {
  border-radius: var(--iv-radius-lg) !important;
}

img.img-fluid {
  border-radius: 6px;
}

/* ------------------------------------------------ Seitennavigation (sidenav) */

.sidenav > li a,
.sidenav .parent ul a {
  border-radius: 10px;
  padding-left: 12px;
  padding-right: 12px;
  transition: background .15s ease, color .15s ease;
}

.sidenav > li a:hover,
.sidenav .parent ul a:hover {
  background: var(--iv-primary-3);
  color: var(--iv-primary);
}

/* Aktiver Menüpunkt als gefüllte Pille – klare Orientierung */
.sidenav .parent.active > a {
  background: linear-gradient(135deg, var(--iv-primary), var(--iv-primary-dark));
  color: #fff !important;
  box-shadow: var(--iv-shadow-sm);
}

.sidenav .parent.active > a::before {
  color: #fff;
}

.sidenav .parent ul li.active > a {
  color: var(--iv-primary);
  font-weight: 600;
}

/* ------------------------------------------------ Blätter-Navigation */

.pagination a.nav {
  border: 1px solid var(--iv-border);
  border-radius: 999px;
  padding: 10px 22px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.pagination a.nav:hover {
  background: var(--iv-primary);
  border-color: var(--iv-primary);
  color: #fff;
}

/* ------------------------------------------------ Footer (hell) */

footer {
  background: linear-gradient(180deg, #fbf8f7, #f3ebe8);
  border-top: 0;
  position: relative;
  margin-top: 60px;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--iv-primary), var(--iv-primary-light), var(--iv-primary));
}

footer .border-bottom {
  border-color: rgba(123, 55, 56, .10) !important;
}

.footer-menu a {
  border-radius: 8px;
  color: #4a4a4a;
  font-weight: 500;
}

.footer-menu a:hover {
  color: var(--iv-primary);
  background: var(--iv-primary-2);
}

footer small.text-light {
  color: #8a7d7a !important;
  letter-spacing: .02em;
}

footer .social-icons a {
  background: var(--iv-primary);
}

footer .social-icons a:hover {
  background: var(--iv-primary-dark);
}

/* ------------------------------------------------ Startseite / Hero (hell) */

.home-hero {
  background:
    radial-gradient(900px 460px at 88% -15%, var(--iv-primary-2), transparent 60%),
    linear-gradient(160deg, #fffdfc 0%, #f9f1ee 55%, #f4e7e3 100%);
  border-bottom: 1px solid rgba(123, 55, 56, .10);
  padding-top: 70px;
  padding-bottom: 70px !important;
  margin-bottom: 30px;
}

.home-hero h1 {
  line-height: 1.25;
  color: #262626;
  position: relative;
  padding-top: 18px;
}

/* kleiner Markenakzent über der Headline */
.home-hero h1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--iv-primary), var(--iv-primary-light));
}

@media (max-width: 991px) {
  .home-hero h1::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.home-hero .home-lead,
.home-hero p {
  color: #4a4a4a;
}

/* Illustration auf weißer Karte mit sanfter Tiefe */
.home-hero img.img-fluid {
  background: #fff;
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--iv-shadow);
}

.home-lead {
  font-size: 17px;
}

/* ------------------------------------------------ Login-Karte */

.login-section {
  background:
    radial-gradient(900px 420px at 110% -20%, var(--iv-primary-2), transparent 60%),
    radial-gradient(600px 380px at -20% 120%, var(--iv-primary-3), transparent 60%);
  min-height: 60vh;
}

.login-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .04);
  border-radius: var(--iv-radius-lg);
  box-shadow: var(--iv-shadow);
  padding: 2.5rem 2.25rem;
  margin-top: 1rem;
}

.login-card-head {
  margin-bottom: 1.75rem;
}

.login-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--iv-primary), var(--iv-primary-dark));
  color: #fff;
  font-size: 26px;
  box-shadow: var(--iv-shadow-sm);
}

.login-help {
  font-size: 14px;
  line-height: 1.7;
}

/* ------------------------------------------------ Mitgliederbereich-Extras */

.member-user {
  font-size: 14px;
}

/* Kachel-Icons in getönten Chips */
.menu-tile img.menu-icon {
  background: var(--iv-primary-3);
  border: 1px solid var(--iv-primary-2);
  border-radius: 14px;
  padding: 9px;
}

.menu-tile:hover img.menu-icon {
  background: var(--iv-primary-2);
}

.menu-tile-admin {
  border: 1px dashed var(--iv-primary) !important;
  background: var(--iv-primary-3);
}

.menu-icon-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--iv-primary);
  color: #fff;
  font-size: 22px;
  flex: 0 0 48px;
}

/* ------------------------------------------------ Alerts */

.alert {
  border: 0;
  border-left: 4px solid;
  border-radius: 10px;
  box-shadow: var(--iv-shadow-sm);
}

.alert-danger {
  border-left-color: #b02a37;
  background: #fdf0f1;
  color: #842029;
}

.alert-success {
  border-left-color: #2e7d32;
  background: #eef7ef;
  color: #1e5723;
}

.alert-info {
  border-left-color: var(--iv-primary);
  background: var(--iv-primary-3);
  color: var(--iv-primary-dark);
}

/* ------------------------------------------------ Tabellen */

.table thead th {
  border-bottom: 2px solid var(--iv-primary-2);
}

.table-hover tbody tr:hover,
.admin-table tbody tr:hover {
  background: var(--iv-primary-3);
}

/* ------------------------------------------------ Scrollbar (dezent) */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: #c9b6b6;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--iv-primary-light);
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* Kühles Grundsystem für öffentliche Seiten und alle internen Unterseiten. */
:root {
  --iv-dark: #151a24;
  --iv-dark-2: #252d3a;
  --iv-bg-soft: #f7f8fa;
  --iv-bg-page: #eef1f5;
  --iv-text: #1b2330;
  --iv-muted: #657083;
  --iv-border: rgba(27, 35, 48, .1);
}

body { background-color: var(--iv-bg-page); }

.container.shadow {
  border-color: rgba(27, 35, 48, .08);
  box-shadow: 0 16px 44px rgba(22, 28, 38, .08) !important;
}

footer { background: #151a24; }
footer::before { height: 2px; }
footer .border-bottom { border-color: rgba(255, 255, 255, .1) !important; }
footer .footer-menu a { color: #d1d7df; }
footer small.text-light { color: #aeb7c5 !important; }

.home-hero {
  background:
    radial-gradient(900px 460px at 88% -15%, rgba(123, 55, 56, .11), transparent 60%),
    linear-gradient(160deg, #f9fafc 0%, #eef1f5 60%, #e7ebf0 100%);
  border-bottom-color: rgba(27, 35, 48, .08);
}

/* Responsive Stabilität: lange deutsche Begriffe, URLs und schmale Spalten. */
.row > [class*="col-"] {
  min-width: 0;
}

.sidenav {
  width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}

.sidenav > li,
.sidenav .sidelist,
.sidenav > li a,
.sidenav .parent ul a {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.sidenav .parent > a {
  width: calc(100% - 10px);
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  line-height: 1.35;
}

.content,
.legal,
.member-card,
.admin-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

.content a,
.legal a,
.member-card a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

footer .navbar-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  margin: 0;
  background: #f8f9fb;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

footer .navbar-brand img {
  display: block;
  border-radius: 0;
}

@media (max-width: 991.98px) {
  .section { padding-top: 56px; padding-bottom: 56px; }
  .section-sm { padding-top: 34px; padding-bottom: 34px; }

  .sidenav {
    margin-bottom: 30px;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--iv-border);
  }

  .sidenav > li a {
    padding-top: 13px;
    padding-bottom: 13px;
    font-size: 16px;
  }
}

@media (max-width: 767.98px) {
  h1, .h1 { font-size: clamp(30px, 9vw, 38px); }
  h2, .h2 { font-size: clamp(25px, 7vw, 32px); }

  .container.shadow.section-sm.rounded {
    border-radius: 10px !important;
  }

  .content table,
  .legal table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  footer .row.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

@media (max-width: 575.98px) {
  .container.shadow.section-sm.rounded {
    width: calc(100% - 24px);
    padding-left: 12px;
    padding-right: 12px;
  }

  .container.shadow.section-sm.rounded .px-4,
  .container.shadow.section-sm.rounded .px-3 {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .sidenav .parent > a {
    width: calc(100% - 6px);
    margin-left: 6px;
  }

  .sidenav .parent > a::before {
    left: -6px;
  }

  .pagination a.nav {
    max-width: 100%;
    padding: 9px 16px;
  }
}

/* ------------------------------------------------ Öffentliche Unterseiten */
section.pt-5:has(> .container.shadow.section-sm.rounded) {
  padding-top: 64px !important;
  padding-bottom: 80px;
  background:
    radial-gradient(700px 360px at 100% 0%, rgba(123, 55, 56, .075), transparent 65%),
    var(--iv-bg-page);
}

section.pt-5 > .container.shadow.section-sm.rounded {
  position: relative;
  overflow: hidden;
  padding: 42px;
  background: #fff;
  border: 1px solid rgba(27, 35, 48, .08);
  border-radius: 14px !important;
  box-shadow: 0 18px 50px rgba(22, 28, 38, .09) !important;
}

section.pt-5 > .container.shadow.section-sm.rounded::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--iv-primary), #a65356 48%, #263040 48%);
}

section.pt-5 .sidenav {
  padding: 14px;
  background: #f5f7f9;
  border: 1px solid rgba(27, 35, 48, .075);
  border-radius: 11px;
}

section.pt-5 .sidenav > li:not(:last-child) {
  border-bottom-color: rgba(27, 35, 48, .08);
}

section.pt-5 .sidenav > li a {
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 15px;
  line-height: 1.4;
}

section.pt-5 .sidenav .parent.active > a {
  background: linear-gradient(135deg, var(--iv-primary), var(--iv-primary-dark));
  box-shadow: 0 8px 20px rgba(83, 35, 38, .18);
}

section.pt-5 .content > h1:first-child,
section.pt-5 .content > h2:first-child,
section.pt-5 .row > [class*="col-lg-"]:last-child > div > h2:first-child {
  position: relative;
  margin-bottom: 28px !important;
  padding-bottom: 17px;
  color: #1b2330;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700 !important;
  letter-spacing: -.025em;
}

section.pt-5 .row > [class*="col-lg-"]:last-child > div > h2:first-child::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--iv-primary);
}

section.pt-5 .content {
  color: #354052;
  font-size: 15px;
  line-height: 1.78;
}

section.pt-5 .row > .col-lg-3 + [class*="col-lg-"] {
  flex-grow: 1;
  max-width: none;
}

section.pt-5 .content > p,
section.pt-5 .legal > p {
  max-width: 78ch;
}

section.pt-5 .content > p:first-child:not(:last-child) {
  color: #5c687a;
  font-size: 16px;
  line-height: 1.8;
}

section.pt-5 .content h3 {
  margin-top: 36px;
  margin-bottom: 14px;
  font-size: clamp(20px, 2.2vw, 26px);
}

section.pt-5 .content h4 {
  margin-top: 26px;
  margin-bottom: 10px;
  font-size: 18px;
}

section.pt-5 .content ul:not(.list-inline),
section.pt-5 .content ol {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

section.pt-5 .content li {
  margin-bottom: .45rem;
}

section.pt-5 .content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  background: #f6f8fa;
  border-left: 4px solid var(--iv-primary);
  border-radius: 0 10px 10px 0;
}

section.pt-5 .content > img,
section.pt-5 .content figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(27, 35, 48, .08);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(22, 28, 38, .07);
}

section.pt-5 .content table {
  margin: 24px 0;
  background: #fff;
  border: 1px solid rgba(27, 35, 48, .1);
  border-radius: 10px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

section.pt-5 .content table th,
section.pt-5 .content table td {
  padding: 12px 14px;
  vertical-align: top;
  border-color: rgba(27, 35, 48, .08);
}

/* Einheitlicher Themen-Badge öffentlicher Unterseiten */
.badge-soft {
  display: inline-block;
  padding: 6px 10px;
  color: var(--iv-primary);
  background: rgba(123, 55, 56, .1);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Vorstand */
.board-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: -4px 0 30px;
  padding: 18px 22px;
  background: #f5f7f9;
  border: 1px solid rgba(27, 35, 48, .08);
  border-radius: 11px;
}

.board-intro p { margin: 0; }

.board-eyebrow {
  flex: 0 0 auto;
  color: var(--iv-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.team-list {
  margin-left: -10px;
  margin-right: -10px;
}

.team-list > .col-12 {
  flex: 0 0 50%;
  max-width: 50%;
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 20px;
}

.team-list > .col-12:first-child {
  flex-basis: 100%;
  max-width: 100%;
}

.team-card {
  height: 100%;
  overflow: hidden;
  background: #fff;
}

.team-card .row {
  height: 100%;
  margin: 0;
}

.team-card .row > [class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0;
}

.team-card .team-photo {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: 50% 16%;
  border-radius: 0;
  filter: saturate(.9) contrast(1.02);
  transition: transform .35s ease, filter .35s ease;
}

.team-card:hover .team-photo {
  transform: scale(1.025);
  filter: saturate(1) contrast(1.02);
}

.team-card .card-body {
  min-height: 180px;
  padding: 24px;
  justify-content: flex-start !important;
}

.team-role {
  align-self: flex-start;
  display: inline-flex;
  margin-bottom: 13px;
  padding: 6px 10px;
  color: var(--iv-primary);
  background: rgba(123, 55, 56, .09);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.team-name {
  margin: 0 0 9px !important;
  color: #1b2330;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
}

.team-desc {
  margin: 0;
  color: #657083 !important;
  font-size: 13px;
  line-height: 1.65;
}

.team-list > .col-12:first-child .team-card .row > .col-md-5 {
  flex: 0 0 43%;
  max-width: 43%;
}

.team-list > .col-12:first-child .team-card .row > .col-md-7 {
  flex: 0 0 57%;
  max-width: 57%;
}

.team-list > .col-12:first-child .team-photo {
  height: 100%;
  min-height: 360px;
}

.team-list > .col-12:first-child .card-body {
  min-height: 360px;
  padding: 38px;
  justify-content: center !important;
}

.team-list > .col-12:first-child .team-name {
  font-size: 30px;
}

section.pt-5 .content p,
section.pt-5 .legal p,
section.pt-5 .content li {
  color: #455064;
}

section.pt-5 .content h3,
section.pt-5 .content h4 {
  color: #1b2330;
  line-height: 1.35;
}

section.pt-5 .content .card,
section.pt-5 .info-card,
section.pt-5 .team-card {
  border: 1px solid rgba(27, 35, 48, .085) !important;
  border-radius: 11px !important;
  box-shadow: 0 7px 24px rgba(22, 28, 38, .055) !important;
}

section.pt-5 .content .card:hover,
section.pt-5 .info-card:hover,
section.pt-5 .team-card:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 55, 56, .2) !important;
  box-shadow: 0 14px 34px rgba(22, 28, 38, .09) !important;
}

section.pt-5 .form-control {
  background: #fbfcfd;
  border-color: rgba(27, 35, 48, .14);
  border-radius: 8px;
}

section.pt-5 .form-control:focus {
  background: #fff;
}

section.pt-5 .content hr {
  border-color: rgba(27, 35, 48, .09);
}

.member-map-highlight {
  border-color: rgba(123, 55, 56, .55) !important;
  box-shadow: 0 0 0 4px rgba(123, 55, 56, .12), 0 14px 34px rgba(22, 28, 38, .1) !important;
}

/* Kontakt / Infoanfrage */
.contact-page .info-grid {
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.45fr);
  align-items: start;
  gap: 20px;
}

.contact-intro-card {
  position: sticky;
  top: 118px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #1b2330, #303a4a 68%, #6a3033);
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(22,28,38,.16);
}
.contact-intro-card .card-body { padding: 28px; }
.contact-intro-card .badge-soft { color: #f0c9ca; background: rgba(255,255,255,.1); }
.contact-intro-card h3 { margin: 24px 0 12px !important; color: #fff !important; font-size: 25px !important; }
.contact-intro-card p { color: #cbd2dc !important; font-size: 14px; line-height: 1.7; }
.contact-trust-list { display: grid; gap: 17px; margin-top: 28px; }
.contact-trust-list span { display: grid; grid-template-columns: 34px 1fr; column-gap: 11px; }
.contact-trust-list i { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; color: #f0c9ca; background: rgba(255,255,255,.08); border-radius: 8px; }
.contact-trust-list b { color: #fff; font-size: 13px; }
.contact-trust-list small { color: #aeb8c6; font-size: 11px; line-height: 1.45; }
.contact-page .form-card { box-shadow: none !important; }
.contact-page .form-card .card-body { padding: 28px; }
.contact-form-head { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(27,35,48,.08); }
.contact-form-head h3 { margin: 5px 0 5px !important; font-size: 24px !important; }
.contact-form-head p { margin: 0; color: #748094 !important; font-size: 13px; }
.contact-page textarea.form-control { min-height: 150px; resize: vertical; }
.contact-page .check-row label { overflow-wrap: anywhere; }
.contact-page .alert-card { grid-column: 1 / -1; }

@media (max-width: 991.98px) {
  .contact-page .info-grid { grid-template-columns: 1fr; }
  .contact-intro-card { position: static; }
}

@media (min-width: 992px) {
  section.pt-5 .sidenav {
    position: sticky;
    top: 118px;
  }
}

@media (max-width: 991.98px) {
  section.pt-5:has(> .container.shadow.section-sm.rounded) {
    padding-top: 36px !important;
    padding-bottom: 50px;
  }

  section.pt-5 > .container.shadow.section-sm.rounded {
    padding: 28px;
  }

  section.pt-5 .sidenav {
    position: static;
    padding: 10px;
    border-bottom: 1px solid rgba(27, 35, 48, .075);
  }

  .navigation .navbar { min-height: 78px; }
  .navigation .navbar-brand img { width: 104px !important; max-width: 104px !important; }

  .team-list > .col-12:first-child .team-card .row > .col-md-5,
  .team-list > .col-12:first-child .team-card .row > .col-md-7 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .team-list > .col-12:first-child .team-photo { height: 320px; min-height: 0; }
  .team-list > .col-12:first-child .card-body { min-height: 0; padding: 28px; justify-content: flex-start !important; }
}

@media (max-width: 575.98px) {
  section.pt-5 > .container.shadow.section-sm.rounded {
    width: calc(100% - 24px);
    padding: 22px 16px;
  }

  section.pt-5 .row > [class*="col-lg-"]:last-child > div > h2:first-child {
    margin-top: 8px;
    font-size: 28px;
  }

  .navigation .navbar-brand img { width: 96px !important; max-width: 96px !important; }

  .board-intro {
    display: block;
    padding: 16px;
  }

  .board-eyebrow { display: block; margin-bottom: 8px; }

  .team-list > .col-12 {
    flex-basis: 100%;
    max-width: 100%;
  }

  .team-card .team-photo,
  .team-list > .col-12:first-child .team-photo {
    height: 300px;
  }

  .team-card .card-body,
  .team-list > .col-12:first-child .card-body {
    min-height: 0;
    padding: 22px;
  }

  .team-list > .col-12:first-child .team-name { font-size: 23px; }
}
