
/*
Theme Name: Wachenfunk Theme v4.2 erweitert
Version: 4.2.3
*/

/* ===== Basislayout ===== */
body {
  font-family: 'Inter', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  margin: 0;
}

.site-wrapper {
  max-width: 1024px;
  margin: auto;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.site-main {
  padding: 1rem;
}

/* ===== Navigation ===== */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.site-nav ul li {
  display: inline;
}

.site-nav ul li a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  padding: 0.3rem 0.2rem;
}

.site-nav ul li a:hover,
.site-nav .current-menu-item a {
  color: #BF4230;
  border-top: 2px solid #BF4230;
  border-bottom: 2px solid #BF4230;
}

.site-main p a,
.site-main li a,
.site-main .text-content a {
  color: #333;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-main p a:hover,
.site-main li a:hover,
.site-main .text-content a:hover {
  color: #BF4230;
  border-bottom: 2px solid #BF4230;
}

/* Benutzer-Vertikalmenü */
.user-submenu {
  list-style: none;
  margin-top: 1rem;
  padding: 0;
  text-align: right;
}

.user-submenu li {
  margin: 0rem 0;
}

.user-submenu li a {
  color: #ccc;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  padding: 0.2rem 0;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
}

.user-submenu li a:hover,
.user-submenu .current-menu-item a {
  color: white;
  border-top: 2px solid white;
  border-bottom: 2px solid white;
  font-weight: bold;
}

.user-links a,
.user-submenu-link a {
  color: #ccc;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  padding: 0.2rem 0;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
}

.user-links a:hover,
.user-submenu-link a:hover {
  color: white;
  border-top: 2px solid white;
  border-bottom: 2px solid white;
  font-weight: bold;
}

/* ===== Footer ===== */
footer {
  text-align: left;
  padding-left: 1rem;
}

/* ===== Info-Kästen ===== */
.info-box-wrapper {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.info-box {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
  flex: 1 1 30%;
}

.info-funkwetter, .info-termine {
  background-color: #E9F7EF;
}

.info-wichtig {
  background-color: #FADBD2;
  border-left: 6px solid #BF4230;
}

.info-gelb {
  background-color: #FFF8DC;
  border-left: 6px solid #f1c40f;
}
.info-gruen {
  background-color: #E9F7EF;
  border-left: 6px solid #2ecc71;
}

.info-box h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.2;
}

.info-box h3 i {
  color: #BF4230;
  font-size: 1.2rem;
}

/* ===== Blog Layout ===== */
.blog-layout aside h3 {
  margin-top: 1rem;
  font-size: 1.1rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.3rem;
}

.blog-layout aside ul {
  list-style: none;
  padding: 0;
}

.blog-layout aside ul li {
  margin: 0.3rem 0;
}

/* ===== Beitrags-Vorschau ===== */
.post-preview, .beitragskarte {
  display: flex;
  gap: 1rem;
  background-color: #f4f4f4;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.post-preview img,
.beitragsbild img {
  width: 200px;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.beitragsbild img {
  display: block;
  margin-bottom: 0;
}

.beitrags-trennlinie {
  border: none;
  border-top: 1px solid #ccc;
  margin: 1.5rem 0;
}

.post-preview .post-content,
.beitragstext {
  flex: 1;
}

.beitragstext {
  margin-top: 0;
}

.post-content h3,
.beitragstext h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
}

.post-content p,
.beitragstext p {
  margin: 0 0 0.3rem 0;
}

.post-content time,
.beitragstext small {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.post-content a,
.beitragstext h3 a {
  color: #4A148C;
  font-weight: bold;
  text-decoration: underline;
}

.post-content a:hover,
.beitragstext h3 a:hover {
  color: #BF4230;
  text-decoration: none;
}

img.placeholder {
  background: #aaa;
  width: 200px;
  height: 150px;
  display: block;
}

.beitragsliste {
  margin-top: 1rem;
}

.beitragsbild {
  flex: 0 0 200px;
}

/* ===== Kontaktformular ===== */
.kontaktformular {
  max-width: 600px;
  margin: 2rem 0;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.kontaktformular label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #333;
}

.kontaktformular input,
.kontaktformular textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

.kontaktformular textarea {
  resize: vertical;
  min-height: 150px;
}

.kontaktformular button[type="submit"] {
  background-color: #146132;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.kontaktformular button[type="submit"]:hover {
  background-color: #0f4d28;
}

/* ===== Uhrzeit-Anzeige ===== */
#clock-display {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 1.2rem;
  color: white;
  font-weight: bold;
  z-index: 10;
}

/* ===== Responsive Optimierung ===== */
@media (max-width: 768px) {
  .site-main,
  .kontaktformular {
    padding: 0.75rem;
  }

  .drei-boxen,
  .info-kacheln,
  .post-preview,
  .beitragskarte,
  .blog-layout {
    flex-direction: column;
  }

  .post-preview img,
  .beitragsbild {
    width: 100%;
  }

  .blog-layout aside {
    margin-top: 2rem;
    padding: 1rem;
    background: #f0f0f0;
    width: 100%;
  }

  .desktop-only {
    display: none !important;
  }

  .site-nav ul {
    gap: 0.5rem;
  }

  .site-nav ul li a {
    font-size: 0.95rem;
  }
}

/* Blende Elemente auf Mobilgeräten (<768px) ein */
.mobile-only {
  display: none;
}

@media (max-width: 767px) {
  .mobile-only {
    display: block;
  }

  .sidebar-right,
  .site-sidebar,
  aside,
  .widget-area {
    display: none !important;
  }
}

@media (max-width: 375px) {
  .site-header img {
    height: 130px;
  }

  #utc-time,
  .clock-time {
    font-size: 0.7rem;
  }
}

@media (max-width: 360px) {
  .site-nav ul li a {
    font-size: 0.8rem;
    padding: 0.2rem 0.1rem;
  }
}

/* Suchformular in Info-Box */
.info-box .search-form {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search-form input[type="submit"] {
  padding: 0.5rem 1rem;
  background-color: #BF4230;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.search-form input[type="submit"]:hover {
  background-color: #8c2e21;
}

.search-field {
  flex: 1 1 auto;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 200px;
}

.search-button {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  background-color: #026A19;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background-color: #038C3E;
}

.schnellzugriff-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}

.quicklink-button {
  display: block;
  text-align: center;
  padding: 0.5rem 0.8rem;
  background-color: #026A19;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  font-size: 0.95rem;
}

.quicklink-button:hover {
  background-color: #038C3E;
}

@media (max-width: 500px) {
  .schnellzugriff-links {
    grid-template-columns: 1fr;
  }
}

/* === Wiki-Boxen Übersicht === */
.wiki-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.wiki-box {
  display: block;
  background: #f9f9f9;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.wiki-box:hover {
  background: #fff2f2; /* sanfter Hover-Ton */
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.wiki-box h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
  color: #4A148C;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wiki-box:hover h3 {
  color: #BF4230;
}

.wiki-box h3 a {
  text-decoration: none;
  color: inherit;
}

.wiki-box p {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: #333;
}

.wiki-box:focus,
.wiki-box:active {
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 20, 140, 0.2);
}

.wiki-box h3 i {
  font-size: 1rem;
  color: #BF4230;
}

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

/* Formatierte Inhalts-Links in Überschriften */
h3 a {
  color: #4A148C; /* Alternativ: Menüfarbe */
  text-decoration: none;
  font-weight: bold;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  display: inline-block;
  padding: 0.2rem 0;
  transition: all 0.2s ease;
}

h3 a:hover {
  color: #BF4230; /* Hover-Farbe wie im Menü */
  border-top: 2px solid #BF4230;
  border-bottom: 2px solid #BF4230;
}

.entry-content a {
  color: #4A148C;
  text-decoration: none;
  font-weight: bold;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  padding: 0.2rem 0;
  transition: all 0.2s ease;
}

.entry-content a:hover {
  color: #BF4230;
  border-top: 2px solid #BF4230;
  border-bottom: 2px solid #BF4230;
}


.float-left {
    float: left;
    margin: 0 15px 15px 0;
    max-width: 40%;
}
.float-right {
    float: right;
    margin: 0 0 15px 15px;
    max-width: 40%;
}


/* Beitragskarte Bild */
.beitragsbild {
  flex: 0 0 200px;
}

.beitragsbild img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  margin-bottom: 0;
}

