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

body {
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #222;
  line-height: 1.6;
}

.header {
  background: #097E60;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  max-width: 1500px;
  margin: auto;
  padding: 18px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  color: #ffd166;
}

.login-btn {
  background: #ffd166;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.login-btn:hover {
  background: #fcbf49;
}

.hero {
    min-height: 78vh;

    /* Bild */
    background:
        linear-gradient(
            rgba(22,45,68,0.55),
            rgba(22,45,68,0.55)
        ),
        url("../fonts/Mitglieder.png");

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

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    color: white;
    padding: 80px 30px;
}
.hero-content h1 {
    font-size: 56px;
    text-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

.hero-content p {
    font-size: 24px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.hero-btn {
  background: #ffd166;
  color: #097E60;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
}

.section {
  max-width: 1200px;
  margin: auto;
  padding: 70px 25px;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #097E60;
}

.light {
  background: white;
  max-width: 100%;
}

.light h2 {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 380px));
    gap: 30px;
    justify-content: center;
}
.post-card {
    position: relative;
    background: #fff;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    width: 380px;
    /* Neuer Akzent */
    border-left: 6px solid #097E60;

    transition: 0.25s ease;
}
.post-card h3 {
  margin-bottom: 10px;
  color: #097E60;
}

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

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 15px;
  }

  .nav-links {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .hero-content h1 {
    font-size: 30px;
  }
}

.impressum-box {
    background: white;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-top: 25px;
}

.impressum-box h2 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: #097E60;
}

.impressum-box p {
    margin-bottom: 18px;
}

.impressum-box a {
    color: #097E60;
    text-decoration: none;
    font-weight: 600;
}

.form-box {
    background: white;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-top: 25px;
}

.form-box form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-box input,
.form-box textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccd6dd;
    border-radius: 8px;
    font-size: 16px;
}

.form-box textarea {
    resize: vertical;
}

.checkbox-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
}

.checkbox-label input {
    width: auto;
    margin-top: 4px;
}

.submit-btn {
    background: #097E60;
    color: white;
    border: none;
    padding: 13px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.submit-btn:hover {
    background: #1f4568;
}

.message {
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
}
.footer {
    background: #097E60;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.footer a {
    color: white;
    text-decoration: none;
    display: inline-block;
    margin: 6px 0;
    transition: 0.2s;
}

.footer a:visited {
    color: white;
}

.footer a:hover {
    color: #ffd166;
}

.footer a:active {
    color: #ffd166;
}
.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}
.small-hero {
    min-height: 35vh;
}

.delete-form {
    margin-top: 18px;
}

.delete-btn {
    background: #b91c1c;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.delete-btn:hover {
    background: #7f1d1d;
}

.small-hero {
    min-height: 35vh;
}

.privacy-nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e6e6e6;
}

.privacy-nav a {
    color: #097E60;
    text-decoration: none;
    font-weight: 600;
}

.privacy-nav a:hover {
    color: #ffd166;
}

.privacy-list {
    margin-left: 20px;
    line-height: 1.9;
}

.post-card {
    position: relative;
}

.delete-form {
    position: absolute;
    top: 18px;
    right: 18px;
}

.delete-icon-btn {
    background: #b91c1c;
    color: white;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-icon-btn:hover {
    background: #7f1d1d;
    transform: scale(1.05);
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 95px;
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 80px;
    flex-shrink: 0;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;

    /* Keine künstliche Box */
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;

    transition: 0.25s ease;
}

.header-logo img:hover {
    transform: scale(1.04);
}
.login-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.login-modal.active {
    display: flex;
}

.login-modal-content {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 35px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.login-modal-content h2 {
    color: #102a43;
    margin-bottom: 20px;
}

.login-modal-content form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-modal-content input {
    padding: 12px;
    border: 1px solid #ccd6dd;
    border-radius: 8px;
    font-size: 16px;
}

.login-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.login-register-link {
    margin-top: 18px;
}

.about-section {
    padding-top: 90px;
    padding-bottom: 90px;
}

.about-card {
    background: white;
    padding: 45px;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    border-left: 6px solid #097E60;
}

.section-label {
    display: inline-block;
    color: #097E60;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-size: 14px;
}

.about-card h2 {
    color: #097E60;
    font-size: 34px;
    margin-bottom: 25px;
}

.about-card p {
    font-size: 17px;
    margin-bottom: 18px;
    color: #333;
}

.about-highlight {
    background: #e8f6f1;
    color: #097E60;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 700;
    margin: 28px 0;
}

.post-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.post-images a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
}

.post-images img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
    transition: 0.2s ease;
}

.post-images img:hover {
    transform: scale(1.04);
}

.post-title-link {
    color: #097E60;
    text-decoration: none;
}

.post-title-link:hover {
    text-decoration: underline;
}

.single-post {
    background: white;
    padding: 45px;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    border-left: 6px solid #097E60;
}

.single-post h1 {
    color: #097E60;
    font-size: 42px;
    margin-bottom: 10px;
}

.post-meta {
    color: #666;
    margin-bottom: 30px;
}

.single-post-content {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 35px;
}

.single-post-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.single-post-gallery a {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
}

.single-post-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: 0.2s ease;
}

.single-post-gallery img:hover {
    transform: scale(1.04);
}

.back-link {
    display: inline-block;
    margin-bottom: 25px;
    color: #097E60;
    text-decoration: none;
    font-weight: bold;
}
.edit-post-box {
    margin: 25px 0;
}
.download-card {
    margin-top: 25px;
    background: #f7faf9;
    border-left: 6px solid #097E60;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.06);
}

.download-btn {
    background: #097E60;
    color: white;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.2s ease;
    white-space: nowrap;
}

.download-btn:hover {
    background: #065f46;
    transform: translateY(-2px);
}
.post-preview-card {
    overflow: hidden;
    padding: 0;
}

.post-preview-image {
    display: block;
    width: 100%;
    height: 190px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.post-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-preview-content {
    padding: 28px;
}

.post-preview-content h3 {
    margin-bottom: 12px;
}

.post-preview-content small {
    display: block;
    margin-bottom: 18px;
}

.read-more-btn {
    display: inline-block;
    background: #097E60;
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: bold;
}

.read-more-btn:hover {
    background: #065f46;
}
.cover-select-box {
    margin: 25px 0;
}

.cover-select-box > label {
    display: block;
    font-weight: bold;
    margin-bottom: 12px;
}

.cover-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.cover-option {
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 10px;
    cursor: pointer;
    background: white;
    transition: 0.2s ease;
}

.cover-option input {
    margin-bottom: 8px;
}

.cover-option img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 8px;
}

.cover-option span {
    font-size: 14px;
    font-weight: bold;
    color: #097E60;
}

.cover-option:has(input:checked) {
    border-color: #097E60;
    box-shadow: 0 0 0 3px rgba(9,126,96,0.15);
}
.gallery-admin-item {
    position: relative;
}

.gallery-delete-form {
    position: absolute;
    top: 10px;
    right: 10px;
}