/* ================================================
   EMK BREMEN - CUSTOM CSS
   Simple Theme Overrides
   ================================================ */

/* ===== CSS VARIABLEN ===== */
:root {
  --emk-rot:    #dc3545;
  --emk-grau:   #6c757d;
  --emk-text:   #29271d;
  --emk-orange: rgba(255, 136, 48, 0.9);
  --emk-gelb:   #f8bf56;
  --emk-beige: rgba(247, 233, 223, 0.8);
}


/* ===== TYPOGRAFIE & GRUNDSTIL ===== */
body {
  font-family: Arial, Helvetica, sans-serif !important;
  color: var(--emk-text);
}

/* ab 01.01.2027: body { font-family: Roboto, sans-serif !important; }*/

a:hover {
  color: var(--emk-rot);
}

hr {
  border: none !important;
  border-top: 1px solid #e0e0e0 !important;
  margin: 1.5em 0 !important;
}

hr::before,
hr::after {
  display: none !important;
  content: none !important;
}

p {
  margin-top: 24px;
}
/* ===== RESET & BASIS ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--emk-text);
  background: #ffffff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--emk-text);
  text-decoration: none;
}

a:hover {
  color: var(--emk-rot);
}

ul {
  list-style: none;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.site-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header > a img {
  height: 72px;
  width: auto;
}

/* ===== NAVIGATION ===== */
nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav ul li a {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--emk-text);
  text-decoration: none;
  white-space: nowrap;
}

nav ul li a:hover {
  color: var(--emk-rot);
}

/* Home-Icon */
nav ul li:first-child a {
  display: flex;
  align-items: center;
}

nav ul li:first-child a img {
  height: 37px;
  width: 37px;
  object-fit: contain;
}

/* ===== CONTENT-BEREICH ===== */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto 20px auto;
  padding: 0 24px;
}

.content-uu {
  padding-top: 30px;
}

/* ===== HERO (Unterseiten) ===== */
.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45%;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(2px);
  padding: 12px 24px;
  z-index: 5;
}

.hero__content h1 {
  font-size: 1.4rem;
  margin: 0;
  color: var(--emk-text);
}

/* ===== MOBIL: NAVIGATION ===== */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 12px;
  }
}


}

/* ===== STARTSEITE: WILLKOMMENSBEREICH ===== */
.emk-welcome {
  display: grid !important;
  grid-template-columns: 1fr 40% !important;
  gap: 32px;
  align-items: start;
  position: relative;
  z-index: 10 !important;
  margin-top: -100px;
  padding-right: 50px;
  box-sizing: border-box;
}

.emk-welcome-text {
  padding-top: 100px;
}

.emk-welcome-text h1 {
  font-size: 1.6rem;
  color: var(--emk-text);
  margin-bottom: 12px;
  padding-top: 30px;
}

/* ===== SLIDER: KEIN OVERFLOW ===== */
.emk-slider {
  overflow: hidden;
}

body {
  overflow-x: hidden;
}

/* ===== ORANGE BOX (Nächste Termine) ===== */
.orangebox {
  background-color: var(--emk-orange);
  color: #ffffff;
  border: none;
  border-radius: 0 1em 1em 1em;
  padding: 1.5em;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  backdrop-filter: blur(2px);
}

.orangebox .widget-title,
.orangebox h2,
.orangebox h3 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 1em;
}

.orangebox a {
  color: #ffffff !important;
  text-decoration: underline;
}

.orangebox a:hover {
  color: #ffe0c0 !important;
  text-decoration: underline;
}

.orangebox hr {
  display: block !important;
  border: none !important;
  border-top: 1px solid rgba(255,255,255,0.4) !important;
  margin: 0.8em 0 !important;
}

/* ===== HERO SLIDER ===== */
.emk-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 0;
}

.emk-slides {
  position: relative;
  width: 100%;
}

.emk-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.emk-slide.aktiv {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.emk-slide img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.emk-slide-inhalt {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 40px;
  box-sizing: border-box;
    padding-left: max(24px, calc((100% - 1200px) / 2 + 24px));
}

.emk-slide-box {
  background-color: var(--emk-beige);
  backdrop-filter: blur(2px);
  padding: 24px 32px;
  max-width: 320px;
  border-radius: 4px;
}

.emk-slide-box h2 {
  font-size: 1.4rem;
  margin: 0 0 12px 0;
}

.emk-slide-box h2 a {
  color: rgb(50, 50, 50) !important;
  text-decoration: none !important;
}

.emk-slide-box p {
  color: rgb(50, 50, 50);
  font-size: 0.9rem;
  margin: 0 0 16px 0;
}

.emk-slide-button {
  display: inline-block;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(50, 50, 50, 0.3);
  color: rgb(50, 50, 50) !important;
  padding: 8px 20px;
  text-decoration: none !important;
  font-size: 0.85rem;
  border-radius: 3px;
  margin-top: 8px;
}

.emk-slide-button:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(50, 50, 50, 0.6);
}

.emk-slider-prev,
.emk-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.6);
  border: none;
  font-size: 1.2rem;
  padding: 8px 14px;
  cursor: pointer;
  z-index: 10;
  border-radius: 3px;
}

.emk-slider-prev { left: 10px; }
.emk-slider-next { right: 10px; }

.emk-slider-prev:hover,
.emk-slider-next:hover {
  background: rgba(255,255,255,0.9);
}

/* ===== SIDEBAR: BILDER ABDUNKELN BEIM HOVERN ===== */
.emk-sidebar a {
  display: block;
  position: relative;
  overflow: hidden;
}

