  /* Basis-Reset */
* {
  box-sizing: border-box;
}



  .highlight-phone {
      color: #d63384; /* Bootstrap pink, anpassbar */
      font-weight: bold;
      font-size: 1.25rem;
    }
    .custom-box {
      max-width: 1250px;
      padding: 2rem;
      border-radius: 1rem;
      box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
      background-color: #fff;
    }
.fixed-img {
  height: 200px; /* oder beliebiger fixer Wert */
  object-fit: cover;
  width: 100%;
}

    .swiper {
      width: 100%;
      padding: 40px 0;
    }

    .swiper-slide {
      display: flex;
      justify-content: center;
    }

    .card {
      width: 95%;
      max-width: 500px;
    }

  .thumbnail-container {
  overflow-x: hidden;
  position: relative;
}
    .thumbnail-scroll {
      display: flex;
      gap: 0.5rem;
      transition: transform 0.3s ease;
    }

.card-img-top {           /* meine Einstellung für die Darstellung der Bilder auf der Seite Gedenken in den Cards */
  height: 300px;          /* größere Höhe erlaubt mehr Bildanteil */
  object-fit: cover;    /* zeigt das ganze Bild, mit evtl. Balken */
}

.myCardLink {
  text-decoration: none;  /* entfernt Unterstreichung */
  color: inherit;         /* übernimmt Textfarbe des Elternteils */
}

#thumbnailWrapper {
  display: flex;
  gap: 1rem;
  transition: transform 0.3s ease;
  overflow: hidden;
}

    .thumbnail-img {
      display: block;
      max-width: 180px;
      height: auto;
      object-fit: contain;
      cursor: pointer;
      flex-shrink: 0;
      border-radius: 0.25rem;
    }

    .thumbnail-img2 {
      width: 180px;
      height: auto;
      object-fit: contain;
      cursor: pointer;
      flex-shrink: 0;
      border-radius: 0.25rem;
    }


    .scroll-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;
      background-color: rgba(0,0,0,0.5);
      color: white;
      border: none;
      padding: 0.5rem 1rem;
      font-size: 1.5rem;
      cursor: pointer;
      border-radius: 50%;
    }

    .scroll-btn.left { left: 0; }
    .scroll-btn.right { right: 0; }

    .modal-img {
      width: 100%;
      max-height: 90vh;
      object-fit: contain;
    }

    .lightbox-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 2rem;
      color: white;
      background-color: rgba(0, 0, 0, 0.4);
      border: none;
      padding: 0.5rem 1rem;
      cursor: pointer;
      z-index: 1000;
    }

    .lightbox-nav.left { left: 0; }
    .lightbox-nav.right { right: 0; }


/* ================================
       Infobox & Overlay Styling
    ================================== */
     .overlay-backdrop {
      display: none;
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0, 0, 0, 0.4);
      z-index: 999;
    }

    .infobox-overlay {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 320px;
      max-height: 300px;
      background-color: #fff;
      border-radius: 8px;
      border: 1px solid #ccc;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
      z-index: 1000;
      display: none; /* versteckt initial */
      flex-direction: column;
      overflow: hidden;
      display: flex; /* wird durch JS sichtbar gemacht, hier nicht nötig—entfernt unten */
    }

    .infobox-header {
      padding: 12px;
      font-weight: bold;
      background: #f5f5f5;
      border-bottom: 1px solid #ddd;
    }

    .infobox-content {
      flex: 1;
      overflow-y: auto;
      padding: 10px;
    }

    .infobox-content ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .infobox-content li {
      padding: 6px 8px;
      cursor: pointer;
      border-radius: 4px;
    }

    .infobox-content li:hover {
      background-color: #efefef;
    }
    .infobox-content li:after {
      background-color: #0c0c7b;
    }

    .infobox-content li.selected {
      background-color: #9de4fe;
    }


    .infobox-footer {
      padding: 10px;
      border-top: 1px solid #ddd;
      background: #f5f5f5;
      text-align: right;
    }

    button {
      padding: 6px 12px;
      font-size: 14px;
      cursor: pointer;
    }

.radio-image-group {
    display: flex;
    gap: 1rem;
  }
  .radio-image {
    position: relative;
    cursor: pointer;
    outline: none;
  }

  /* Verstecke die echten Radios */
  .radio-image input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .radio-image img {
    display: block;
    width: 150px;
    height: auto;
    transition: outline 0.2s ease;
    border-radius: 8px;
    object-fit: cover;
  }

  .preserve {
  /*white-space: pre-wrap; /* bewahrt Zeilenumbrüche und bricht bei Bedarf um */
  white-space: pre-line;
}

.card-bodyCandle {
  /* kein Scrollen, alles was übersteht wird versteckt */
  overflow: hidden;

  /* für sauberen Zeilenumbruch, damit es rechts nicht rausläuft */
  word-break: break-word;
  white-space: normal;
}

/* optional: sanftes Ausblenden am unteren Rand (statt harten Schnitt) */
.card-bodyCandle {
  position: relative;
}

/* Fade-out am unteren Rand */
.card-bodyCandle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3em; /* wie stark der Fade sein soll */
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
}

/* ================================
       Candle_Kondolenz-Blog Uebersicht
    ================================== */

.kondolenz-block {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 2rem;
  background: #f9f9f9;
  border-left: 4px solid #444;
  font-family: "Georgia", serif;
  color: #333;
}

