/* style_for_pages.css */

.neckar-background {
  width: 100vh;
  height: 100%;
  object-fit: cover;
}
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;  /* at least full viewport height */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               sans-serif;
}

/* Layout: header iframe at top, footer iframe at bottom */
body {
  display: flex;
  flex-direction: column;
}

/* Header + footer iframes */

.header-frame,
.footer-frame {
  border: none;
  display: block;
  width: 100%;
  flex: 0 0 auto;
}

/* Adjust these heights to match the actual visual height */
.header-frame {
  height: 140px;  /* try 100–120px, tweak after you see it */
}

.footer-frame {
  height: 140px;   /* tweak as needed */
}

/* Main content area fills the remaining space */



.page-content {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  box-sizing: border-box;
}

/* Typography */

.page-content h1 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.page-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-content p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 1rem;
}

.page-content ul,
.page-content ol {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.page-content a {
  color: #005a9c;
}

.page-content a:hover {
  text-decoration: underline;
}

.comment {
    color: grey
}

.picture {
  height: 300px;      /* container width */
  margin-bottom: 1rem;
}

.picture img {
  height: 100%;      /* image scales to container */
  width: auto;     /* preserve aspect ratio */
  display: block;   /* remove inline-gap */
}


h2 {
    font-weight: normal;      /* heisst: Überschrift h2 ist nicht fett */
}

/* Gallery */

.gallery-block {
  margin-bottom: 3rem;
}

.gallery-row-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gallery-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: hidden;
  flex: 1;
  /* smooth momentum scrolling on touch devices */
  -webkit-overflow-scrolling: touch;
}

.gallery-image {
  flex: 0 0 auto;
  position: relative;
  height: 280px;
  margin: 0;
  cursor: default;
}

.gallery-image img {
  height: 100%;
  width: auto;
  display: block;
  border-radius: 4px;
}

.gallery-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0 0 4px 4px;
  opacity: 0;
  transition: opacity 0.2s;
  /* wrap text; truncate only if caption would exceed the full image height */
  white-space: normal;
  overflow: hidden;
  max-height: 100%;
}

.gallery-image:hover figcaption {
  opacity: 1;
}

.gallery-arrow {
  flex: 0 0 auto;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  visibility: hidden; /* shown via JS when needed */
}

.gallery-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* FullCalendar */

#calendar {
  margin-top: 1rem;
}

.fc {
  font-size: 1rem;
}

.fc .fc-toolbar-title {      /* Monatstitel etwas größer */
  font-size: 1.4rem;
  font-weight: 600;
}

/* Ereignis Details als Popover */

.event-details {
  position: absolute;
  z-index: 1000;
  width: 300px;
  padding: 1.5rem 1rem 1rem;
  border: 1px solid #ccc;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Der "Pfeil" (Sprechblasen-Arm) */
.event-details::after {
  content: "";
  position: absolute;
  top: -10px; /* Zeigt nach oben zum Klick-Punkt */
  left: 20px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #ffffff;
}

.event-details.hidden {
  display: none;
}

.event-details h2 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.event-details p {
  font-size: 1rem;
  margin: 0.25rem 0;
}

/* Schließen-Button (X) */
.close-details {
  position: absolute;
  top: 5px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
  line-height: 1;
}

.close-details:hover {
  color: #000;
}
