header/* --- BASIS & LAYOUT --- */
* {
  box-sizing: border-box;
}

body {
	margin: 0;
	font-family: system-ui, -apple-system, BlinkMacSystemFont,
				 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.7;
	background: #ffffff url('../assets/Allgemein/hgr-31.gif');
	color: #222;
}

header {
	background: #1f9979;
	color: white;
	padding: 0.5rem;
	text-align: center;
}

header h1 {
	margin: 0;
	font-size: 1.5rem;
}

header h2 {
	margin: 0;
	font-size: 1.25rem;
}

header h2-darkblue {
	margin: 0;
	font-size: 1.25rem;
	color: darkblue;
}

header h3 {
	margin: 0;
	font-size: 1rem;
}

header p {
	margin: 0.5rem 0 0;
	font-style: italic;
}

main {
	max-width: 1000px;
    margin: auto auto 0 auto; /* Oben/Seiten auto, Unten 0 */
	padding: 1rem;
    padding-bottom: 0;
	background: white;
	flex:1;
	display: flow-root;
}

/* Verhindert, dass das letzte Element im Content eine Lücke drückt */
main > section:last-child, 
main > p:last-child {
    margin-bottom: 0;
}

p {
	text-indent: 1em;
}

.centered {
  text-align: center;
}

.div-centered {
  text-align: center;
}

.left-aligned {
  text-align: left;
}

.right-aligned {
  text-align: right;
}

figure {
	margin: 1.5rem auto;
	text-align: center;
}

figure img {
	max-width: 100%;
	height: auto;
}

figcaption {
	font-size: 0.85rem;
	color: #555;
}

figcaption.smallfont {
	font-size: 0.75rem;
	color: #555;
}

section {
	margin-bottom: 0.5rem;
}

.border-section {
	border-style: groove;
	padding: 5px;
}

.border-section-thin {
	border-style: groove;
	border-width: 1px;
	padding: 5px;
}

body-footer {
	max-width: 1000px;
	margin: auto;
	padding: 1rem;
	font-size: 0.9rem;
	color: #444;
}

table, th, td {
	border: none;
	border-collapse: collapse;
}

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
	body {
	font-family: system-ui, -apple-system, BlinkMacSystemFont,
				 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	}

	header h3 {
		margin: 0;
		font-size: 1.5rem;
	}

	header h1 {
		font-size: 2rem;
	}
}
	
.main-header {
  position: fixed;   /* Fixiert den Header am Bildschirm */
  top: 0;
  left: 0;
  width: 100%;       /* Volle Breite */
  z-index: 1000;     /* Stapelwert: Liegt immer über dem Content */
  box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Optional: Schatten für Abhebung */
  
  /* Dein bestehendes Styling */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;   /* oben/unten | links/rechts */
  background-color: #1f9979;
}

.header-center {
  display: flex;
  flex-direction: column;
  align-items: left;
  flex-grow: 1; /* Nimmt den mittleren Platz ein */
}

