/* =========================
   RESET & BASIS
   ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.impressum {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  align:left;
}

/* =========================
   HEADER
   ========================= */

.header {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(10, 30, 80, 0.95);
  color: white;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
}

.logo img {
  height: 2.5rem;
}

/* =========================
   NAVIGATION
   ========================= */

.nav ul {
  list-style: none;
}

.nav ul li a {
  text-decoration: none;
  display: block;
}

/* DESKTOP */
@media (min-width: 769px) {

  .nav ul {
    display: flex;
    gap: 1.2rem;
  }

  .nav ul li a {
    color: #cce0ff;
  }

  .menu-toggle {
    display: none;
  }
}

/* MOBILE */
@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
  }

  .menu-toggle span {
    height: 0.2rem;
    width: 1.6rem;
    background: white;
    margin: 0.25rem 0;
  }

  .nav ul {
    position: absolute;
    top: 3.5rem;
    right: 0;
    width: 15rem;
    display: none;
    flex-direction: column;
    background: rgba(10, 30, 80, 0.98);
  }

  .nav ul.active {
    display: flex;
  }
}

/* =========================
   HERO
   ========================= */

.hero {
  margin-top: 3.5rem;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)),
              url("../assets/IMG_0971_bg1.png");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 7rem 1.5rem;
}

.hero-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-logo {
  height: 6rem;
}

.hero-text h1 {
  font-size: 2.4rem;
}

/* =========================
   BUTTON
   ========================= */

.btn {
  display: inline-block;
  margin-top: 1.2rem; /* 👈 DAS ist der Fix */
  padding: 0.6rem 1.2rem;
  background: #3fa7d6;
  color: white;
  border-radius: 1rem;
  text-decoration: none;
}

/* =========================
   ABOUT
   ========================= */

.about {
  display: block;
  padding: 3rem 0;
}

/* Das direkte Text-Element enthält Einleitung und die drei Info-Buttons. */
.about > .about-text {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}

/* Einleitung und Foto stehen oben nebeneinander. */
.about-intro {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.about-intro-text { min-width: 0; }

/* Drei gleich breite Buttons in einer Reihe. */
.about-details {
  min-width: 0;
  margin-top: 1rem;
}

.about-details > summary.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 3.2rem;
  margin-top: 0;
  text-align: center;
  cursor: pointer;
  list-style: none;
}

.about-details > summary.btn::-webkit-details-marker {
  display: none;
}

/* Abschnitt 2: Drei Buttons bleiben in ihrer festen Rasterposition. */
#section2 .about-details,
#section2 .about-details[open] {
  grid-column: auto;
  min-width: 0;
  align-self: start;
}

/* Der ausklappende Text erstreckt sich über alle drei Spalten.
   Der Rasterabstand zwischen den Spalten beträgt jeweils 1rem. */
#section2 .about-details::details-content {
  width: calc(300% + 2rem);
}

/* Text von Button 2 und 3 unter die linke Rasterkante schieben. */
#section2 .about-details:nth-of-type(2)::details-content {
  margin-left: calc(-100% - 1rem);
}
#section2 .about-details:nth-of-type(3)::details-content {
  margin-left: calc(-200% - 2rem);
}

/* Klarer Aktiv-Zustand ohne 3D-Effekt. */
#section2 .about-details > summary.btn {
  background: #3fa7d6;
  color: white;
  border: 2px solid transparent;
  box-shadow: none;
  transform: none;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
#section2 .about-details[open] > summary.btn {
  background: #123b70;
  color: white;
  border-color: #0a1e50;
}

/* Pfeil im geschlossenen Zustand */
#section2 .about-details > summary.btn::after {
  content: "›";
  display: inline-block;
  margin-left: 0.8rem;
  font-size: 1.5rem;
  line-height: 1;
}

/* Pfeil im geöffneten Zustand */
#section2 .about-details[open] > summary.btn::after {
  content: "⌄";
  transform: none;
}

/* Sanftes Öffnen und Schließen im Bereich "Über uns" */
#section2 .about-details::details-content {
  height: 0;
  overflow: hidden;
  opacity: 0;

  transition:
      height 0.4s ease,
      opacity 0.3s ease;

  transition-behavior: allow-discrete;
}

