:root {
      --bg-main: #fffefc;
      --bg-soft-yellow: #fff7b8;
      --bg-card: #fffef8;
      --border-yellow: #ffe066;
      --accent-blue: #00376c;
      --accent-pink: #c96b8a;
      --text-main: #3a3a3a;
      --text-soft: #666;
      --text-nav: #5a5a5a;
      --text-footer: #3a4a3a;
      --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
      --shadow-strong: 0 18px 40px rgba(0, 0, 0, 0.10);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }

    body {
      font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
      background-color: var(--bg-main);
      color: var(--text-main);
      line-height: 1.7;
    }

    header {
      background-color: white;
      padding: 18px 60px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    }

.logo {
  margin-left: -25px;
  flex-shrink: 0;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 35px !important;
  max-height: 35px !important;
  width: auto !important;
  max-width: 320px;
  object-fit: contain;
  display: block;
}
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  position: relative;
}

nav ul li {
  position: relative;
}

nav ul li ul {
  list-style: none;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 18px;
  z-index: 999;
}

nav ul li:hover > ul {
  display: block;
}

.dropdown-inner {
  background-color: white;
  padding: 8px 0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.10);
  min-width: 190px;
  border: 1px solid var(--border-yellow);
}

nav ul li ul li a {
  display: block;
  padding: 9px 18px;
  color: var(--text-nav);
  font-weight: normal;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

nav ul li ul li a:hover {
  background-color: var(--bg-soft-yellow);
  color: var(--accent-blue);
}

nav a {
  text-decoration: none;
  color: var(--text-nav);
  font-weight: 600;
  font-size: 0.97rem;
  transition: color 0.25s ease;
}

nav > ul > li > a {
  position: relative;
}

nav a:hover,
nav a.active {
  color: var(--accent-blue);
}

nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  background-color: var(--border-yellow);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

nav > ul > li > a:hover::after,
nav > ul > li > a.active::after {
  transform: scaleX(1);
}
.hero {
  min-height: 520px;
  background:
    linear-gradient(rgba(0, 20, 35, 0.18), rgba(0, 20, 35, 0.18)),
    url("images/trauergruppe-header.jpg") center 42% / cover no-repeat;
  position: relative;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 120px;
  background: var(--bg-main);
  clip-path: ellipse(78% 58% at 50% 100%);
}

.hero-content {
  max-width: 920px;
  margin: -35px auto 0 auto;
  padding: 0 20px 35px;
  text-align: center;
  position: relative;
  z-index: 5;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 24px;
  border-radius: 999px;
  border: 2px solid var(--border-yellow);
  background-color: var(--bg-main);
  color: var(--accent-blue);
  font-weight: bold;
  font-size: 0.92rem;
}

.hero-content h1 {
  font-size: 2.9rem;
  margin-bottom: 18px;
  color: var(--accent-blue);
  line-height: 1.15;
}

.hero-content p {
  font-size: 1.12rem;
  color: var(--text-soft);
  max-width: 760px;
  margin: 0 auto 30px auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 800px) {
  .hero {
    min-height: 390px;
    background-position: center;
  }

  .hero-wave {
    height: 75px;
  }

  .hero-content {
    margin-top: -10px;
  }

  .hero-content h1 {
    font-size: 2.15rem;
  }
}
    .hero p { font-size: 1.15rem; margin-bottom: 34px; color: var(--text-soft); max-width: 690px; margin-left: auto; margin-right: auto; }
    .hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

    .btn-primary, .btn-secondary, .resource-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 13px 28px;
      border-radius: 999px;
      font-weight: bold;
      font-size: 0.98rem;
      line-height: 1.2;
      text-align: center;
      text-decoration: none;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    }

    .resource-link {
      margin: 8px 12px 10px 0;
      vertical-align: middle;
      min-height: 48px;
    }

    .resource-link:last-child {
      margin-right: 0;
    }

    .hero-buttons,
    .quick-links {
      row-gap: 14px;
    }

    .resource-card .resource-meta {
      margin-bottom: 20px;
    }

    .btn-primary, .resource-link { background-color: var(--accent-blue); color: white; box-shadow: 0 4px 16px rgba(0,55,108,0.25); }
    .btn-primary:hover, .resource-link:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,55,108,0.35); }
    .btn-secondary { background-color: transparent; color: var(--accent-blue); border: 2px solid var(--accent-blue); }
    .btn-secondary:hover { background-color: var(--accent-blue); color: white; }

    .quick-links {
      max-width: 1100px;
      margin: 48px auto 10px auto;
      padding: 0 20px;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 14px;
    }

    .quick-links a {
      text-decoration: none;
      background-color: white;
      border: 2px solid var(--border-yellow);
      color: var(--text-main);
      padding: 11px 22px;
      border-radius: 999px;
      box-shadow: var(--shadow-soft);
      font-weight: 600;
      font-size: 0.95rem;
      transition: 0.2s ease;
    }

    .quick-links a:hover { color: var(--accent-blue); border-color: var(--accent-blue); transform: translateY(-2px); }

    .section-intro { max-width: 860px; margin: 70px auto 40px auto; padding: 0 20px; text-align: center; }
    .section-intro h2, .resource-heading h2 { font-size: 2rem; margin-bottom: 16px; color: var(--accent-blue); }
    .section-intro p, .resource-heading p { font-size: 1.08rem; color: var(--text-soft); }

    .search-section, .resource-section, .notice-section { max-width: 1240px; margin-left: auto; margin-right: auto; padding: 0 20px; }
    .search-section { margin-bottom: 50px; }
    .resource-section { margin-bottom: 80px; }
    .resource-section.section-hidden { display: none; }
    .notice-section { max-width: 1100px; margin-top: 20px; margin-bottom: 80px; }

    .search-box {
      background: linear-gradient(135deg, #edf5ff 0%, #fffdf2 55%, #fff6be 100%);
      border: 2px solid var(--border-yellow);
      border-radius: 24px;
      box-shadow: var(--shadow-soft);
      padding: 28px;
    }

    .search-box label { display: block; color: var(--accent-blue); font-weight: bold; margin-bottom: 10px; font-size: 1.05rem; }
    .search-row { display: block; }
    .search-row input { width: 100%; border: 2px solid var(--border-yellow); border-radius: 999px; padding: 14px 20px; font-size: 1rem; color: var(--text-main); outline: none; background-color: white; }
    .search-row input:focus { border-color: var(--accent-blue); }

    .resource-heading { margin-bottom: 24px; }
    .resource-heading p { max-width: 820px; }

    .carousel-shell {
      position: relative;
      display: block;
      padding: 0 58px;
    }

    .carousel-shell.carousel-no-controls {
      padding-left: 0;
      padding-right: 0;
    }

    .resource-grid {
      display: flex;
      gap: 24px;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-behavior: smooth;
      scroll-snap-type: x mandatory;
      padding: 6px 4px 18px 4px;
      scrollbar-width: thin;
      scrollbar-color: var(--accent-blue) rgba(0,55,108,0.08);
    }

    .resource-grid::-webkit-scrollbar { height: 10px; }
    .resource-grid::-webkit-scrollbar-track { background: rgba(0,55,108,0.08); border-radius: 999px; }
    .resource-grid::-webkit-scrollbar-thumb { background: var(--accent-blue); border-radius: 999px; }

    .carousel-btn {
      position: absolute;
      top: 50%;
      z-index: 5;
      width: 46px;
      height: 46px;
      border-radius: 50%;
      border: 2px solid var(--border-yellow);
      background: #ffffff;
      color: var(--accent-blue);
      font-size: 1.7rem;
      line-height: 1;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 8px 22px rgba(0, 55, 108, 0.12);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 0 3px 0;
      transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    }

    .carousel-btn-prev {
      left: 0;
      transform: translateY(-50%);
    }

    .carousel-btn-next {
      right: 0;
      transform: translateY(-50%);
    }

    .carousel-btn:hover:not(:disabled) {
      background: var(--accent-blue);
      color: white;
      box-shadow: 0 12px 26px rgba(0, 55, 108, 0.22);
    }

    .carousel-btn-prev:hover:not(:disabled) {
      transform: translateY(-50%) translateX(-2px);
    }

    .carousel-btn-next:hover:not(:disabled) {
      transform: translateY(-50%) translateX(2px);
    }

    .carousel-btn:disabled {
      opacity: 0.38;
      cursor: default;
      box-shadow: none;
    }

    .carousel-shell.carousel-no-controls .carousel-btn {
      display: none;
    }

    .resource-card {
      background: linear-gradient(135deg, #edf5ff 0%, #fffdf4 58%, #fff3b8 100%);
      border: 2px solid var(--border-yellow);
      border-radius: 22px;
      padding: 26px 24px;
      box-shadow: var(--shadow-soft);
      position: relative;
      overflow: hidden;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
      flex: 0 0 calc((100% - 48px) / 3);
      min-width: 280px;
      scroll-snap-align: start;
    }

    .resource-card::before {
      content: '';
      position: absolute;
      top: 16px;
      right: 16px;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: rgba(255, 224, 102, 0.7);
      box-shadow: 0 0 0 8px rgba(255, 224, 102, 0.12);
    }

    .resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); border-color: #ffd43b; }
    .resource-card.hidden { display: none; }

    .tag { display: inline-block; margin-bottom: 13px; padding: 6px 12px; border-radius: 999px; background-color: white; border: 1.5px solid var(--border-yellow); color: var(--accent-blue); font-weight: bold; font-size: 0.82rem; }
    .resource-card h3 { color: var(--accent-blue); font-size: 1.18rem; margin-bottom: 10px; padding-right: 20px; }
    .resource-card p { color: var(--text-soft); font-size: 0.98rem; margin-bottom: 18px; }

    .resource-thumbnail {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      border: 2px solid var(--border-yellow);
      border-radius: 18px;
      overflow: hidden;
      background: white;
      margin: 4px 0 18px 0;
      box-shadow: 0 5px 14px rgba(0,0,0,0.06);
    }

    .resource-thumbnail img.preview {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transform: scale(1.01);
      transition: transform 0.25s ease, filter 0.25s ease;
    }

    .resource-card:hover .resource-thumbnail img.preview {
      transform: scale(1.045);
      filter: brightness(0.94);
    }

    .book-cover-image img.preview {
      object-fit: contain;
      object-position: center;
      background-color: #fff;
    }

    .resource-thumbnail::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(0,55,108,0.02) 0%, rgba(0,55,108,0.35) 100%);
      pointer-events: none;
    }

    .thumbnail-logo {
      position: absolute;
      left: 12px;
      bottom: 12px;
      width: 46px;
      height: 46px;
      border-radius: 14px;
      background-color: white;
      border: 2px solid var(--border-yellow);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 6px 16px rgba(0,0,0,0.14);
      z-index: 2;
    }

    .thumbnail-logo img {
      width: 28px;
      height: 28px;
      object-fit: contain;
      display: block;
    }

    .thumbnail-label {
      position: absolute;
      right: 12px;
      bottom: 13px;
      z-index: 2;
      background: rgba(255,255,255,0.93);
      color: var(--accent-blue);
      border: 1.5px solid var(--border-yellow);
      border-radius: 999px;
      padding: 6px 12px;
      font-size: 0.8rem;
      font-weight: bold;
      box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    }


    .resource-meta { background-color: rgba(255,255,255,0.82); border: 1.5px solid var(--border-yellow); border-radius: 16px; padding: 12px 14px; color: var(--text-soft); font-size: 0.92rem; margin-bottom: 18px; }
    .resource-meta strong, .phone-card strong { color: var(--accent-blue); }

    .video-wrapper {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      border: 2px solid var(--border-yellow);
      border-radius: 16px;
      overflow: hidden;
      background: white;
      margin-bottom: 18px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.04);
      cursor: pointer;
    }

    .video-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .video-wrapper iframe {
      width: 100%;
      height: 100%;
      border: 0;
      display: block;
    }

    .video-overlay {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.25);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s ease;
    }

    .video-wrapper:hover .video-overlay {
      background: rgba(0, 0, 0, 0.38);
    }

    .play-button {
      background: rgba(0, 55, 108, 0.92);
      color: white;
      padding: 13px 22px;
      border-radius: 999px;
      font-weight: bold;
      font-size: 0.98rem;
      box-shadow: 0 6px 20px rgba(0,0,0,0.25);
      border: 2px solid var(--border-yellow);
    }

    .media-note { display: block; color: var(--text-soft); font-size: 0.88rem; margin-top: -8px; margin-bottom: 16px; }

    .resource-card .resource-link + .resource-link {
      margin-left: 0;
    }


    .notice-box { background: linear-gradient(135deg, #e8f0f8 0%, #fff9df 55%, #fff7b8 100%); border: 2px solid var(--border-yellow); border-radius: 28px; padding: 40px 34px; box-shadow: var(--shadow-soft); display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: center; }
    .notice-box h2 { color: var(--accent-blue); font-size: 1.9rem; margin-bottom: 12px; }
    .notice-box p { color: var(--text-soft); margin-bottom: 12px; }
    .phone-card { background-color: white; border: 2px solid var(--border-yellow); border-radius: 20px; padding: 24px; box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
    .phone-card strong { display: block; font-size: 1.1rem; margin-bottom: 8px; }
    .phone-card a { color: var(--accent-blue); font-weight: bold; text-decoration: none; font-size: 1.15rem; display: block; margin-bottom: 6px; }

    .no-results { display: none; text-align: center; color: var(--text-soft); background-color: white; border: 2px solid var(--border-yellow); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-soft); margin-top: 20px; }

    footer { background-color: var(--bg-soft-yellow); color: var(--text-footer); padding: 55px 20px 32px 20px; margin-top: 40px; }
    .footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
    .footer-column h3 { color: var(--accent-blue); margin-bottom: 14px; font-size: 1.05rem; }
    .footer-column p, .footer-column li, .footer-column a { color: var(--text-footer); font-size: 0.97rem; line-height: 1.75; text-decoration: none; }
    .footer-column ul { list-style: none; }
    .footer-column a:hover { text-decoration: underline; color: var(--accent-blue); }
    .footer-bottom { max-width: 1200px; margin: 30px auto 0 auto; padding-top: 20px; border-top: 1px solid rgba(0,55,108,0.15); text-align: center; font-size: 0.93rem; color: var(--text-footer); }

    @media (max-width: 1000px) { .resource-card { flex-basis: calc((100% - 24px) / 2); } .notice-box { grid-template-columns: 1fr; } }
    @media (max-width: 800px) { header { flex-direction: column; gap: 16px; padding: 16px 24px; } nav ul { justify-content: center; flex-wrap: wrap; gap: 18px; } .logo img { height: 45px !important; max-height: 45px !important; } .hero h1 { font-size: 2.1rem; } .hero-content { padding: 40px 24px; } .carousel-shell { padding-left: 0; padding-right: 0; } .carousel-btn { display: none; } }
    @media (max-width: 650px) {
      .resource-card { flex-basis: 86%; min-width: 260px; }
      .notice-box { padding: 30px 22px; }
      .resource-link {
        width: 100%;
        margin-right: 0;
      }
      .hero-buttons a {
        width: 100%;
      }
    }
    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn-primary, .btn-secondary, .quick-links a, .resource-card, .resource-link, .carousel-btn { transition: none !important; } .resource-grid { scroll-behavior: auto; } }

/* Einheitliche Textgrößen – Abschlusskorrektur */
body { font-family: 'Segoe UI', Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.7; }
.hero-content h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
.hero-content p, .section-intro p, .resource-heading p, .notice-box p { font-size: 1.05rem; line-height: 1.75; }
.section-intro h2, .resource-heading h2, .notice-box h2 { font-size: clamp(1.75rem, 2.6vw, 2.05rem); line-height: 1.25; }
.resource-card h3 { font-size: 1.22rem; line-height: 1.3; }
.resource-card p { font-size: 1rem; line-height: 1.65; }
.resource-meta { font-size: 0.95rem; line-height: 1.6; }
button, .btn-primary, .btn-secondary, .resource-link, input { font-size: 1rem; }
.footer-column p, .footer-column li, .footer-column a { font-size: 0.97rem; line-height: 1.75; }



.footer-phone {
  color: var(--text-footer);
  cursor: default;
  text-decoration: none;
}