.logo-side {
  width: 150px;
  padding: 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.logo-img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- ALLGEMEINES NAVIGATION-STYLING --- */
.main-nav {
  width: 100%;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav a {
  text-decoration: none;
  color: white;
  display: block;
}

/* --- FOOTER STYLING --- */
.site-footer {
  background-color: #1f9979;
  color: white;
  padding: 2px 2px;
  margin-left: auto;
  margin-right: auto;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h4 {
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* --- TABELLEN FÜR BILD & TEXT --- */
.content-table {
  width: 100%;
  margin: 20px 0;
}

.content-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.content-row.reverse {
  flex-direction: row-reverse;
}

.content-image {
  flex: 1;
  max-width: 40%;
}

.content-text {
  flex: 2;
}

/* Mobile Anpassung für Tabellen */
@media (max-width: 600px) {
  .content-row, .content-row.reverse {
    flex-direction: column;
    align-items: flex-start;
  }
  .content-image {
    max-width: 100%;
    width: 100%;
  }
}

/* --- DESKTOP NAVIGATION (ab 769px) --- */
@media (min-width: 769px) {
  .main-nav .menu {
    display: flex;
    justify-content: center; /* Zentriert die Menüleiste im Header */
    gap: 0;
  }

  .main-nav .menu > li {
    position: relative;
  }

  .main-nav .menu > li > .link-wrapper > a,
  .main-nav .menu > li > .item > a {
    padding: 10px 15px;
    font-weight: bold;
    white-space: nowrap;
  }

.menu a:hover {
  background-color: #f0f0f0;
  color: #1faa79 !important;
  font-style: italic;
  font-weight: bold;
}

  /* Desktop-Hover Mechanismus */
  .has-submenu:hover .sub-menu {
    display: block;
  }

  .sub-menu {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1fa879;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 5px 0;
  }

  .sub-menu li a {
    color: #fff !important;
    padding: 10px 20px;
    font-weight: normal;
  }

  .sub-menu li a:hover {
    background-color: #f0f0f0;
    color: #1faa79 !important;
  }

  /* Mobile-Buttons auf Desktop ausblenden */
  .submenu-toggle {
    display: none;
  }

  .has-submenu > .link-wrapper > a::after {
    content: " ▾";
    font-size: 0.8rem;
  }
  
  /* Der gesamte Button-Container muss weg */
  .menu-toggle {
    display: none !important;
  }
  
  /* Schriftgröße für den Titel */
  .site-title {
    font-size: 1.5rem; /* Hier kannst du den Wert anpassen (z.B. 18px oder 1.2rem) */
    line-height: center;
    margin: 4px 0;
  }
}

/* --- MOBILE NAVIGATION (bis 768px) --- */
@media (max-width: 768px) {
	.main-header {
	  padding: 8px 8px;  /* oben/unten | links/rechts */
	}

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 45px;
    height: 45px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
  }

/* Die einzelnen Striche des Hamburgers */
  .menu-toggle span {
    width: 40px;             /* DICKE der Striche */
    height: 10px;            
    background-color: white;
    border-radius: 1px;     /* Abrundung der Striche */
  }

/* Schriftgröße für den Titel */
  .site-title {
    font-size: 0.9rem; /* Hier kannst du den Wert anpassen (z.B. 18px oder 1.2rem) */
    text-align: center;
    margin: 0 0;
  }
  
  .logo-side {
    width: 80px;
    padding: 0 0;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 1000;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  }

  .main-nav.active {
    display: block;
  }

  /* Linksbündige Ausrichtung für alle Items */
  .link-wrapper, .main-nav .item {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Linksbündig */
    border-bottom: 1px solid #eee;
    background: #ffffff;
  }

  .link-wrapper a, .main-nav .item a {
    flex-grow: 1;
    color: #1f9979 !important;
    padding: 15px 20px; /* Großzügiger Einzug links */
    font-weight: bold;
    font-size: 18px;
    text-align: left; /* Sicherstellen, dass Text links steht */
  }

  .submenu-toggle {
    background: #fdfdfd;
    border: none;
    border-left: 1px solid #eee;
    width: 40px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .arrow {
    border: solid #1f9979;
    border-width: 0 5px 5px 0;
    display: inline-block;
    padding: 4px;
    transform: rotate(45deg);
  }

  .sub-menu {
    display: none;
	color: #ffffff;
    background-color: #1fa879;
  }

  .sub-menu li a {
    padding: 12px 40px; /* Weiter eingerückt für die Hierarchie */
    color: #fff !important;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
  }

  /* Öffnen-Zustand für Mobile */
  .has-submenu.is-open > .sub-menu {
    display: block;
  }

  .has-submenu.is-open .arrow {
    transform: rotate(-135deg);
  }
}

/* --- PLATZHALTER FÜR DEN CONTENT --- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background-color: #f9f9f9;
  padding-top: 115px; 
}

.flex-container {
	display: flex;
	flex-wrap: wrap; /* Erlaubt den Umbruch auf schmalen Screens */
	gap: 0; /* Wir regeln den Abstand über Border/Padding */
	background: white;
	max-width: 1000px;
	margin: 0 auto;
	border: 1px solid #ccc;
	align-items: flex-start;
}

.cont-centered {
	text-align: center;
}

.cont-lightgray {
    background-color: #f8f8f8;
}

h2 {
    text-align: center;
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
}

td {
    padding: 10px;
    width: auto;
    border-bottom: 1px solid #ddd;
}

td.min {
    width: 45%;
    white-space: nowrap;
}

td.date {
    font-weight: bold;
    color: #555;
}

td.datefix {
    font-weight: bold;
    color: #555;
	width: 100px;
}

td.datefix250 {
    color: #555;
	width: 250px;
}

td.datefix175 {
    color: #555;
	width: 175px;
}

td.gdate {
    background-color: #1f9979;
    color: #fff;
}

td.grey97 {
    background-color: #f7f7f7;
    color: #000;
}

td.grey94 {
    background-color: #f0f0f0;
    color: #000;
}

td.grey88 {
    background-color: #e0e0e0;
    color: #000;
}

/* Fixiert die Breite der ersten Spalte in allen Inhalts-Tabellen */
td.c-image {
    width: 200px;       /* Hier die gewünschte Spaltenbreite festlegen */
    min-width: 100px;   /* Verhindert das Zusammenquetschen */
    max-width: 300px;
    padding: 10px;
    vertical-align: middle;
}

/* Sorgt dafür, dass die Bilder die gesamte Spaltenbreite ausfüllen */
td.c-image img {
    width: 100%;        /* Bild nutzt die vollen 150px der Spalte */
    height: auto;       /* Proportionale Skalierung */
    display: block;     /* Entfernt störende Abstände unter dem Bild */
    background-color: #888; /* Dein bestehender Platzhalter-Hintergrund */
}

td a {
    text-decoration: none;
    color: #007BFF;
}

td a:hover {
    text-decoration: underline;
}

.description {
    display: block;
    font-size: 14px;
    color: #666;
}

.blue-titel {
    display: block;
    font-size: 18px;
    color: #0000ff;
}

.more-info {
    background-color: #f0e6bd;
    text-align: center;
    font-weight: bold;
}

.more-info2 {
    background-color: #f0e6bd;
    text-align: center;
    font-weight: bold;
}

.text-mit-linie {
  display: inline-block; /* Element schrumpft auf Textlänge */
  border-bottom: 2px solid #1f9979; /* Die Linie (Dicke, Stil, Farbe) */
  padding-bottom: 5px; /* Abstand zwischen Text und Linie */
  margin-bottom: 10px;
}

div.centered {
  display: flex;
  justify-content: center;
  align-items: center;
}

div.smallfont {
  font-size: 14px;
}

div.footertext {
 text-align: right;
 font-size: 9pt;
}

div.footertextLeft {
 text-align: left;
 font-size: 9pt;
}

div.footertextCentered {
 text-align: center;
 font-size: 9pt;
}

div.smalltext {
 text-align: left;
 font-size: 9pt;
 font-family: Arial,Helvetica,Geneva,Sans-serif;
}

/* Korrektur für Mobile: Der Header ist dort oft höher/niedriger */
@media (max-width: 768px) {
  body {
    padding-top: 60px !important;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Verteilt die 3 Striche gleichmäßig */
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;           /* Dicke der Striche */
    background-color: #fff; /* Farbe der Striche */
    border-radius: 3px;    /* Abgerundete Ecken */
    transition: all 0.3s ease-in-out; /* Für eine weiche Animation */
  }
}

/* Container-Styling */
.publications-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
    max-width: 800px;
    margin: 0 auto;
}

/* Die Karte / Zeile */
.publication-card {
    display: flex;
    flex-direction: row; /* Desktop: Nebeneinander */
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc; /* Die Trennlinie */
    align-items: flex-start;
}

.publication-card2 {
    display: flex;
    flex-direction: row; /* Desktop: Nebeneinander */
    gap: 15px;
    padding-top: 1px;
    padding-bottom: 1px;
    border-bottom: 1px solid #ccc; /* Die Trennlinie */
    align-items: flex-start;
}

/* Bild-Styling */
.pub-image img {
    width: 150px;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

/* Bild-Styling */
.pub-image2 img {
    min-width: 50px;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.pub-image-big img {
	width: 300px;
}

/* Text-Bereich */
.pub-info {
    flex: 1;
    line-height: 1.5;
}

.pub-title {
    margin: 5px 0;
    font-size: 1.2rem;
    color: #333;
}

.pub-title2 {
    margin: 5px 0;
    font-size: 1rem;
    color: #333;
}

.vergriffen {
    color: #d9534f;
    font-style: italic;
}

/* MOBIL-OPTIMIERUNG (Smartphone) */
@media (max-width: 768px) {
    .publication-card {
        flex-direction: column; /* Handy: Untereinander */
        align-items: center;
        text-align: center;
    }

    .pub-image img {
        width: 180px; /* Bilder auf Handy etwas größer */
        margin-bottom: 10px;
    }
    
    .pub-info {
        width: 100%;
    }
}

/* Versteckt alle Zeilen außer der ersten */
.collapsible-table tr:not(:first-child) {
    display: none;
}

/* Zeigt die Zeilen an, wenn die Tabelle die Klasse 'open' hat */
.collapsible-table.open tr:not(:first-child) {
    display: table-row;
}

/* Macht die Kopfzeile als klickbar erkennbar */
.more-info {
    cursor: pointer;
    position: relative;
    user-select: none;
}

/* Optional: Ein kleiner Pfeil als optischer Hinweis */
.more-info::after {
    content: ' ▼';
    font-size: 0.8em;
    float: right;
}

.open .more-info::after {
    content: ' ▲';
}

/* Rahmen-Farben */
div.border-black {
  border-style: solid;
  border-color: black;
  border-width: 1px;
  border-collapse: collapse;
}

@media (max-width: 768px) {
    /* Tabellen, die auf Mobile untereinander stehen sollen */
    .stack-table, 
    .stack-table tbody, /* Tbody ebenfalls auf Block setzen */
    .stack-table tr, 
    .stack-table td {
        display: block !important;
        width: 100% !important;
        text-align: center !important; /* Erzwingt Zentrierung des Textes */
        padding: 5px;
        box-sizing: border-box;
   }

    /* Falls Bilder in der Tabelle sind, müssen diese als Block-Elemente zentriert werden */
    .stack-table td img {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block;
    }

    /* Verhindert, dass Text-Einzüge (p { text-indent: 1em; }) die Zentrierung stören */
    .stack-table td p {
        text-indent: 0 !important;
        text-align: center !important;
    }
}

/* --- RESPONSIVE BILDER & GALLERIE --- */

/* Bilder passen sich immer ihrem Container an */
.responsive-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* Container für Bilder-Gruppen (Flexbox) */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.gallery-item {
    flex: 1;
    min-width: 200px; /* Ab dieser Breite bricht es in die nächste Zeile */
}

/* Falls Sie die Tabellen-Struktur behalten wollen, erzwingen wir den Umbruch */
@media (max-width: 768px) {
    /* Alle Tabellen-Zellen werden zu Block-Elementen (untereinander) */
    table.nopaddingtable, 
    table.nopaddingtable tr, 
    table.nopaddingtable td {
        display: block !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Entfernt feste Breiten von Bildern in den Tabellen */
    table.nopaddingtable img {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
    }

    /* Der Text-Block in der Mitte bekommt mehr Luft */
    .borderCell {
        padding: 15px !important;
        box-sizing: border-box;
    }
}

/* Spezielle Korrektur für das Panorama */
.panorama-container img {
    width: 100%;
    object-fit: cover;
}

/* Erlaubt Bildern, mit dem Container zu schrumpfen */
img {
    max-width: 100%;
    height: auto;
}

/* Spezielle Regel für die Bilder-Tabellen in der niederdollendorf.html */
.centered table {
    width: 100%;
    max-width: 1000px; /* Begrenzung auf die Hauptbreite */
    margin: auto;
}

/* Auf kleinen Bildschirmen die Tabellen-Zellen untereinander fließen lassen */
@media (max-width: 768px) {
    section.centered div table, 
    section.centered div table tr, 
    section.centered div table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    section.centered div table td {
        padding: 10px 0;
        text-align: center;
    }
}

/* Die Zelle muss die Basis für die Positionierung sein */
.link-cell {
    position: relative;
    padding: 0; /* Optional: Padding entfernen, damit der Link alles füllt */
}

/* Der Link wird über die gesamte Fläche gestreckt */
.row-link {
    display: block;
    width: 100%;
    height: 100%;
    padding: 10px; /* Hier das Padding für den Inhalt setzen */
    text-decoration: none;
    color: inherit;
}

/* Hover-Effekt für die ganze Zeile */
tr:hover {
    background-color: #fff;
    cursor: pointer;
}

.stack-table tr {
    cursor: default !important;
}.stack-table tr:hover {
    cursor: default !important;
}

hr {
    border: none; /* Standard-3D-Effekt entfernen */
    height: 2px; /* Dicke der Linie */
    background-color: #1f9979; /* Farbe der Linie */
    width: 90%; /* Breite der Linie */
    margin: 20px auto; /* Abstand oben/unten, zentriert */
}

.hr-small {
    width: 40%; /* Breite der Linie */
}

.container {
	max-width: 1000px;
	margin: 20px auto;
	padding: 20px;
	background-color: var(--box-bg);
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	border: 1px solid var(--border-color);
}

header {
	text-align: center;
	border-bottom: 2px double var(--accent-color);
	margin-bottom: 30px;
	padding-bottom: 20px;
}

h1 {
	color: var(--accent-color);
	font-size: 1.8rem;
	margin: 10px 0;
}

.nav-buttons {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.btn {
	display: inline-block;
	padding: 8px 16px;
	background-color: var(--accent-color);
	color: white;
	text-decoration: none;
	border-radius: 4px;
	font-size: 0.9rem;
	transition: background 0.3s;
}

.btn:hover {
	background-color: #5d2e0d;
}

.pdf-link {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.9rem;
	color: #d32f2f;
	text-decoration: none;
	font-weight: bold;
}

.document-image {
	display: block;
	margin: 20px auto;
	max-width: 100%;
	height: auto;
	border: 1px solid #ccc;
}

.text-block {
	margin-bottom: 25px;
	text-align: justify;
}

.center-text {
	text-align: center;
	font-weight: bold;
	margin: 30px 0;
	color: var(--accent-color);
}

.glossary {
	background-color: #f9f9f9;
	padding: 20px;
	border-left: 4px solid var(--accent-color);
	font-size: 0.95rem;
	margin-top: 40px;
}

footer {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--border-color);
	font-size: 0.85rem;
	text-align: center;
}

sup {
	color: var(--accent-color);
	font-weight: bold;
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
	.nav-buttons {
		flex-direction: column;
		gap: 15px;
	}
	h1 {
		font-size: 1.4rem;
	}
	.container {
		margin: 10px;
		padding: 15px;
	}
}

p.footnote {
	text-align: left;
	font-size: 10pt;
}

.flex-list {
    list-style: circle;
    padding: 0;
}
  
.flex-list li {
    display: flex;
    flex-direction: column; /* Elemente untereinander */
    padding: 10px;
    border-bottom: 1px solid #eee;
}
  
  .title {
    font-weight: bold;
  }
  
.subtitle {
    color: #555;
    font-size: 0.9em;
}
  
  /* Zielgerichtete Formatierung für Listen in Ihrem Content */
.flex-container {
	display: flex;
	flex-wrap: wrap; /* Erlaubt den Umbruch auf schmalen Screens */
	gap: 0; /* Wir regeln den Abstand über Border/Padding */
	background: white;
	max-width: 1000px;
	margin: 0 auto;
	border: 1px solid #ccc;
}

.column {
	flex: 1; /* Spalten teilen sich den Platz gleichmäßig */
	min-width: 300px; /* Umbruchpunkt: Wenn eine Spalte kleiner als 300px wird */
	padding: 20px;
	box-sizing: border-box;
}

/* Die linke Spalte erhält den senkrechten Strich rechts */
.left-column {
	border-right: 1px solid #1f9979;
}

/* Responsive Anpassung: Strich entfernen, wenn gestapelt */
@media (max-width: 600px) {
	.left-column {
		border-right: none;
		border-bottom: 2px solid #333; /* Optional: Trenner nun horizontal */
	}
}

/* Container-Grundstruktur */
.grid-container {
    display: grid;
    gap: 15px; /* Abstand zwischen den Elementen */
    padding: 20px;
    /* Standard für Desktop: 4 Spalten */
    grid-template-columns: repeat(4, 1fr);
}

/* Einzelnes Element */
.grid-item {
    background-color: rgb(255, 255, 238);
    border: 1px solid #ccc;
    text-align: center;
    transition: transform 0.2s;
}

.grid-item:hover {
    transform: scale(1.02); /* Kleiner Effekt beim Drüberfahren */
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
}

.grid-caption {
    padding: 8px;
    font-size: 11px;
    color: #222;
    font-family: Arial, sans-serif;
}

/* Responsivität: Tablet (3 Spalten) */
@media (max-width: 1000px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsivität: Smartphone (2 Spalten) */
@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.flurkarten
{
  position: relative;
  width: 1190px;
  top: 0;
  left: 0;
}
.flurkarte1
{
  visibility: hidden;
  position: absolute;
  top:  0;
  left: 0;
}

/*------------- CSS für die Flurkarten-Tabellen --------------*/
.table-desktop, .table-tablet, .table-mobile {
    display: none;
    width: 100%;
}

/* Große Bildschirme (ab 1024px Breite) */
@media screen and (min-width: 1024px) {
    .table-desktop { display: table; }
}

/* Mittlere Bildschirme (600px bis 1023px) */
@media screen and (min-width: 600px) and (max-width: 1023px) {
    .table-tablet { display: table; }
}

/* Kleine Bildschirme (bis 599px) */
@media screen and (max-width: 599px) {
    .table-mobile { display: table; }

/* Speziell für die mobile Flurnamen-Tabelle */
	.table-mobile td {
		padding: 2px 1px;     /* Verringert den Innenabstand (oben/unten 4px, links/rechts 2px) */
		font-size: 10px;      /* Verkleinert die Schriftgröße leicht, falls nötig */
		line-height: 1.2;     /* Verringert den Zeilenabstand */
	}
}

/* Mobile Anpassung für die Zeittafel-Tabelle (bis 768px) */
/* Responsivität nur für die Geschichts-Tabelle */
@media (max-width: 768px) {
    /* Die Tabelle selbst und deren Bereiche als Block-Elemente */
    table.history-table, 
    table.history-table tbody, 
    table.history-table tr, 
    table.history-table td {
        display: block;
        width: 100%;
    }

    /* Jede Zeile erhält einen Abstand und eine Trennlinie */
    table.history-table tr {
        margin-bottom: 1.5rem;
        border-bottom: 1px solid #ddd;
        padding-bottom: 1rem;
    }

    /* Die Datums-Zelle hervorheben */
    table.history-table td.gdate {
        background-color: #f8f8f8; /* Leichter Hintergrund zur Abhebung */
        font-weight: bold;
        padding: 5px 10px;
        color: #1f9979; /* Farbe passend zu Ihrem Header-Grün */
    }

    /* Die Beschreibungs-Zelle */
    table.history-table td:not(.gdate) {
        padding: 10px;
    }
}

@media (min-width: 769px) {
  /* 1. Den mittleren Bereich daran hindern, alles auseinander zu drücken */
  .header-center {
    flex-grow: 0; /* Nimmt nicht mehr allen Platz ein */
    width: 800px;  /* Feste Breite für Titel + Menü */
    margin: 0 auto; /* Zentriert diesen Block in der Mitte */
  }

  /* 2. Den gesamten Header-Inhalt zusammenhalten */
  .main-header {
    justify-content: center; /* Elemente rücken zur Mitte */
    gap: 10px; /* Definierter Abstand zwischen Logo - Menü - Logo */
    padding: 10px 0; /* Seitliches Padding kann nun weg */
  }
  
  .main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box; /* WICHTIG: Padding wird in die 100% eingerechnet */
}

  /* 3. Optional: Wenn das rechte Logo noch weiter links sein soll */
  .main-header .logo-side:last-of-type {
    margin-right: 10px; /* Schiebt es zusätzlich nach links */
  }
}

@media screen and (max-width: 768px) {
    /* Zwingt das gesamte HTML/Body-Element, nicht breiter als das Display zu sein */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
		margin: 0;
		padding: 0;
    }

    /* Der Header darf niemals breiter als das Sichtfeld (100vw) sein */
    .main-header {
        display: flex !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 5px 10px !important;
        box-sizing: border-box !important;
        justify-content: space-between !important;
    }

    /* Dies ist meist der Übeltäter: Der mittlere Bereich muss schrumpfen */
    .header-center {
        flex: 1 !important;
        width: auto !important; /* Hebt feste Pixel-Breiten auf */
        min-width: 0 !important; /* Erlaubt Flex-Shrink */
        margin: 0 5px !important;
    }

    /* Titel-Schrift verkleinern, damit sie nicht drückt */
    .site-title {
        font-size: clamp(12px, 3vw, 16px) !important;
        white-space: normal !important; /* Erlaubt Zeilenumbruch falls nötig */
        display: block;
    }

    /* Logos brauchen feste, kleine Maße */
    .logo-side {
        flex: 0 0 45px !important;
        width: 45px !important;
        margin: 0 !important;
    }

    .logo-img {
        width: 100% !important;
        height: auto !important;
    }
}

.htb-karte {
    position: relative; /* Wichtig: Erstellt das Koordinatensystem */
    display: inline-block;
    width: 100%;
}

.map-hotspot {
    position: absolute; /* Positionierung nach Prozenten */
    transform: translate(-50%, -50%); /* Zentriert den Klickpunkt exakt auf der Koordinate */
    width: 4%;  /* Die Größe des klickbaren Bereichs (flexibel) */
    min-width: 20px; /* Damit es auf dem Handy nicht zu klein zum Tippen wird */
    z-index: 10;
}

.map-hotspot img {
    width: 100%;
    height: auto;
    display: block;
}

.responsive-img {
    width: 50%;
    min-width: 100px; /* Hier festlegen, ab wann das Bild aufhören soll zu schrumpfen */
    height: auto;
}
.responsive-img7-5 {
    width: 7.5%;
    min-width: 120px; /* Hier festlegen, ab wann das Bild aufhören soll zu schrumpfen */
    height: auto;
}
.responsive-img10 {
    width: 10%;
    min-width: 100px; /* Hier festlegen, ab wann das Bild aufhören soll zu schrumpfen */
    height: auto;
}
.responsive-img15-80 {
    width: 15%;
    min-width: 80px; /* Hier festlegen, ab wann das Bild aufhören soll zu schrumpfen */
    height: auto;
}
.responsive-img15-100 {
    width: 15%;
    min-width: 100px; /* Hier festlegen, ab wann das Bild aufhören soll zu schrumpfen */
    height: auto;
}
.responsive-img15-150 {
    width: 15%;
    min-width: 150px; /* Hier festlegen, ab wann das Bild aufhören soll zu schrumpfen */
    height: auto;
}
.responsive-img15 {
    width: 15%;
    min-width: 200px; /* Hier festlegen, ab wann das Bild aufhören soll zu schrumpfen */
    height: auto;
}
.responsive-img20 {
    width: 20%;
    min-width: 200px; /* Hier festlegen, ab wann das Bild aufhören soll zu schrumpfen */
    height: auto;
}
.responsive-img20-250 {
    width: 20%;
    min-width: 250px; /* Hier festlegen, ab wann das Bild aufhören soll zu schrumpfen */
    height: auto;
}
.responsive-img30 {
    width: 30%;
    min-width: 250px; /* Hier festlegen, ab wann das Bild aufhören soll zu schrumpfen */
    height: auto;
}
.responsive-img35 {
    width: 35%;
    min-width: 300px; /* Hier festlegen, ab wann das Bild aufhören soll zu schrumpfen */
    height: auto;
}
.responsive-img40 {
    width: 40%;
    min-width: 350px; /* Hier festlegen, ab wann das Bild aufhören soll zu schrumpfen */
    height: auto;
}
.responsive-img40-300 {
    width: 40%;
    min-width: 300px; /* Hier festlegen, ab wann das Bild aufhören soll zu schrumpfen */
    height: auto;
}
.responsive-img43 {
    width: 43.2%;
    min-width: 350px; /* Hier festlegen, ab wann das Bild aufhören soll zu schrumpfen */
    height: auto;
}
.responsive-img45 {
    width: 45%;
    min-width: 350px; /* Hier festlegen, ab wann das Bild aufhören soll zu schrumpfen */
    height: auto;
}
.responsive-img50-300 {
    width: 50%;
    min-width: 300px; /* Hier festlegen, ab wann das Bild aufhören soll zu schrumpfen */
    height: auto;
}
.responsive-img50 {
    width: 50%;
    min-width: 350px; /* Hier festlegen, ab wann das Bild aufhören soll zu schrumpfen */
    height: auto;
}
.responsive-img60 {
    width: 60%;
    min-width: 350px; /* Hier festlegen, ab wann das Bild aufhören soll zu schrumpfen */
    height: auto;
}
.responsive-img70 {
    width: 70%;
    min-width: 350px; /* Hier festlegen, ab wann das Bild aufhören soll zu schrumpfen */
    height: auto;
}
.responsive-img80 {
    width: 80%;
    min-width: 350px; /* Hier festlegen, ab wann das Bild aufhören soll zu schrumpfen */
    height: auto;
}
.responsive-img90 {
    width: 90%;
    min-width: 350px; /* Hier festlegen, ab wann das Bild aufhören soll zu schrumpfen */
    height: auto;
}

.img-right {
    float: right;
    margin-left: 20px;  /* Abstand zum Text links */
    margin-right: 20px;  /* Abstand zum Text links */
    margin-bottom: 10px; /* Abstand zum Text darunter */
}

.img-right-small-100-40 {
    float: right;
    margin-left: 20px;  /* Abstand zum Text links */
    margin-right: 20px;  /* Abstand zum Text links */
    margin-bottom: 10px; /* Abstand zum Text darunter */
	width: 15%;
	max-width: 100px;
}

.img-left {
    float: left;
    margin-right: 20px;  /* Abstand zum Text links */
    margin-left: 20px;  /* Abstand zum Text links */
    margin-bottom: 10px; /* Abstand zum Text darunter */
}

.img-left-small-400-70 {
    float: left;
    margin-right: 20px;  /* Abstand zum Text links */
    margin-left: 20px;  /* Abstand zum Text links */
    margin-bottom: 10px; /* Abstand zum Text darunter */
	max-width: 400px;
}

/* Auf kleinen Handys sollte das Bild nicht mehr floaten, 
   da sonst kein Platz mehr für Text daneben ist */
@media (max-width: 600px) {
    .img-right {
        float: none;
        display: block;
        margin: 20px auto;
        width: 100% !important; /* Optional: Volle Breite auf Mobile */
    }

    .img-right-small-100-40 {
        float: none;
        display: block;
        margin: 20px auto;
        width: 40% !important; /* Optional: Volle Breite auf Mobile */
    }

	.img-left {
        float: none;
        display: block;
        margin: 20px auto;
        width: 100% !important; /* Optional: Volle Breite auf Mobile */
	}

	.img-left-small-400-70 {
        float: none;
        display: block;
        margin: 20px auto;
        width: 70%;
	}
}
.map-container {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Begrenzung auf deine Main-Breite */
    margin: 20px auto;
}

.responsive-map {
    width: 100%;
    height: auto;
    display: block;
}
/* Der Rahmen, der alles zusammenhält */
.map-wrapper {
    position: relative;
    display: inline-block; /* Sorgt dafür, dass der Container exakt so groß wie das Bild ist */
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Das Bild selbst */
.map-image {
    display: block;
    width: 100%;    /* Macht das Bild responsiv */
    height: auto;
    z-index: 1;     /* Bild liegt unten */
}

/* Die klickbaren Punkte */
.map-point {
    position: absolute;
    z-index: 100;     /* Punkte liegen über dem Bild */
    width: 26px;
    height: 26px;
    background-color: rgba(255, 0, 0, 0); /* Halbdurchsichtiges Rot */
    color: white;
    border: 0 solid white;
    border-radius: 50%;
    text-align: center;
    line-height: 22px; /* Zentriert die Zahl vertikal */
    font-size: 0;
    font-weight: bold;
    text-decoration: none;
    transform: translate(-50%, -50%); /* WICHTIG: Zentriert den Punkt auf der Koordinate */
}

.map-point:hover {
    background-color: rgba(255, 0, 0, 0); /* Deine Vereinsfarbe */
    transform: translate(-50%, -50%) scale(1.2);
}

/* Korrektur für Mobile: Der Header ist dort oft höher/niedriger */
@media (max-width: 768px) {
  body {
    padding-top: 60px !important;
  }
}

.video-container {
    position: relative !important;
    width: 100% !important;
    /* Nutze 90% bis 100% der verfügbaren 'main' Breite (1000px) */
    max-width: 800px !important; 
    margin: 20px auto !important;
    aspect-ratio: 16 / 9 !important;
    display: block !important;
}

.video-container iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.csecurity-hint {
    color: #DC0000;
    font-size: 0.9rem; /* Etwas größer als zuvor für bessere Lesbarkeit */
    line-height: 1.4;
    max-width: 1000px; /* Gleiche Breite wie das Video auf Desktop */
    margin: 10px auto; /* Zentriert den Text-Block */
    text-align: center;
    padding: 0 10px; /* Kleiner Puffer zum Rand auf Mobilgeräten */
}

/* Optional: Auf sehr kleinen Bildschirmen die Schrift noch etwas anpassen */
@media (max-width: 480px) {
    .csecurity-hint {
        font-size: 0.8rem;
    }
}

/* Nur innerhalb der Media Query für Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 17px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative; /* Wichtig für die Positionierung der Striche */
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform-origin: left center; /* Sanftere Drehung */
  }

  /* Animation zum "X" wenn die Klasse .active am Hamburger (oder Nav) ist */
  /* Wir nutzen hier .main-nav.active als Trigger, da dein JS das bereits umschaltet */
  .main-nav.active ~ .menu-toggle span:nth-child(1),
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: -2px;
    left: 5px;
  }

  .main-nav.active ~ .menu-toggle span:nth-child(2),
  .menu-toggle.active span:nth-child(2) {
    opacity: 0; /* Mittlerer Strich verschwindet */
  }

  .main-nav.active ~ .menu-toggle span:nth-child(3),
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 23px;
    left: 5px;
  }
}

@media (max-width: 768px) {
    /* WICHTIG: Überschreibt alle festen Mindestbreiten für Bilder auf Mobile */
    .img-left, 
    .img-right {
        min-width: 300px !important;      /* Hebt die starren Pixel-Werte auf */
        max-width: 100% !important;    /* Verhindert das Herausragen über den Rand */
        height: auto !important;       /* Behält das Seitenverhältnis bei */
    }

    /* Optional: Falls die Bilder auf dem Handy nicht mehr floaten sollen */
    .img-left, .img-right {
        float: none !important;
        margin: 10px auto !important;
        display: block !important;
    }
}
/* Zentrales Design für alle Sprüche */
.treppen-zelle {
    font-size: 14pt;
    font-weight: bold;
}

.spruch-zelle {
    font-family: Garamond, serif;
    font-size: 14pt;
    font-weight: bold;
    line-height: 1.4; /* Etwas mehr Zeilenabstand für bessere Lesbarkeit */
}

/* Der Autor-Name (rechtsbündig) */
.autor {
    float: right;
    font-style: italic;
    font-weight: normal; /* Optional: Autoren etwas dezentere Schriftstärke */
    margin-left: 15px;
}

/* --- MOBILE ANPASSUNG --- */
@media screen and (max-width: 600px) {
    .treppen-zelle {
        font-size: 11pt !important;
    }
    .spruch-zelle {
        font-size: 11pt !important; /* Das !important "gewinnt" gegen das STYLE="..." im HTML */
    }
}

/* --- REGELN NUR FÜR DIE TREPPEN-TABELLE --- */

/* Auf Desktop: Spaltenbreite der 1. Spalte begrenzen */
.treppen-tabelle td:first-child {
    width: 200px;
}

/* --- MOBILE ANPASSUNG (nur für diese Tabelle) --- */
@media screen and (max-width: 600px) {
    
    /* Nur Tabellen mit der Klasse 'treppen-tabelle' werden beeinflusst */
    table.treppen-tabelle {
        table-layout: fixed;
        width: 100% !important;
    }

    /* Die erste Spalte in DIESER Tabelle schmal machen */
    .treppen-tabelle td:first-child {
        width: 80px !important; /* Hier sparst du den Platz */
        padding: 5px 2px !important;
        vertical-align: top;
    }

    /* Die zweite Spalte nutzt den Rest */
    .treppen-tabelle td:last-child {
        width: auto !important;
    }

    /* Textgrößen nur innerhalb dieser Tabelle anpassen */
    .treppen-tabelle .treppen-zelle {
        font-size: 10pt !important;
    }
    .treppen-tabelle .spruch-zelle {
        font-size: 11pt !important;
    }
}

.history-table tr {
    cursor: default !important;
}

/* --- Desktop-Layout (Standard) --- */
.info-sektion {
    display: flex;           /* Erzeugt das Nebeneinander-Layout */
    flex-direction: row;     /* Elemente stehen horizontal */
    align-items: flex-start; /* Ausrichtung an der Oberkante */
    gap: 0;               /* Abstand zwischen Text und Bild */
    margin-bottom: 0;      /* Abstand zur nächsten Sektion */
    width: 100%;
}

.info-text {
    flex: 1;                 /* Der Text nutzt den restlichen Platz */
    font-family: Arial, Helvetica, sans-serif; /* Deine gewohnte Schrift */
    font-size: 12pt;
    text-align: center;
}

.info-text-left {
    flex: 1;                 /* Der Text nutzt den restlichen Platz */
    font-family: Arial, Helvetica, sans-serif; /* Deine gewohnte Schrift */
    font-size: 12pt;
    text-align: center;
}

.info-bild {
    flex: 0 0 500px;         /* Bild behält feste Breite auf Desktop */
    text-align: center;
}

.info-bild img {
    max-width: 100%;         /* Verhindert, dass das Bild ausbricht */
    height: auto;
    border: 1px solid #ccc;  /* Optional: Ein feiner Rahmen */
}

/* --- Mobile-Layout (Anpassung für Handys) --- */
@media screen and (max-width: 768px) {
    .info-sektion {
        flex-direction: column; /* Stapelt Text oben, Bild unten */
        gap: 15px;
    }

    .info-bild {
        flex: 0 0 auto;
        width: 100%;
        text-align: center;      /* Bild auf Mobile mittig */
    }

.info-text {
        width: 100% !important;   /* Sicherstellen, dass der Text die volle Breite nutzt */
        text-align: center !important; /* Den Textinhalt zentrieren */
        display: block;            /* Als Block-Element behandeln */
        padding: 15px 0;           /* Oben/Unten Abstand, links/rechts 0 für saubere Zentrierung */
    }

    /* Falls du Überschriften wie <B> verwendest, diese ebenfalls zentrieren */
    .info-text b, .info-text strong {
        display: inline-block;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Auf dem Desktop wird der Umbruch ganz normal ausgeführt */
.mobile-hide-br {
    display: inline;
}

/* Auf dem Handy wird der Umbruch ignoriert */
@media screen and (max-width: 768px) {
    .mobile-hide-br {
        display: none !important;
    }
}

.bold-inline {
    display: inline !important;
}

/* --- Modernes Ersatz-Layout für das alte <center> --- */
.table-row-wrapper {
    display: block !important;
    text-align: center; /* Zentriert die Tabellen horizontal */
    width: 100%;
    margin: 20px 0;
}

/* Die Tabellen nebeneinander platzieren */
.table-row-wrapper .stack-table {
    display: inline-table !important; /* Erlaubt Nebeneinanderstehen */
    vertical-align: top;             /* Bilder oben bündig ausrichten */
    width: 47.5% !important;           /* Zwei passen nebeneinander */
    margin: 10px !important;
    border-collapse: collapse;
}

/* --- Cursor-Fix: Pointer deaktivieren --- */
/* Deaktiviert den Zeiger für die Zeilen, Zellen, Links und Bilder in diesem Bereich */
/* --- Cursor-Fix: Pointer deaktivieren für Struktur --- */
.table-row-wrapper .stack-table tr,
.table-row-wrapper .stack-table td {
    cursor: default !important;
}

/* --- Pointer NUR für Links und Bilder innerhalb von Links aktivieren --- */
.table-row-wrapper .stack-table a,
.table-row-wrapper .stack-table a img {
    cursor: pointer !important;
}

/* --- Sicherstellen, dass Bilder OHNE Link keinen Pointer haben --- */
.table-row-wrapper .stack-table :not(a) > img {
    cursor: default !important;
}
/* --- Mobile Anpassung (Handy) --- */
@media screen and (max-width: 768px) {
    .table-row-wrapper .stack-table {
        display: table !important;    /* Untereinander stapeln */
        width: 95% !important;        /* Fast volle Breite */
        margin: 10px auto !important; /* Zentrieren */
    }
}
