/* Grundlayout */
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fdfcf2;
    color: #333;
    min-width: 520px;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
img {
    width: 100%;
    height: auto;
    max-width: 800px;
    border-radius: 8px;
}

/* Titelzeile (Header) */
header {
    background: #6a8e3c;
    color: white;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Navigation rechts neben Titel */
    padding: 1rem 0;
}
header h1 {
    font-size: 2rem;
    margin: 0;
    white-space: nowrap;
}
.header-inner h1 {
    padding-right: 30px;
}

/* Navigation */
nav {
    background: transparent;
}
.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}
.nav-list li {
    position: relative;
    margin: 0 1rem;
}
.nav-list a {
    display: inline-block;
    padding: 0.5em 1em;
    text-decoration: none;
    background-color: transparent;
    color: #000;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.nav-list a:hover {
    background-color: #b6d084;
    color: #fff;
}

/* Aktiver Men?punkt */
.nav-list li.active > a,
.nav-list a.active {
    background-color: #8fae58;
    color: #fff;
}

/* Dropdown-Men?s */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #e0e0e0;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
}
.dropdown-content li a {
    display: block;
    padding: 0.5rem 1.5rem;
    white-space: nowrap;
}
.dropdown:hover .dropdown-content {
    display: block;
}

/* Hero-Bereich */
.hero {
    position: relative;
    margin: 2rem 0;
}
.hero-text {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255,255,255,0.8);
    padding: 1rem;
    border-radius: 8px;
    max-width: 280px;
    font-size: 1.2rem;
}
.hero-text p {
    margin: 0;
}

/* Aktuelles-Box als Overlay auf Bild */
.aktuelles {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(232,245,212,0.8);
    padding: 2rem;
    border-radius: 8px;
    max-width: 480px;
    width: 90%;
    z-index: 2;
}
.aktuelles h2 {
    margin-top: 0;
    font-size: 1.5rem;
}
.aktuelles ul {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 1.1rem;
}
@media (max-width: 1000px) {
  .aktuelles {
      position: static;
  }
}

.fixedwidth {
    overflow: auto;
    margin-bottom: 2rem;
}
.fixedwidth img {
  width: 100%;
  height: auto;
  float: left;
  margin: 0 1rem 1rem 0;
}
.fixedwidth h3 {
    margin-top: 0;
}
.contentpage p,
.contentpage ul,
.contentpage .fixedwidth p {
    font-size: 1.2em;
    max-width: 800px;
    line-height: 1.5;
}

.contentpage-smaller p,
.contentpage-smaller ul,
.contentpage-smaller .fixedwidth p {
    font-size: 1.1em;
    max-width: 800px;
    line-height: 1.5;
}

.contentpage .signature,
.contentpage-smaller .signature {
  overflow: auto;      /* enth?lt die floats */
  max-width: 800px;    /* gleiche Breite wie der Text dar?ber */
  margin-top: 1rem;    /* etwas Abstand nach oben */
}

.contentpage .signature img,
.contentpage-smaller .signature img {
  float: right;        /* Bild rechts positionieren */
  margin: 0 0 1rem 1rem; /* Abstand: oben, rechts, unten, links */
  height: 400px;       /* feste H?he wie im HTML */
  width: auto;         /* Breite proportional anpassen */
}

.contentpage .signature p,
.contentpage-smaller .signature p {
  margin: 0;           /* keine zus?tzlichen Abst?nde */
  line-height: 1.5;
}

.inline {
    display: inline;
}

/* Intro Abschnitt */
.intro {
    margin: 2rem 0;
}

/* Footer */
footer {
    background: #ddd;
    text-align: center;
    padding: 1rem 0;
}

/* Hilfsklasse */
.nowrap {
    white-space: nowrap;
}

/* Flexibles Event-Table-Layout */
.event-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    white-space: nowrap;
}
.event-table th,
.event-table td {
    padding: 0.2rem;
    text-align: left;
    vertical-align: top;
}
.event-table th {
    border-bottom: 1px solid #ccc;
}
.event-table td:nth-child(2) {
    font-weight: bold;
}
.event-table .highlight {
    background-color: #fef3c7;
    font-weight: bold;
}
.event-table tr.highlight td:last-child {
    position: relative;
    padding-right: 1.5em;
}
/*.event-table tr.highlight td:last-child::after {
    content: "❗";
    position: absolute;
    right: 0;
    top: 0;
    color: #b91c1c;
    font-weight: bold;
}*/
/*
            table.event-table {
                width: 100%;
                border-collapse: collapse;
                margin: 1rem 0;
            }
            table.event-table th,
            table.event-table td {
                padding: 0.2rem;
                text-align: left;
                vertical-align: top;
            }
            table.event-table th {
                border-bottom: 1px solid #ccc;
            }
            table.event-table td:nth-child(2) {
                font-weight: bold;
            }
*/