/* =========== FuchsiaCSS2Modern - Finale Joomla 6 Version =========== */

/* ===== BASIS ===== */
:root {
    --cassiopeia-color-primary: #C154C1;
    --cassiopeia-color-link: #9c3d9c;
    --cassiopeia-color-hover: #7a2e7a;
    --background-main: #faf7fb;
    --text-main: #2b2b2b;
    --border-soft: #ead8ea;
    --fuchsia-light: #f3e6f3;
    --fuchsia-light-dark: #e8d5e8;
}

body {
    background-color: var(--background-main);
    color: var(--text-main);
    font-family: system-ui, Arial, sans-serif;
}

/* ===== HEADER (LOGO & NAME) ===== */
.header {
    background: linear-gradient(135deg, #C154C1, #9c3d9c) !important;
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 2px 10px rgba(193, 84, 193, 0.3);
}
.header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.header-inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}
.header-brand { margin-right: auto; }
.header-brand .navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff !important;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}
.logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}
.site-name { letter-spacing: 1px; }

/* ===== BANNER (SPIEGEL-LOOK: 1 ZEILE) ===== */
.banner {
    background: linear-gradient(135deg, var(--fuchsia-light), var(--fuchsia-light-dark)) !important;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    overflow: hidden;
}
.banner .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 12px;
    width: 100%;
}
.banner-row {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 12px;
    width: 100%;
}
/* ===== MENÜ-BUTTON (ELEGANT & FUNKTIONAL) ===== */
.btn-menu-toggle {
    background: rgba(255, 255, 255, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    color: #2b2b2b !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 110px !important;
    min-height: 40px !important;
    transition: all 0.3s ease !important;
}
/* Hover & Active (Klick) */
.btn-menu-toggle:hover, .btn-menu-toggle:active, .btn-menu-toggle:focus {
    background: #C154C1 !important;
    color: #fff !important;
    border-color: #C154C1 !important;
    box-shadow: 0 4px 10px rgba(193, 84, 193, 0.3) !important;
}
.btn-menu-toggle .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2843, 43, 43, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 1.2em !important;
    height: 1.2em !important;
    display: block !important;
}
.btn-menu-toggle:hover .navbar-toggler-icon,
.btn-menu-toggle:active .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
.menu-text {
    color: #2b2b2b !important;
    white-space: nowrap !important;
}
.btn-menu-toggle:hover .menu-text,
.btn-menu-toggle:active .menu-text {
    color: #fff !important;
}

/* Trenner */
.separator {
    color: rgba(43,43,43,0.4);
    font-weight: bold;
    font-size: 1.2rem;
    user-select: none;
    flex-shrink: 0;
}

/* ===== HORIZONTALES SCROLL-MENÜ ===== */
.scrollable-menu-wrapper {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex: 1 !important;
    min-width: 0;
}
.scrollable-menu {
    overflow-x: auto !important;
    white-space: nowrap !important;
    flex: 1 !important;
    min-width: 0;
    padding: 4px 0;
    scrollbar-width: none;
}
.scrollable-menu::-webkit-scrollbar { display: none; }
.scrollable-menu-list,
.scrollable-menu-list ul,
.scrollable-menu-list li {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}
.scrollable-menu-list a {
    color: #2b2b2b !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    transition: color 0.2s ease !important;
    white-space: nowrap !important;
    padding: 0 10px !important;
}
.scrollable-menu-list a:hover { color: #C154C1 !important; }

/* Scroll-Pfeile */
.scroll-arrow {
    background: rgba(255,255,255,0.6);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: #2b2b2b;
    flex-shrink: 0;
}
.scroll-arrow:hover { background: rgba(255,255,255,0.9); }

/* ===== SUCH-BUTTON ===== */
.btn-search-toggle {
    background: rgba(255,255,255,0.4) !important;
    border: 1px solid rgba(255,255,255,0.8) !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 40px !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}
.btn-search-toggle:hover, .btn-search-toggle:active {
    background: #C154C1 !important;
    border-color: #C154C1 !important;
}
.search-icon { font-size: 1.2rem !important; }

/* ===== SIDE PANEL (OFFCANVAS) ===== */
/* Bootstrap fügt automatisch die Klasse 'show' hinzu, wenn geklickt wird */
.offcanvas-start {
    background: linear-gradient(180deg, var(--fuchsia-light), var(--fuchsia-light-dark)) !important;
    color: #2b2b2b !important;
    width: 320px !important;
    top: 0 !important;
    left: 0 !important;
    height: 100vh !important;
    z-index: 1060 !important;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1) !important;
    /* Standard Bootstrap Transformation */
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease-in-out !important;
}
/* Wenn Bootstrap die Klasse 'show' hinzufügt */
.offcanvas-start.show {
    transform: translateX(0) !important;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
    padding: 1rem !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}