#section2 .about-details[open]::details-content {
  height: auto;
  opacity: 1;
  interpolate-size: allow-keywords;
}

/* Barrierefreiheit: reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
  #section2 .about-details::details-content {
      transition: none;
  }
}

.about-details > .about-text {
  width: 100%;
  box-sizing: border-box;
}

/* Hellblaue Lesefläche für die drei aufklappbaren Über-uns-Texte */
#section2 .about-details > .about-text {
  margin-top: 1rem;
  padding: 1.5rem 1.75rem;
  background: #eaf4fc;
  color: #263c50;
  border: 1px solid #cfe5f5;
  border-radius: 1rem;
}

#section2 .about-details > .about-text h2,
#section2 .about-details > .about-text h3,
#section2 .about-details > .about-text h4 {
  color: #123b70;
}

@media (max-width: 768px) {
  #section2 .about-details > .about-text {
    padding: 1.1rem 1rem;
  }
}

.about-image {
  width: 100%;
  height: 15rem;
  margin-top: 0;
  background-image: url("../assets/IMG_0999_bg2.png");
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
}

.about p {
  margin-bottom: 0.8rem;
}

.about ul  {
  margin-left: 2rem;
  margin-bottom: 0.8rem;
}
 
/* =========================
   SERVICES
   ========================= */

.services {
  padding: 3rem 0;

  background:
    linear-gradient(
      to right,
      rgba(10,30,80,0.6) 0%,
      rgba(10,30,80,0.3) 40%,
      rgba(255,255,255,0.7) 70%,
      rgba(255,255,255,0.95) 100%
    ),
    url("../assets/IMG_0984_bg3.png");

  background-size: cover;
  background-position: center;

  border-radius: 20px;
  margin: 2rem 1rem;
}

/* HEADER */

.services-header {
  text-align: center;
  margin-bottom: 2rem;
}

/* LAYOUT */

.services-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;

  align-items: start; /* 🔥 FIX */
}

/* LEFT */

.service-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* RIGHT */

.services-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* CARDS */

.service-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

/* ROW */

.service-row {
  display: flex;
  gap: 1rem;
}

/* ICONS */

.icon-circle {
  background: #eef3f6;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Abstand wird einheitlich über die hellblaue Textfläche geregelt. */
#section3 details[open] > summary {
  margin-bottom: 0;
}

/* =========================
   FEATURES
   ========================= */

.features {
  padding: 3rem 0;
  text-align: center;
}

.feature-grid {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.feature-card {
  flex: 1;
  min-width: 12rem;
  background: white;
  padding: 1.2rem;
  border-radius: 1rem;
}

/* =========================
   KONTAKT
   ========================= */

/* Kontaktbereich: zentrierte, abgerundete Karte */
#section4 {
  padding: 3rem 1rem;
}

#section4 .contact {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: #123b70;
  color: #ffffff;
  border-radius: 1rem;
  text-align: center;
}

#section4 .contact h2,
#section4 .contact h3 {
  color: #ffffff;
}

/* Kontaktdaten linksbündig, Karte insgesamt zentriert */
#section4 .contact-info {
  display: inline-block;
  max-width: 100%;
  text-align: left;
  margin: 1rem auto 0;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

#section4 .contact a,
#section4 .contact a:visited {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  #section4 {
    padding: 2rem 1rem;
  }

  #section4 .contact {
    padding: 2rem 1.25rem;
  }
}

/* Abstand zwischen Adress-Button und Adresse */
#section4 .contact details[open] > summary {
  margin-bottom: 0.8rem;
}

/* =========================
   FOOTER
   ========================= */

.footer {
  background: #0a1e50;
  color: white;
  text-align: center;
  padding: 20px 0;
}

/* Normaler Link */
a {
    color: #c0ffee;
}

/* Link, wenn du ihn bereits besucht hast */
a:visited {
    color: #c0ffee;
}

/* Wenn du mit der Maus über den Link fährst */
a:hover {
    font-style:italic;
}