.emk-sidebar a img {
  transition: filter 0.3s ease;
}

.emk-sidebar a:hover img {
  filter: brightness(0.7);
}

/* ===== STARTSEITE: WILLKOMMENSBEREICH ===== */
.emk-welcome {
  display: grid;
  grid-template-columns: 1fr 40%;
  gap: 32px;
  align-items: start;
  position: relative;
  z-index: 10;
  margin-top: -100px;
  padding-right: 20px;
  box-sizing: border-box;
}

.emk-welcome-text {
  padding-top: 100px;
}

/* ===== STARTSEITE: SIDEBAR LAYOUT ===== */
.emk-sidebar-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 32px;
  margin: 32px 0;
  align-items: start;
}

.emk-sidebar img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .emk-sidebar-layout {
    grid-template-columns: 1fr;
  }
}

/* ===== UNTERSEITEN: TITEL ÜBER HEADERBILD ===== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero__image {
  display: block;
}

.hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45%;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(2px);
  padding: 12px 24px;
  margin: 0;
  z-index: 5;
}

.hero__content h1,
.hero__content h2 {
  font-size: 1.4rem;
  margin: 0;
}

/* ===== AKKORDEON ===== */
.akkordeon {
  margin: 24px 0;
}

.akkordeon-eintrag {
  border-top: 1px solid #eeeeee;
  margin-bottom: 4px;
}

.akkordeon-titel {
  width: 100%;
  background: #ffffff;
  border: none;
  text-align: left;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: Arial, sans-serif;
  color: #444444;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.akkordeon-titel::after {
  content: "▾";
  font-size: 1rem;
  color: #888;
}

.akkordeon-titel:hover {
  background: var(--emk-beige) !important;
  color: var(--emk-text) !important;
  border-left: 2px solid var(--emk-beige);
}

.akkordeon-inhalt {
  display: none;
  padding: 12px 16px 16px 16px;
  border-left: 1px solid rgba(196,194,194,0.99);
  border-right: 1px solid #c4c2c2;
  border-bottom: 1px solid #c4c2c2;
  background: #ffffff;
}

.akkordeon-inhalt.aktiv {
  display: block;
}


/* ===== PUBLIKATIONEN: GEMEINDEBRIEFE GRID ===== */
.gemeindebriefe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}

.gemeindebrief-karte {
  background: #ffffff;
  border: 5px solid #f4efef;
  border-radius: 30px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.gemeindebrief-karte:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.gemeindebrief-karte a {
  display: block;
  text-align: center;
  padding: 20px;
  text-decoration: none;
  color: inherit;
}

.gemeindebrief-karte a:hover {
  text-decoration: none;
}

.gemeindebrief-karte img {
  max-width: 110px;
  height: auto;
  display: block;
  margin: 0 auto 12px auto;
}

.gemeindebrief-karte h3,
.gemeindebrief-karte h4,
.gemeindebrief-karte h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #29271d;
  margin: 0 0 8px 0;
}

.gemeindebrief-karte p {
  font-size: 0.875rem;
  color: #555;
  margin: 0;
  font-style: italic;
}

/* ===== PUBLIKATIONEN: MOBIL ===== */
@media (max-width: 768px) {
  .akkordeon {
    overflow-y: auto;
    max-height: none;
  }

  .gemeindebriefe-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FOOTER ===== */
/* Unser eigener Footer */
.emk-footer-wrapper {
  background-color: var(--emk-grau);
  color: #ffffff;
  padding: 40px 0 0 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

/* ===== FOOTER: TEXT GRAU ===== */
.emk-footer-spalte p,
.emk-footer-spalte small,
.emk-footer-spalte li {
  color: #cccccc !important;
}

/* ===== FOOTER: TEXT LINKSBÜNDIG ===== */
.emk-footer-spalte {
  text-align: left !important;
}

.emk-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.emk-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr 2fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.emk-footer-spalte h4 {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 12px 0;
}

.emk-footer-spalte p,
.emk-footer-spalte small {
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.emk-footer-spalte a {
  color: #ffffff !important;
  text-decoration: underline;
}

.emk-footer-spalte a:hover {
  color: #dddddd !important;
}

.emk-footer-copy {
  background-color: #5a6268;
  color: #ffffff;
  text-align: center;
  font-size: 0.8rem;
  padding: 16px;
}

.emk-footer-copy p {
  color: #ffffff;
  margin: 0;
}

/* ===== KONTAKT: KARTE MIT INFOBOX ===== */
.emk-karten-wrapper {
  position: relative;
  width: 100%;
}

.emk-karten-info {
  position: absolute;
  top: 20px;
  left: 20px;
  max-width: 280px;
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  padding: 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--emk-text);
  z-index: 10;
}

.emk-karten-info p {
  margin: 0;
}

.emk-footer-spalte .emk-karten-button {
  color: var(--emk-text) !important;
}

.emk-karten-button {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  color: var(--emk-text) !important;
  text-decoration: none !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.8rem;
  z-index: 10;
  border: 1px solid rgba(0,0,0,0.1);
}

.emk-karten-button:hover {
  background-color: rgba(255, 255, 255, 0.95);
}

/* ===== RESPONSIVE / MOBIL ===== */
@media (max-width: 640px) {
  .emk-welcome {
    grid-template-columns: 1fr;
  }

  .gemeindebriefe-grid {
    grid-template-columns: 1fr;
  }

  .emk-footer-grid {
    grid-template-columns: 1fr;
  }
}