.offcanvas-title {
    color: #2b2b2b !important;
    font-weight: 600;
    margin: 0 !important;
}
.offcanvas-header .btn-close {
    filter: none !important;
    opacity: 0.7 !important;
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
}
.offcanvas-header .btn-close:hover { opacity: 1 !important; }

.offcanvas-body {
    padding: 1rem !important;
    overflow-y: auto;
}

/* Suche im Panel */
.offcanvas-search .form-control {
    border: 1px solid rgba(0,0,0,0.2) !important;
    border-radius: 6px !important;
    padding: 10px !important;
    background: #fff !important;
    color: #2b2b2b !important;
}
.offcanvas-search .btn-primary {
    background: #C154C1 !important;
    border: none !important;
    border-radius: 6px !important;
    width: 100%;
}
.offcanvas-search .btn-primary:hover { background: #7a2e7a !important; }

/* Menü-Links im Panel */
.offcanvas-body .nav-link,
.offcanvas-body a {
    display: block;
    padding: 12px 10px !important;
    color: #2b2b2b !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    transition: background 0.2s ease;
}
.offcanvas-body .nav-link:hover,
.offcanvas-body a:hover {
    background: rgba(255,255,255,0.4) !important;
    color: #C154C1 !important;
}
.offcanvas-body .nav-item.active > .nav-link {
    background: rgba(255,255,255,0.5) !important;
    font-weight: 600;
}
.offcanvas-body .dropdown-menu {
    background: rgba(0,0,0,0.05) !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
}
.offcanvas-body .dropdown-menu .dropdown-item {
    color: #2b2b2b !important;
    padding-left: 25px !important;
}
.offcanvas-body .dropdown-menu .dropdown-item:hover {
    background: rgba(255,255,255,0.3) !important;
    color: #C154C1 !important;
}

/* ===== REST (CONTENT, SIDEBAR, FOOTER) ===== */
.container-component {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(193,84,193,0.1);
}
.sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
}
.btn-primary {
    background: var(--cassiopeia-color-primary);
    color: #fff;
    border: none;
}
.btn-primary:hover { background: var(--cassiopeia-color-hover); }
a { color: var(--cassiopeia-color-link); }
a:hover { color: var(--cassiopeia-color-hover); }
.footer {
    background: #2b2b2b;
    color: #ddd;
    padding: 30px;
    text-align: center;
}
.highlight-box {
    background: var(--fuchsia-light);
    border-left: 5px solid #C154C1;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(193, 84, 193, 0.15);
    font-size: 0.95em;
}
.topbar {
    background: linear-gradient(135deg, var(--fuchsia-light) 0%, #faf7fb 100%);
    border-bottom: 1px solid var(--border-soft);
    padding: 8px 0;
    font-size: 0.85rem;
}
.topbar .container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-left .topbar-site-title { color: var(--cassiopeia-color-link); font-weight: 600; letter-spacing: 0.5px; }
.topbar-right { display: flex; gap: 20px; align-items: center; }
.topbar-link { color: var(--text-main); text-decoration: none; transition: color 0.3s ease; }
.topbar-link:hover { color: var(--cassiopeia-color-primary); }
.tagline-bar {
    background: linear-gradient(135deg, var(--fuchsia-light) 0%, var(--fuchsia-light-dark) 100%);
    padding: 12px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-soft);
}
.tagline-text {
    margin: 0;
    font-style: italic;
    color: var(--cassiopeia-color-link);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .topbar { display: none; }
    .header-inner { min-height: 60px; }
    .header-brand .navbar-brand { font-size: 1.2rem; }
    .logo-img { height: 32px; }
    .tagline-text { font-size: 0.85rem; }
    .container-component { padding: 15px; }
    .banner .container { flex-wrap: wrap; justify-content: center; }
    .scrollable-menu-wrapper { order: 3; width: 100%; margin-top: 10px; }
    .separator { display: none; }
}