/* Während du den Link anklickst */
a:active {
    font-style:italic;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px) {
  .about > .about-text {
    grid-template-columns: 1fr;
  }

  .about-intro {
    grid-column: 1 / -1;
  }

  /* Die drei Buttons bleiben auch auf schmalen Bildschirmen in einer Reihe. */
  #section2 > .about-text {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }
  #section2 .about-details,
  #section2 .about-details[open] {
    grid-column: auto;
  }
  #section2 .about-details::details-content {
    width: calc(300% + 1rem);
  }
  #section2 .about-details:nth-of-type(2)::details-content {
    margin-left: calc(-100% - 0.5rem);
  }
  #section2 .about-details:nth-of-type(3)::details-content {
    margin-left: calc(-200% - 1rem);
  }
  #section2 .about-details > summary.btn {
    padding: 0.6rem 0.3rem;
    font-size: 0.85rem;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-image {
    height: 200px;
  }
}

@media (max-width: 500px) {

  .services-layout {
    grid-template-columns: 1fr;
  }

}

/* OpenStreetMap im Kontaktbereich */
#section4 .contact-map {
  width: min(100%, 580px);
  margin-top: 1.5rem;
}
#section4 .contact-map iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 0.85rem;
  background: #eef3f6;
}
#section4 .contact-route {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 0.7rem;
  font-weight: bold;
}
#section4 .map-attribution {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  opacity: 0.85;
}
@media (max-width: 500px) {
  #section4 .contact-map iframe { height: 210px; }
}


/* =========================
   GOTTESDIENSTE – ADRESSE
   Gleicher Button- und Textstil wie bei „Über uns“
   ========================= */
#section3 .about-details > summary.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.2rem;
  margin-top: 0;
  padding: 0.6rem 1.2rem;
  background: #3fa7d6;
  color: #fff;
  border: 2px solid transparent;
  border-radius: 1rem;
  box-shadow: none;
  cursor: pointer;
  list-style: none;
  text-align: center;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
#section3 .about-details > summary.btn::-webkit-details-marker {
  display: none;
}
/* Das vorhandene a-Element im Summary erbt die weiße Schriftfarbe. */
#section3 .about-details > summary.btn a,
#section3 .about-details > summary.btn a:visited {
  color: inherit;
  text-decoration: none;
}
#section3 .about-details[open] > summary.btn {
  background: #123b70;
  border-color: #0a1e50;
}
#section3 .about-details > summary.btn::after {
  content: "›";
  display: inline-block;
  margin-left: 0.8rem;
  font-size: 1.5rem;
  line-height: 1;
}
#section3 .about-details[open] > summary.btn::after {
  content: "⌄";
}
#section3 .about-details::details-content {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height 0.4s ease, opacity 0.3s ease;
  transition-behavior: allow-discrete;
}
#section3 .about-details[open]::details-content {
  height: auto;
  opacity: 1;
  interpolate-size: allow-keywords;
}
#section3 .about-details > .about-text {
  margin-top: 1rem;
  padding: 1.5rem 1.75rem;
  background: #eaf4fc;
  color: #263c50;
  border: 1px solid #cfe5f5;
  border-radius: 1rem;
}
#section3 .about-details > .about-text p:last-child {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  #section3 .about-details > .about-text {
    padding: 1.1rem 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  #section3 .about-details::details-content {
    transition: none;
  }
}


/* =========================
   SMARTPHONE-NAVIGATION – abgestimmt auf das FCG-Farbschema
   ========================= */