/* Beitragskarte Layout */
.beitragskarte {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  background-color: #f4f4f4;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.beitragstext {
  margin-top: 0;
}

/* Beitragskarte Überschrift (Link) */
.beitragstext h3 a {
  color: #330066;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  padding: 0.2rem 0;
  transition: all 0.3s ease;
}

.beitragstext h3 a:hover {
  border-top: 2px solid #330066;
  border-bottom: 2px solid #330066;
}

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

  .beitragsbild {
    flex: 0 0 auto;
    width: 100%;
  }
}

.blog-layout {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.blog-main {
  flex: 3;
  min-width: 0;
}

.blog-sidebar {
  flex: 1;
  background: #f4f4f4;
  padding: 1.5rem;
  border-radius: 8px;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-section h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.25rem;
}

.sidebar-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-section li {
  margin-bottom: 0.3rem;
}

.sidebar-section a {
  color: #330066;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.sidebar-section a:hover {
  border-bottom: 1px solid #330066;
}

/* Beitragskarten wie auf Startseite */
.beitragskarte {
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.beitragstext h2 a {
  color: #330066;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  padding: 0.2rem 0;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.beitragstext h2 a:hover {
  border-top: 2px solid #330066;
  border-bottom: 2px solid #330066;
}

@media (max-width: 768px) {
  .blog-layout {
    flex-direction: column;
  }

  .blog-sidebar {
    order: 2;
  }
}

.blog-sidebar form.search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.blog-sidebar .search-field {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.blog-sidebar .search-submit {
  padding: 0.5rem 1rem;
  background-color: #330066;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.blog-sidebar .search-submit:hover {
  background-color: #500099;
}

.blog-sidebar .tagcloud a {
  display: inline-block;
  background: #e0e0e0;
  color: #333;
  font-size: 0.95rem !important;
  padding: 0.3rem 0.6rem;
  margin: 0.2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-sidebar .tagcloud a:hover {
  background: #330066;
  color: white;
}

.blog-sidebar form.search-form {
  position: relative;
  margin-bottom: 1.5rem;
}

.blog-sidebar .search-field {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  background: white url('data:image/svg+xml;utf8,<svg fill="%23999" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 14h-.79l-.28-.27a6.471 6.471 0 0 0 1.48-5.34C15.2 5.52 12.68 3 9.5 3S3.8 5.52 3.8 8.8c0 3.28 2.52 5.8 5.7 5.8 1.61 0 3.07-.66 4.1-1.73l.27.28v.79l4.25 4.25c.39.39 1.03.39 1.42 0l.02-.02a1 1 0 0 0 0-1.42L15.5 14zM9.5 13c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z"/></svg>') no-repeat 0.75rem center;
  background-size: 1rem 1rem;
}

.blog-sidebar .search-field::placeholder {
  color: #aaa;
  font-style: italic;
}

.blog-sidebar .search-submit {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.5rem;
  background-color: #330066;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.blog-sidebar .search-submit:hover {
  background-color: #500099;
}

.blog-sidebar form.search-form {
  position: relative;
  display: flex;
}

.blog-sidebar .search-field {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
  background: white;
}

.blog-sidebar .search-submit {
  background-color: #330066;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.blog-sidebar .search-submit:hover {
  background-color: #500099;
}

.blog-sidebar .search-submit i {
  pointer-events: none;
}

/* Markierte Treffer */
mark {
  background-color: #fffb91;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: bold;
}

/* =====================================
   Filterleiste (Suche, Kategorie, Ansicht)
===================================== */
.wf-download-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.wf-download-filter input[type="text"],
.wf-download-filter select,
.wf-download-filter .wf-toggle-view {
  height: 40px;
  padding: 0 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.wf-download-filter input[type="text"] {
  flex: 1 1 180px;
  min-width: 150px;
}

.wf-download-filter select {
  flex: 0 1 180px;
  min-width: 150px;
}

.wf-download-filter .wf-toggle-view {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f2f2f2;
  cursor: pointer;
  transition: background 0.3s ease;
  border: 1px solid #ccc;
}

.wf-download-filter .wf-toggle-view:hover {
  background: #e0e0e0;
}

.wf-download-filter .wf-toggle-view .icon {
  font-size: 1.25rem;
}

/* =====================================
   Allgemeines
===================================== */
.wf-download-cat-heading {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 2rem 0 1rem 0;
  color: #333;
}

.wf-nothing {
  margin-bottom: 1rem;
  font-style: italic;
  color: #777;
}

.wf-download-item {
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: background-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.wf-download-item:hover {
  background-color: #f1f1f1;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.wf-download-icon {
  font-size: 2rem;
}

.wf-download-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

/* =====================================
   Inhalte & Beschreibung
===================================== */
.wf-download-info {
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.wf-download-description {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.5rem;
}

.wf-download-output.grid .wf-download-description,
.wf-download-output.grid .wf-download-meta.filename,
.wf-download-output.grid .wf-download-meta.count {
  display: none;
}

/* =====================================
   Metadatenzeilen
===================================== */
.wf-download-meta {
  font-size: 0.85rem;
  color: #666;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.3rem 0;
}

.wf-download-meta.filename {
  gap: 0.5rem;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.wf-download-meta .meta-icon {
  font-size: 1rem;
  color: #888;
}

.wf-download-meta .meta-text {
  font-size: 0.9rem;
}

.wf-download-meta.filename a {
  word-break: break-word;
  max-width: 100%;
}

/* =====================================
   Downloadbutton + Größe
===================================== */
.wf-download-button {
  display: inline-block;
  background-color: #026A19;
  color: white;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.wf-download-button:hover {
  background-color: #038C3E;
}

.wf-download-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
  margin-top: 0.5rem;
  justify-content: flex-start;
}

.wf-download-actions .wf-download-button {
  flex-shrink: 0;
  white-space: nowrap;
}

.wf-download-actions .wf-download-meta.size {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* =====================================
   Tabellen- vs. Blockansicht
===================================== */
.wf-download-output.table .wf-download-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.wf-download-output.grid .wf-download-item {
  display: inline-block;
  width: calc(50% - 1rem);
  padding: 0.8rem;
  font-size: 0.85rem;
  margin: 0.5rem;
  vertical-align: top;
  box-sizing: border-box;
}

/* Responsive (mobil) */
@media (max-width: 700px) {
  .wf-download-output.grid .wf-download-item {
    width: 100%;
    margin: 0.5rem 0;
  }
}

@media (max-width: 600px) {
  .wf-download-output.grid .wf-download-actions,
  .wf-download-actions {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .wf-download-output.grid .wf-download-button + .wf-download-meta.size {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

/* Sichtbarkeit für Tabellenansicht */
.wf-download-output.grid .wf-only-table {
  display: none;
}

/* Link-Styling */
.wf-download-link {
  color: #0066cc;
  text-decoration: none;
}

.wf-download-link:hover {
  text-decoration: underline;
}

.wf-download-cat-wrapper {
  padding: 0;
  border: none;
  background: transparent;
  margin-bottom: 2rem;
}


/* === Allgemein === */
.beitragsliste-karte {
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.beitragsliste-inhalt {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.beitragsliste-bild {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
}

.beitragsliste-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.beitragsliste-text {
  flex: 1;
  margin-top: 0; /* Kein Versatz */
}

.beitragsliste-karte h2 {
  margin: 0;
  font-size: 1.3rem;
}

.beitragsliste-karte h2 a {
  color: #330066;
  text-decoration: none;
  font-weight: bold;
  padding: 0.2rem 0;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  display: inline-block;
}

.beitragsliste-karte h2 a:hover {
  border-top: 2px solid #330066;
  border-bottom: 2px solid #330066;
}

.beitragsliste-datum {
  color: #777;
  font-size: 0.9rem;
  margin-top: 0.2rem;
  margin-bottom: 0.8rem;
}

/* === Mobil: max. 768px === */
@media (max-width: 768px) {
  .beitragsliste-inhalt {
    flex-direction: row;
    align-items: flex-start;
  }

  .beitragsliste-bild {
    width: 80px;
    height: 80px;
    margin-right: 0.75rem;
  }

  .beitragsliste-text {
    flex: 1;
  }

  .beitragsliste-karte h2 {
    font-size: 1.1rem;
  }

  .beitragsliste-datum {
    font-size: 0.8rem;
  }
}

.sdr-glossar h3 {
    color: #BF4230;
    margin-top: 20px;
}

.sdr-glossar p {
    margin-bottom: 10px;
}

.custom-login-form {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

.custom-login-form h2 {
    color: #BF4230;
    margin-bottom: 10px;
    text-align: center;
}

.custom-login-form .login-info {
    font-size: 0.9em;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.custom-login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.custom-login-form input[type="text"],
.custom-login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.custom-login-form input[type="text"]:focus,
.custom-login-form input[type="password"]:focus {
    border-color: #BF4230;
    outline: none;
    background-color: #f9f9f9;
}

.custom-login-form .remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.custom-login-form .remember-me input[type="checkbox"] {
    margin: 0 8px 0 0;
}

.custom-login-button {
    background-color: #BF4230;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
    font-size: 1em;
}

.custom-login-button:hover {
    background-color: #933327;
}

.custom-login-footer {
    margin-top: 15px;
    font-size: 0.9em;
    text-align: center;
}

.custom-login-footer a {
    color: #BF4230;
    text-decoration: none;
}

.custom-login-footer a:hover {
    text-decoration: underline;
}
