/* 1. Schriftart für den Body-Text */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/Archivo_Narrow/ArchivoNarrow-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  /* Bei Variable Fonts empfiehlt sich eine Range */
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Archivo", sans-serif !important;
  font-size: 14pt;
  margin: 3em;
  /* 1. Aktiviert die automatische Silbentrennung */
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

/* Zuweisung für alle Überschriften */
h1,
h2,
h3 {
  font-family: 'Archivo', sans-serif !important;
  font-weight: 600 !important;
  /* Nutzt das Gewicht der Variable Font */
  font-size: 220%;
}

hr {
  border: none;
  border-top: 2px solid #ff6f00 !important;
  margin: 1.2em 0 !important;
}
/* Tables */
th.table_frontend {
  background-color: #D69F7E !important;
  text-align: left !important;
  vertical-align: top;
  font-weight: 400;
}

th, td {
  padding: 8px !important;
  vertical-align: top;
}

blockquote {
    position: relative;
    font-family: "Georgia", serif;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
    padding: 30px 50px;
    margin: 40px 0;
    border-left: 8px solid #D69F7E;
    background: #f9f9f9;
}

blockquote::before {
    content: "\201C"; /* Unicode für öffnendes Anführungszeichen */
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 240px;
    color: rgba(214, 159, 126, 0.4); /* Leicht transparent */
    font-family: serif;
}

blockquote cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-weight: bold;
    font-size: 1rem;
    color: #D69F7E;
    text-align: right;
}

.search-highlight {
  background-color: #fce8a6;
  /* Ein dezentes Gelb */
  font-weight: bold;
  padding: 1px 3px;
  border-radius: 3px;
}

.text-cacao {
  color: #BEA778;
}

/* lc: Left-aligned, Content wraps Right (float left) */
.lc {
  float: left;
  margin: 0 8px 8px 0;
  /* Oben Rechts Unten Links */
  border-radius: 12px;
}

/* rc: Right-aligned, Content wraps Left (float right) */
.rc {
  float: right;
  margin: 0 0 8px 8px;
  /* Oben Rechts Unten Links */
  border-radius: 12px;
}

/* cbc: Centered, Clear Both (breaks current flow) */
.cbc {
  clear: both;
  /* Beendet das Umfließen von Text */
  display: block;
  /* Stellt sicher, dass das Element als Block behandelt wird */
  margin: 16px auto;
  /* Etwas mehr vertikaler Abstand (16px) und zentriert (auto) */
  border-radius: 12px;
}

/* Timeline-Swiper */
.timeline-slider {
  width: 100%;
  height: 400px;
  padding: 50px 0;
  overflow: hidden;
  position: relative;
}

.swiper-wrapper::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 0;
  width: 100%;
  height: 0px;
  background-color: #ccc;
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-item {
  width: 300px;
  text-align: center;
  position: relative;
  z-index: 2;
}

article img {
  border-radius: 8px;
}

/* Styling für die aktive Swiper-Pagination im Haupt-Stylesheet */
.swiper-pagination-bullet-active {
  /* Setzt die Hintergrundfarbe auf den gewünschten Amber-Farbton */
  background: #78350F !important;
  /* Tailwind amber-900 Hex-Wert */
  opacity: 1 !important;
}

/* Optional: Damit die Pfeile auch sichtbar sind, falls Tailwind sie überschreibt */
.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  /* Muss absolut sein */
  z-index: 10;
  /* Muss hoch sein */
  cursor: pointer;
}

/* Auf kleinen Bildschirmen (Standard) die Pfeile etwas nach außen schieben */
@media (max-width: 1023px) {
  .swiper-button-prev {
    left: 5px !important;
  }

  .swiper-button-next {
    right: 5px !important;
  }
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 1rem 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Abstände im CKEditor 5 Bearbeitungsbereich */
.ck-content p {
    margin-bottom: 1.5em;
    line-height: 1.6;
}

.ck-content h1, 
.ck-content h2, 
.ck-content h3 {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    font-weight: bold;
}

/* --- Akkordeon Styling --- */
.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-header {
    background-color: #D69F7E;
    color: #333;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: background-color 0.3s ease;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background-color: #F5B38B;
}

/* Das Plus/Minus Symbol */
.accordion-header::after {
    content: '\002B'; /* Plus Zeichen */
    font-size: 1.2rem;
    font-weight: bold;
}

.accordion-header.active::after {
    content: "\2212"; /* Minus Zeichen */
}

/* Der ausklappbare Bereich */
.accordion-content {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease;
}

/* Padding nur zeigen, wenn offen */
.accordion-header.active + .accordion-content {
    padding: 15px 18px;
}
/* Smooth Formular Transitions */
#sort-container {
        transition: all 0.4s ease-in-out;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        margin-top: 0;
    }

    #sort-container.is-visible {
        max-height: 200px; /* Groß genug für die Felder */
        opacity: 1;
        margin-top: 1.5rem; /* Entspricht space-y-6 von Tailwind */
        background:#FFE5B9;
        border: 3px solid #FFE5B9;
        border-radius: 4px;
    }