@media (max-width: 768px) {
  .header {
    background: rgba(10, 30, 80, 0.98);
  }

  .header-container {
    position: relative;
    min-height: 3.5rem;
  }

  .menu-toggle {
    width: 2.75rem;
    height: 2.75rem;
    margin-left: auto;
    padding: 0.55rem;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    border: 1px solid rgba(204, 224, 255, 0.35);
    border-radius: 0.75rem;
    background: rgba(63, 167, 214, 0.16);
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  .menu-toggle:hover,
  .menu-toggle:focus-visible {
    background: rgba(63, 167, 214, 0.3);
    border-color: #3fa7d6;
  }

  .menu-toggle span {
    display: block;
    width: 1.35rem;
    height: 0.15rem;
    margin: 0;
    border-radius: 999px;
    background: #cce0ff;
  }

  .nav ul {
    top: calc(100% + 0.55rem);
    right: 0;
    width: min(17rem, 90vw);
    padding: 0.6rem;
    gap: 0.2rem;
    border: 1px solid rgba(204, 224, 255, 0.18);
    border-radius: 1rem;
    background: #123b70;
    box-shadow: 0 12px 30px rgba(10, 30, 80, 0.24);
  }

  .nav ul li a,
  .nav ul li a:visited {
    padding: 0.8rem 1rem;
    border-radius: 0.65rem;
    color: #eaf4fc;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    font-style: normal;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .nav ul li a:hover,
  .nav ul li a:focus-visible {
    background: #3fa7d6;
    color: #ffffff;
    font-style: normal;
    outline-offset: 2px;
  }

  .nav ul li a:active {
    background: #0a1e50;
    color: #ffffff;
    font-style: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle,
  .nav ul li a {
    transition: none;
  }
}

/* =========================
   ANKER-NAVIGATION – Platz für die feste Kopfzeile
   ========================= */
#section1,
#section2,
#section3,
#section4 {
  scroll-margin-top: 5rem;
}

@media (max-width: 768px) {
  #section1,
  #section2,
  #section3,
  #section4 {
    scroll-margin-top: 5.5rem;
  }
}

/* Gottesdienst-Überschrift auf hellen und dunklen Hintergrundbereichen lesbar */
#section3 .services-header {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 2rem;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  background: rgba(10, 30, 80, 0.88);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(10, 30, 80, 0.12);
}
#section3 .services-header h2 {
  color: #ffffff;
}
#section3 .services-header p {
  color: #eaf4fc;
}
@media (max-width: 500px) {
  #section3 .services-header {
    width: 100%;
    padding: 1rem;
  }
}

/* =========================
   SPENDEN
   ========================= */
#spenden {
  padding: 3rem 1rem;
  scroll-margin-top: 5rem;
}
#spenden .donations-card {
  max-width: 850px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: #eaf4fc;
  color: #263c50;
  border: 1px solid #cfe5f5;
  border-radius: 1rem;
}
#spenden h2, #spenden h3 { color: #123b70; }
#spenden h2 { margin-bottom: 1rem; }
#spenden h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; }
#spenden p { margin-bottom: 0.8rem; }
/* Bankverbindung auf kontrastreicher weißer Fläche, hellblaue Karte bleibt erhalten */
#spenden .donations-bank-details {
  display: block;
  padding: 0.5rem 1.4rem;
  background: #ffffff;
  border: 1px solid #cfe5f5;
  border-radius: 0.85rem;
  color: #123b70;
}
#spenden .donations-bank-row {
  padding: 0.9rem 0;
}
#spenden .donations-bank-row + .donations-bank-row {
  border-top: 1px solid #cfe5f5;
}
#spenden .donations-bank-details dt {
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #123b70;
}
#spenden .donations-bank-details dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  color: #123b70;
  overflow-wrap: anywhere;
}
#spenden .donations-bank-details .donations-iban {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  font-variant-numeric: tabular-nums;
}
#spenden .donations-note {
  margin-top: 1.5rem;
  margin-bottom: 0;
  padding: 1rem;
  border-left: 4px solid #3fa7d6;
  background: #fff;
  border-radius: 0.4rem;
}
@media (max-width: 768px) {
  #spenden { padding: 2rem 1rem; scroll-margin-top: 5.5rem; }
  #spenden .donations-card { padding: 2rem 1.25rem; }
}
@media (max-width: 500px) {
  #spenden .donations-bank-details { padding: 0.4rem 1rem; }
  #spenden .donations-bank-details .donations-iban { font-size: 1.05rem; letter-spacing: 0; }
}

/* E-Mail-Bilder: gleiche Höhe wie der umgebende Text „E-Mail“ */
#section4 .contact-email-images {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  max-width: 100%;
  height: 1.6em;
  vertical-align: baseline;
  background: #123b70;
  transform: translateY(0.5em);
}

#section4 .contact-email-images img {
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  flex: 0 0 auto;
}