.kondolenz-block h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.kondolenz-block .hinweis {
  font-style: italic;
  color: #555;
  margin-bottom: 1.5rem;
}

.kondolenz-form label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

.kondolenz-form input,
.kondolenz-form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.kondolenz-form button {
  margin-top: 1rem;
  padding: 0.7rem 1.2rem;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.kondolenz-form button:hover {
  background: #222;
}

.kondolenz-eintraege {
  margin-top: 2rem;
  border-top: 1px solid #ccc;
  padding-top: 1rem;
}

.kondolenz-eintraege .eintrag {
  margin-bottom: 1.2rem;
  padding-left: 1rem;
  border-left: 3px solid #999;
}

.kondolenz-eintraege .text {
  margin: 0;
  font-style: italic;
}

.kondolenz-eintraege .autor {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: #555;
}

.navbar {
    font-size: .95rem;
  }
  .navbar .btn-primary {
    font-weight: 600;
    border-radius: .5rem;
    padding: .5rem 1rem;
  }


  :root {
  --bg: #f9f9f9;
  --card-bg: #ffffff;
  --text: #2c2c2c;
  --muted: #6e6e6e;
  --border: #e3e3e3;
  --accent: #555555;
  --radius: 12px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: "Helvetica Neue", Arial, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.45;
  margin: 0;
  padding: 2rem;
  -webkit-font-smoothing: antialiased;
}
body {
      background-image: url('/static/bilder/Hintergrund2_pixabay.jpg'); /* Pfad zum Bild ersetzen */
      background-size: cover;           /* Bild skaliert, so dass es die Fläche füllt */
      background-position: center;      /* zentriert */
      background-repeat: no-repeat;
      background-attachment: fixed;     /* fixiert beim scrollen */
      /* optional: dunkel überlagern für besseren Kontrast */
      position: relative;
      z-index: 0;
    }




.memorial-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 2rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.memorial-header {
  text-align: center;
  margin-bottom: 1rem;
}

.name {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text);
}

.dates {
  font-size: 0.95rem;
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-style: italic;
}

.divider {
  width: 80px;
  height: 2px;
  background: var(--accent);
  margin: 1.5rem auto;
  border-radius: 1px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 1.5rem 0 0.75rem;
  letter-spacing: 0.7px;
  text-align: left;
  color: var(--text);
}

/* Zeitplan-Tabelle */
.fixedTerminIntern-table {
    table-layout: fixed;
    width: 100%;
}

.colTermineGPS-fixed{
    width: 150px;
    word-wrap: break-word;
    white-space: normal;
}

.gpsOrtLinks{
    text-decoration: none;
    color: var(--bs-card-color);
}


.schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.schedule thead th {
  text-align: left;
  padding: 12px 14px;
  background: #fafafa;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
}


.schedule tbody tr {
  border-bottom: 1px solid var(--border);
}

.schedule tbody tr:last-child {
  border-bottom: none;
}

.schedule td {
  padding: 12px 14px;
  vertical-align: top;
}

.schedule tbody tr:nth-child(odd) {
  background: #fcfcfc;
}

.note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

@media (max-width: 900px) {
  .memorial-card {
    padding: 1.5rem 1.75rem;
  }

  .name {
    font-size: 1.9rem;
  }

  .schedule thead {
    display: none;
  }

  .schedule, 
  .schedule tbody, 
  .schedule tr, 
  .schedule td {
    display: block;
    width: 100%;
  }

  .schedule tr {
    margin-bottom: 1rem;
    background: #fdfdfd;
    border-radius: 8px;
    padding: 0.5rem;
  }

  .schedule td {
    padding: 8px 12px;
    position: relative;
  }

  .schedule td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.75rem;
    color: var(--accent);
  }
}

 .image-box {
      flex: 0 1 120px; /* Basisbreite 200px, schrumpfbar, umbruchsicher */
      /* alternativ: width: 200px; */
    }

    .image-box img {
      display: block;
      width: 100%;
      height: auto;
      border-radius: 0.5rem;
      object-fit: cover;
      
    }

/* === DokumenteListe neutralisieren === */
#DokumenteListe li,
#DokumenteListe li:hover,
#DokumenteListe a,
#DokumenteListe a:hover {
  background: none !important;
  color: inherit !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline !important;
  border: none !important;
  text-decoration: underline !important;
  cursor: pointer;
}

/* komplette Liste */
.dok-liste {

    list-style: none;
    padding: 0;
    margin: 0;
}

/* einzelnes Listenelement */
.dok-item {
  display: list-item;
  list-style-type: disc;
  padding: 10px 14px;
  background-color: #fff;
  }

/* letzte Linie entfernen */
.dok-item:last-child {
    border-bottom: none;
}

/* horizontale Ausrichtung */
.dok-row {
    display: flex !important;           /* Bootstrap-Fix */
    
    gap: 12px;
}

/* Link */
.dok-link {
    flex: 1;
    text-decoration: none;
    color: #0d6efd;                      /* Bootstrap primary */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dok-link:hover {
    text-decoration: underline;
}

.dok-delete{
  cursor: pointer;
  color:  rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
}


/* === Bild mit class zoom-img anclickbar und groß in einer Box darstellen === */
.overlay {
    display: none; /* anfangs unsichtbar */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.overlay-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/*imoressum und datenschutz Seite*/


.impressum-card-body {
    line-height: 1.6;
}

.legal-card {
    background-color: #fff;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.legal-card-body {
    line-height: 1.65;
}