/* Verhindert das Standard-Aussehen des Details-Elements */
details.custom-side-panel summary {
  list-style: none;
  cursor: pointer;
}
details.custom-side-panel summary::-webkit-details-marker {
  display: none;
}

/* Positioniert den Inhalt als Side Panel auf der linken Seite */
details.custom-side-panel[open] .panel-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background: #ffffff;
  box-shadow: 5px 0 15px rgba(0,0,0,0.3);
  z-index: 99999;
  padding: 20px;
  display: block;
  animation: slideIn 0.3s ease;
}

/* Versteckt den Inhalt, wenn geschlossen */
details.custom-side-panel .panel-content {
  display: none;
}

/* Einfache Kopfzeile für das Panel */
.panel-header {
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

/* Animation für das Hereinfahren */
@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
@media (max-width: 576px) {
    .header-brand .navbar-brand { font-size: 1.1rem; }
    .site-name { display: none; }
}
/* Der Außenrahmen – entspricht Ihrem rect id="box_beschreibung" */
#box_beschreibung {
    width: 100%;
    max-width: 210mm; /* Behält die A4-Proportion auf großen Bildschirmen */
    margin: 0 auto;
    border: 0.5px solid #bdc3c7; /* Ihr originaler Stroke-Wert */
    border-radius: 8px; /* Entspricht rx/ry Kurven */
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Schicker Webeffekt */
    box-sizing: border-box;
}

/* Der grafische Kopfbereich */
.baumkunde-header {
    width: 100%;
    margin-bottom: 20px;
}

/* Grundstruktur der Tabellenzeilen */
.kriterien-zeile {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 10px 5px;
    border-bottom: 0.5px solid #e2e8f0; /* Diskrete Trennlinie */
}

/* Kriterien-Styling exakt nach Ihren SVG-Vorgaben */
.kriterium-name {
    flex: 0 0 260px; /* Feste Breite links für die Bezeichnungen */
    font-family: sans-serif;
    font-size: 14px; /* Im Web lesbare Entsprechung zu 3.5px SVG */
    font-weight: bold;
    color: #34495e; /* Ihre originale Kriterien-Farbe */
}

/* Werte-Styling exakt nach Ihren SVG-Vorgaben */
.kriterium-wert {
    flex: 1 1 300px; /* Nimmt sich den restlichen Platz rechts */
    font-family: sans-serif;
    font-size: 14px;
    color: #111111; /* Ihre originale Wert-Farbe */
    line-height: 1.5;
}

.kriterium-wert.lateinisch {
    font-style: italic;
}

/* Sonderregel für lange Freitexte (wie 34, 35, 37) */
.freitext-zeile {
    flex-direction: column; /* Kriterium oben, langer Freitext darunter */
    gap: 8px;
}

.freitext-zeile .kriterium-name {
    flex: 1 1 100%;
    border-bottom: 1px dashed #bdc3c7;
    padding-bottom: 4px;
}

.freitext-zeile .kriterium-wert {
    flex: 1 1 100%;
    padding-top: 4px;
}

/* Responsive Anpassung für Smartphones */
@media (max-width: 768px) {
    .kriterien-zeile {
        flex-direction: column;
        gap: 4px;
    }
    .kriterium-name {
        flex: 1 1 100%;
    }
}
/* Styling für das Pflanzen-Steckbrief-Grid */
.plant-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #4a7c59; /* Hübscher grüner Akzentbalken */
}

.plant-grid-item {
    font-size: 0.95rem;
    line-height: 1.4;
}

.plant-grid-label {
    font-weight: bold;
    color: #333;
}

.plant-grid-value {
    color: #555;
}

/* Styling für die langen Freitexte über volle Breite */
.plant-long-texts {
    margin-top: 30px;
}

.plant-fulltext-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.plant-fulltext-section h3 {
    color: #4a7c59;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.plant-fulltext-content {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #222;
}