/* ==============================================
   frischfüttern.de - MkDocs Material Anpassungen
   WCAG AAA konform für hellen und dunklen Modus
   ============================================== */

:root {
    /* Deine Markenfarben */
    --ff-green: #A4B70A;
    --ff-red: #92141a;
    --ff-light-green: #cfe70d;
    --ff-middle-green: #798707;
    --ff-dark-green: #636e06;
    --ff-light-red: #a8171e;
    --ff-dark-red: #650e12;
    
    /* WCAG AAA konforme Farben - Heller Modus */
    --ff-text-primary: #1a1a1a;          /* Fast schwarz für optimalen Kontrast */
    --ff-text-secondary: #4a4a4a;        /* Dunkles Grau */
    --ff-link-color: #636e06;            /* Dunkelgrün (Kontrast 7.8:1) */
    --ff-link-hover: #4a5304;            /* Noch dunkler beim Hover */
    --ff-bg-primary: #ffffff;
    --ff-bg-secondary: #f8f9fa;
    --ff-bg-accent: #e8f0d0;             /* Helles Grün für Hintergründe */
    
    /* Material Theme Overrides - Heller Modus */
    --md-primary-fg-color: #636e06;      /* Dunkelgrün - Header */
    --md-primary-fg-color--light: #4a5304;
    --md-primary-fg-color--dark: #3d4503;
    --md-primary-bg-color: #ffffff;
    --md-primary-bg-color--light: #f8f9fa;
    
    --md-accent-fg-color: #650e12;       /* Dunkelrot - Akzente */
    --md-accent-fg-color--transparent: rgba(101, 14, 18, 0.1);
    
    /* Text auf Hauptseite */
    --md-typeset-color: var(--ff-text-primary);
    --md-typeset-a-color: var(--ff-link-color);
    
    /* Code */
    --md-code-bg-color: #f0f4e8;
    --md-code-fg-color: #3d4503;
    --md-code-hl-color: rgba(164, 183, 10, 0.15);
}

/* Dunkler Modus - WCAG AAA konform */
[data-md-color-scheme="slate"] {
    /* WCAG AAA konforme Farben - Dunkler Modus */
    --ff-text-primary: #ffffff;
    --ff-text-secondary: #e0e0e0;
    --ff-link-color: #cfe70d;            /* Hellgrün (Kontrast 11.2:1 auf #1a1a1a) */
    --ff-link-hover: #e0f542;            /* Noch heller beim Hover */
    --ff-bg-primary: #1a1a1a;
    --ff-bg-secondary: #242424;
    --ff-bg-accent: #2d3a1a;             /* Dunkles Grün für Hintergründe */
    
    --md-primary-fg-color: #cfe70d;      /* Hellgrün für Header */
    --md-primary-fg-color--light: #e0f542;
    --md-primary-fg-color--dark: #b8cf0c;
    
    --md-accent-fg-color: #ff6b6b;       /* Helles Rot für guten Kontrast */
    --md-accent-fg-color--transparent: rgba(255, 107, 107, 0.15);
    
    --md-typeset-color: var(--ff-text-primary);
    --md-typeset-a-color: var(--ff-link-color);
    
    --md-code-bg-color: #2d3a1a;
    --md-code-fg-color: #cfe70d;
    --md-code-hl-color: rgba(207, 231, 13, 0.15);
    
    /* Hintergrund */
    --md-default-bg-color: var(--ff-bg-primary);
    --md-default-fg-color: var(--ff-text-primary);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* ==============================================
   HEADER / NAVIGATION
   ============================================== */

/* Navigation Tabs */
.md-tabs {
    background: linear-gradient(135deg, #4a5304 0%, #3d4503 100%);
}

[data-md-color-scheme="slate"] .md-tabs {
    background: linear-gradient(135deg, #3d4503 0%, #2d3301 100%);
}

.md-tabs__link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.md-tabs__link:hover,
.md-tabs__link:focus {
    color: #ffffff;
    opacity: 1;
}

.md-tabs__link--active {
    font-weight: 700;
    color: #ffffff;
    border-bottom: 3px solid #cfe70d;
}

/* ==============================================
   HEADER - Hell/Dunkel Modus WCAG AAA konform
   ============================================== */

/* Header - Heller Modus */
.ff-header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Header - Dunkler Modus */
[data-md-color-scheme="slate"] .ff-header {
    background: var(--ff-bg-primary);
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

/* Container */
.ff-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
    padding: 16px 20px;
}

/* ==============================================
   BRAND / LOGO
   ============================================== */

/* Brand - Heller Modus */
.ff-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--ff-link-color) !important;
    letter-spacing: -0.5px;
    margin-left: 5rem;
}

.ff-brand:hover,
.ff-brand:focus {
    color: #4a5304 !important;
}

/* Brand - Dunkler Modus */
[data-md-color-scheme="slate"] .ff-brand {
    color: #cfe70d !important;  /* Hellgrün - WCAG AAA */
}

[data-md-color-scheme="slate"] .ff-brand:hover,
[data-md-color-scheme="slate"] .ff-brand:focus {
    color: #e0f542 !important;
}

/* ==============================================
   NAVIGATION LINKS
   ============================================== */

.ff-nav {
    margin-left: auto;
}

/* Navigation (Desktop) */
.ff-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

/* Links - Heller Modus */
.ff-link {
    position: relative;
    padding: 0.6rem 1.2rem !important;
    font-weight: 500;
    text-decoration: none;
    color:  #333 !important;
    transition: color 0.3s ease;
    font-size: 0.8rem;
}


.ff-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--ff-light-green);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}


.ff-link:hover,
.ff-link:focus {
    color: var(--ff-light-green) !important;
}

.ff-link:hover::after,
.ff-link:focus::after {
    width: 80%;
}

/* Active Link - Heller Modus */
.ff-link.active {
    color: var(--ff-red) !important;
    font-weight: 600;
}

.ff-link.active::after {
    width: 80%;
    background: #650e12;  /* Dunkelrot */
}

/* Links - Dunkler Modus */
[data-md-color-scheme="slate"] .ff-link {
    color: #ffffff !important;  /* Weiß - WCAG AAA */
}

[data-md-color-scheme="slate"] .ff-link::after {
    background: #cfe70d;  /* Hellgrün */
}

[data-md-color-scheme="slate"] .ff-link:hover,
[data-md-color-scheme="slate"] .ff-link:focus {
    color: #cfe70d !important;  /* Hellgrün */
}

/* Active Link - Dunkler Modus */
[data-md-color-scheme="slate"] .ff-link.active {
    color: #ff6b6b !important;  /* Helles Rot - WCAG AAA */
}

[data-md-color-scheme="slate"] .ff-link.active::after {
    background: #ff6b6b;  /* Helles Rot */
}

/* ==============================================
   CTA BUTTON (Kontakt)
   ============================================== */

/* CTA - Heller Modus */
.ff-cta {
    background: var(--ff-red) !important;
    color: #ffffff !important;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ff-cta:hover,
.ff-cta:focus {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(146, 20, 26, 0.3);
}

/* CTA - Dunkler Modus */
[data-md-color-scheme="slate"] .ff-cta {
    background: #ff6b6b;  /* Helles Rot - WCAG AAA */
    color: #1a1a1a !important;  /* Dunkler Text für Kontrast */
    font-weight: 700;
}

[data-md-color-scheme="slate"] .ff-cta:hover,
[data-md-color-scheme="slate"] .ff-cta:focus {
    background: #ff8585;
    color: #1a1a1a !important;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* ==============================================
   BURGER BUTTON (Mobile)
   ============================================== */

/* Burger Button */
.ff-burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 1.5em;
    height: 1.5em;
    background: none;
    padding: 0;
    cursor: pointer;
}

/* Burger Striche - Heller Modus */
.ff-burger span {
    height: 3px;
    width: 100%;
    background: #1a1a1a;  /* Fast schwarz - WCAG AAA */
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Burger Striche - Dunkler Modus */
[data-md-color-scheme="slate"] .ff-burger span {
    background: #ffffff;  /* Weiß - WCAG AAA */
}

/* Burger Animation - Geöffnet */
.ff-burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.ff-burger.open span:nth-child(2) {
    opacity: 0;
}

.ff-burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==============================================
   RESPONSIVE - Mobile Navigation
   ============================================== */

@media (max-width: 992px) {
    /* Zeige Burger Button */
    .ff-burger {
        display: flex;
    }
    
    /* Navigation verstecken und als Dropdown */
    .ff-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    
    /* Navigation - Dunkler Modus */
    [data-md-color-scheme="slate"] .ff-nav {
        background: #1a1a1a;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    
    /* Navigation geöffnet */
    .ff-nav.open {
        max-height: 500px;
    }
    
    /* Links vertikal stapeln */
    .ff-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }
    
    .ff-nav li {
        border-bottom: 1px solid #e0e0e0;
    }
    
    /* Border - Dunkler Modus */
    [data-md-color-scheme="slate"] .ff-nav li {
        border-bottom-color: #3a3a3a;
    }
    
    .ff-nav li:last-child {
        border-bottom: none;
    }
    
    /* Links volle Breite */
    .ff-link {
        display: block;
        padding: 1rem 20px;
        width: 100%;
    }
    
    /* Underline deaktivieren auf Mobile */
    .ff-link::after {
        display: none;
    }
    
    /* CTA volle Breite */
    .ff-cta {
        display: block;
        margin: 10px 20px;
        text-align: center;
    }
}

/* ==============================================
   FOKUS-INDIKATOREN (Accessibility)
   ============================================== */

/* Deutliche Fokus-Rahmen - Heller Modus */
.ff-brand:focus,
.ff-link:focus,
.ff-cta:focus,
.ff-burger:focus {
    outline: 3px solid #636e06;
    outline-offset: 2px;
}

/* Fokus-Rahmen - Dunkler Modus */
[data-md-color-scheme="slate"] .ff-brand:focus,
[data-md-color-scheme="slate"] .ff-link:focus,
[data-md-color-scheme="slate"] .ff-cta:focus,
[data-md-color-scheme="slate"] .ff-burger:focus {
    outline-color: #cfe70d;
}



/* ==============================================
   TOGGLE SEARCH - Slide In/Out
   ============================================== */

.md-header__inner.md-grid {
    display: flex;
    align-items: center;
}

/* Burger bleibt links */
.md-header__inner > label[for="__drawer"] {
    order: 1;
}

/* Rechte Gruppe: Palette + Suche */
.md-header__inner > form[data-md-component="palette"],
.md-header__inner > label[for="__search"],
.md-header__inner > .md-search {
    display: flex;
    align-items: center;
    gap: 1rem;          /* Abstand zwischen Switch und Suche */
    order: 2;
}

/* Ganze rechte Gruppe nach rechts verschieben */
.md-header__inner > form[data-md-component="palette"] {
    margin-left: auto;
}

/* Basis: Entferne alle Icons im Input */
.md-search__input,
.md-search__input-wrapper {
    position: relative;
}

.md-search__input::before,
.md-search__input::after,
.md-search__icon svg {
    display: none !important; /* Alle inneren Icons ausblenden */
}

/* ===============================
   SEARCH FIELD / OVERLAY
   =============================== */
.md-search__inner {
    max-width: 300px;  /* Desktop */
    width: auto;
}

.md-search__input {
    width: 100%;
    min-width: 0;
}

/* Overlay für Ergebnisse */
.md-search__output {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--ff-bg-primary);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 9999;
}

/* ===============================
   RESPONSIVE
   =============================== */
@media screen and (max-width: 1024px) {
    .md-search__inner {
        max-width: 220px;
    }
    .md-search__output {
        width: 350px;
    }
}

@media screen and (max-width: 768px) {
    /* Suchfeld als Overlay über Inhalt */
    .md-search__inner {
        position: fixed;
        top: 60px;          /* unter Header */
        left: 0;
        right: 0;
        width: 100%;
        padding: 10px 20px;
        background: var(--ff-dark-green);
        z-index: 999;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    /* Overlay Ergebnisse */
    .md-search__output {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        top: calc(100% + 5px);
        max-height: 60vh;
    }

    /* Input auf Mobil größer */
    .md-search__input {
        font-size: 16px;
        padding: 12px 15px;
    }

    /* Optional: Halbdurchsichtiger Hintergrund */
    .md-search__inner::before {
        content: '';
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }
}

@media screen and (max-width: 480px) {
    .md-search__inner {
        top: 100px; /* noch mehr Platz für kleine Header */
    }
}


/* ===========================
   FOOTER
   =========================== */

.ff-footer {
    background: var(--ff-dark-green);
    padding: 0 0 10px;
    color: #333;
    font-size: 0.8rem;
}

.ff-footer-top {
    margin: 0 auto;
    padding: 10px 20px;
    background: linear-gradient(135deg, #4a5304 0%, #3d4503 100%);
    color: #fff;
    text-align: center;
}

.ff-footer-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;

    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.ff-footer-col {
    color: #fff;
    flex: 1;
    min-width: 250px;
}

.ff-footer-col strong {
    color: var(--ff-light-green);
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.ff-footer-col p,
.ff-footer-col ul {
    margin: 0 0 15px;
}

.ff-footer-col ul {
    list-style: none;
    padding: 0;
}

.ff-footer-col ul li {
    margin-bottom: 8px;
}

.ff-footer-col a {
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
}

.ff-footer-col a:hover {
    color: var(--ff-light-green);
    padding-left: 5px;
}

/* Footer Bottom */
.ff-footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.ff-footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
    color: #cccccc;
}

/* ============ MOBILE ============ */
@media (max-width: 800px) {

    .ff-footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .ff-footer-col {
        min-width: 100%;
    }
}

@media (max-width: 600px) {
    .md-footer {
        font-size: 0.95rem;
    }
}




/* ==============================================
   SIDEBAR / NAVIGATION
   ============================================== */

/* Sidebar Links */
.md-nav__link {
    transition: all 0.3s ease;
    border-radius: 5px;
    padding: 0.5rem 0.8rem;
    color: var(--ff-text-primary);
}

.md-nav__link:hover,
.md-nav__link:focus {
    background-color: #636e06;
    color: #fff !important;
}

.md-nav__link--active {
    background-color: var(--ff-bg-accent);
    color: #ffffff;
    font-weight: 600;
}

[data-md-color-scheme="slate"] .md-nav__link--active {
    background-color: #4a5304;
    color: #ffffff;
}

/* Sidebar Titel */
.md-nav__title {
    color: var(--ff-text-primary);
    font-weight: 700;
}

/* ==============================================
   CONTENT / TYPOGRAPHY
   ============================================== */

/* Basis Textfarbe */
.md-typeset {
    color: var(--ff-text-primary);
}

/* Hauptüberschriften */
.md-typeset h1 {
    color: #636e06;
    font-weight: 700;
    border-bottom: 3px solid #636e06;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

[data-md-color-scheme="slate"] .md-typeset h1 {
    color: #cfe70d;
    border-bottom-color: #cfe70d;
}

.md-typeset h2 {
    color: #636e06;
    font-weight: 700;
    margin-top: 2rem;
    border-left: 4px solid #636e06;
    padding-left: 1rem;
}

[data-md-color-scheme="slate"] .md-typeset h2 {
    color: #cfe70d;
    border-left-color: #cfe70d;
}

.md-typeset h3 {
    color: #4a5304;
    font-weight: 600;
}

[data-md-color-scheme="slate"] .md-typeset h3 {
    color: #b8cf0c;
}

.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
    color: var(--ff-text-primary);
    font-weight: 600;
}

/* Links im Content - WCAG AAA konform */
.md-typeset a {
    color: #636e06;
    text-decoration: underline;
    text-decoration-color: #798707;
    text-underline-offset: 3px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.md-typeset a:hover,
.md-typeset a:focus {
    color: #4a5304;
    text-decoration-color: #636e06;
    text-decoration-thickness: 2px;
}

[data-md-color-scheme="slate"] .md-typeset a {
    color: #cfe70d;
    text-decoration-color: #b8cf0c;
}

[data-md-color-scheme="slate"] .md-typeset a:hover,
[data-md-color-scheme="slate"] .md-typeset a:focus {
    color: #e0f542;
    text-decoration-color: #cfe70d;
}

/* Roam-Links [[Wiki-Links]] */
.md-typeset a.wikilink {
    background-color: #e8f0d0;
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #b8cf0c;
    color: #3d4503;
    font-weight: 600;
}

.md-typeset a.wikilink:hover,
.md-typeset a.wikilink:focus {
    background-color: #636e06;
    color: #ffffff;
    border-color: #636e06;
}

[data-md-color-scheme="slate"] .md-typeset a.wikilink {
    background-color: #2d3a1a;
    border-color: #4a5304;
    color: #cfe70d;
}

[data-md-color-scheme="slate"] .md-typeset a.wikilink:hover,
[data-md-color-scheme="slate"] .md-typeset a.wikilink:focus {
    background-color: #4a5304;
    color: #ffffff;
}

/* Paragraph Text */
.md-typeset p {
    color: var(--ff-text-primary);
}

/* Listen */
.md-typeset li {
    color: var(--ff-text-primary);
}

/* Blockquotes */
.md-typeset blockquote {
    border-left: 4px solid #636e06;
    color: var(--ff-text-secondary);
}

[data-md-color-scheme="slate"] .md-typeset blockquote {
    border-left-color: #cfe70d;
}

/* ==============================================
   ADMONITIONS (Info-Boxen) - WCAG AAA
   ============================================== */

/* Tipp-Box */
.md-typeset .admonition.tip,
.md-typeset details.tip {
    border-left: 4px solid #636e06;
    background-color: #f0f4e8;
}

.md-typeset .tip > .admonition-title,
.md-typeset .tip > summary {
    background-color: #e8f0d0;
    color: #3d4503;
    font-weight: 700;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.tip,
[data-md-color-scheme="slate"] .md-typeset details.tip {
    background-color: #2d3a1a;
    border-left-color: #b8cf0c;
}

[data-md-color-scheme="slate"] .md-typeset .tip > .admonition-title,
[data-md-color-scheme="slate"] .md-typeset .tip > summary {
    background-color: #3d4503;
    color: #cfe70d;
}

/* Warnung-Box */
.md-typeset .admonition.warning,
.md-typeset details.warning {
    border-left: 4px solid #650e12;
    background-color: #fff5f5;
}

.md-typeset .warning > .admonition-title,
.md-typeset .warning > summary {
    background-color: #ffe0e0;
    color: #650e12;
    font-weight: 700;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.warning,
[data-md-color-scheme="slate"] .md-typeset details.warning {
    background-color: #2a1a1a;
    border-left-color: #ff6b6b;
}

[data-md-color-scheme="slate"] .md-typeset .warning > .admonition-title,
[data-md-color-scheme="slate"] .md-typeset .warning > summary {
    background-color: #3d2020;
    color: #ff6b6b;
}

/* Info-Box */
.md-typeset .admonition.info,
.md-typeset details.info {
    border-left: 4px solid #636e06;
}

.md-typeset .info > .admonition-title,
.md-typeset .info > summary {
    background-color: #e8f0d0;
    color: #3d4503;
    font-weight: 700;
}

[data-md-color-scheme="slate"] .md-typeset .info > .admonition-title,
[data-md-color-scheme="slate"] .md-typeset .info > summary {
    background-color: #3d4503;
    color: #cfe70d;
}

/* ==============================================
   BUTTONS - WCAG AAA konform
   ============================================== */

/* Primary Buttons */
.md-button--primary {
    background: #650e12;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.md-button--primary:hover,
.md-button--primary:focus {
    background: #4a0a0d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(101, 14, 18, 0.4);
}

[data-md-color-scheme="slate"] .md-button--primary {
    background: #ff6b6b;
    color: #1a1a1a;
}

[data-md-color-scheme="slate"] .md-button--primary:hover,
[data-md-color-scheme="slate"] .md-button--primary:focus {
    background: #ff8585;
    color: #1a1a1a;
}

/* Secondary Buttons */
.md-button {
    border-radius: 50px;
    border: 2px solid #636e06;
    color: #636e06;
    background-color: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.md-button:hover,
.md-button:focus {
    background-color: #636e06;
    color: #ffffff;
    border-color: #636e06;
}

[data-md-color-scheme="slate"] .md-button {
    border-color: #cfe70d;
    color: #cfe70d;
}

[data-md-color-scheme="slate"] .md-button:hover,
[data-md-color-scheme="slate"] .md-button:focus {
    background-color: #cfe70d;
    color: #1a1a1a;
}

/* ==============================================
   CODE BLOCKS - WCAG AAA
   ============================================== */

/* Inline Code */
.md-typeset code {
    background-color: #e8f0d0;
    color: #3d4503;
    border: 1px solid #b8cf0c;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.9em;
    font-weight: 600;
}

[data-md-color-scheme="slate"] .md-typeset code {
    background-color: #2d3a1a;
    color: #cfe70d;
    border-color: #4a5304;
}

/* Code Blocks */
.md-typeset pre {
    border-left: 4px solid #636e06;
    border-radius: 8px;
    background-color: #f0f4e8;
}

.md-typeset pre > code {
    background-color: transparent;
    border: none;
    color: #3d4503;
}

[data-md-color-scheme="slate"] .md-typeset pre {
    background-color: #2d3a1a;
    border-left-color: #cfe70d;
}

[data-md-color-scheme="slate"] .md-typeset pre > code {
    color: #cfe70d;
}

/* ==============================================
   SEARCH - WCAG AAA
   ============================================== */

* Basis-Suchfeld */
.md-search__input {
    border-radius: 50px;                 /* Runde Ecken */
    background-color: var(--ff-bg-primary); /* Weiß im Light Mode */
    color: var(--ff-text-primary);
    border: 2px solid transparent;       /* Keine sichtbare Linie standardmäßig */
    padding: 0.5rem 1rem;
    outline: none;
    transition: all 0.2s ease;
}

/* Placeholder Farbe */
.md-search__input::placeholder {
    color: #666666;
    opacity: 1; /* Standardmäßig 1 für bessere Lesbarkeit */
}

/* Fokus / Hover */
.md-search__input:focus,
.md-search__input:hover {
    border-color: var(--ff-middle-green); /* Dunkelgrün passend zu deinem CI */
    background-color: var(--ff-bg-accent); /* Leicht hervorgehoben */
    box-shadow: none; /* Alte Schatten entfernen */
}

/* Dunkelmodus */
[data-md-color-scheme="slate"] .md-search__input {
    background-color: var(--ff-bg-secondary); /* dunkler Hintergrund */
    color: var(--ff-text-primary);
}

[data-md-color-scheme="slate"] .md-search__input::placeholder {
    color: #b0b0b0;
}

[data-md-color-scheme="slate"] .md-search__input:focus,
[data-md-color-scheme="slate"] .md-search__input:hover {
    border-color: var(--ff-light-green);
    background-color: var(--ff-bg-accent); /* Optional: leicht helleres Grün */
    box-shadow: none;
}

/* ===========================
   Suchergebnisse
   =========================== */
.md-search-result__link {
    color: var(--ff-text-primary);
    background-color: var(--ff-bg-secondary);
    border-left: 3px solid var(--ff-middle-green);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.md-search-result__link:hover,
.md-search-result__link:focus {
    background-color: var(--ff-bg-accent);
    border-left-color: var(--ff-light-green);
    transform: translateX(2px);
}

/* Zusammenklappbare Ergebnisse */
.md-search-result__more summary {
    color: var(--ff-middle-green);
    font-weight: 600;
    cursor: pointer;
}

[data-md-color-scheme="slate"] .md-search-result__more summary {
    color: var(--ff-light-green);
}


/* ==============================================
   TAGS
   ============================================== */

.md-tag {
    background-color: var(--md-accent-fg-color--transparent) !important;
    color: #999999;
    border-radius: 15px;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.md-tag:hover {
    background-color: #4a5304 !important;
    color: #ffffff;
}

[data-md-color-scheme="slate"] .md-tag {
    background-color: #4a5304;
    color: #cfe70d;
}

[data-md-color-scheme="slate"] .md-tag:hover {
    background-color: #636e06;
}

/* ==============================================
   TABLES - WCAG AAA
   ============================================== */

.md-typeset table:not([class]) {
    border: 2px solid #636e06;
    border-radius: 8px;
    overflow: hidden;
}

.md-typeset table:not([class]) thead {
    background-color: #e8f0d0;
}

.md-typeset table:not([class]) th {
    color: #3d4503;
    font-weight: 700;
    border-bottom: 2px solid #636e06;
}

.md-typeset table:not([class]) td {
    color: var(--ff-text-primary);
    border-bottom: 1px solid #d0d0d0;
}

.md-typeset table:not([class]) tr:hover {
    background-color: var(--ff-bg-accent);
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) {
    border-color: #4a5304;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) thead {
    background-color: #3d4503;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
    color: #cfe70d;
    border-bottom-color: #4a5304;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) td {
    border-bottom-color: #3a3a3a;
}

/* ==============================================
   SCROLLBAR
   ============================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--ff-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: #798707;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #636e06;
}

[data-md-color-scheme="slate"] ::-webkit-scrollbar-thumb {
    background: #4a5304;
}

[data-md-color-scheme="slate"] ::-webkit-scrollbar-thumb:hover {
    background: #636e06;
}

/* ==============================================
   RESPONSIVE
   ============================================== */

@media (max-width: 768px) {
    .md-header__title {
        font-size: 1rem;
    }
    
    .md-typeset h1 {
        font-size: 1.8rem;
    }
    
    .md-typeset h2 {
        font-size: 1.4rem;
    }
}

/* ==============================================
   ACCESSIBILITY - Fokus-Indikatoren
   ============================================== */

/* Deutliche Fokus-Rahmen für Tastaturnavigation */
a:focus,
button:focus,
input:focus,
.md-nav__link:focus,
.md-search__input:focus {
    outline: 3px solid #636e06;
    outline-offset: 2px;
}

[data-md-color-scheme="slate"] a:focus,
[data-md-color-scheme="slate"] button:focus,
[data-md-color-scheme="slate"] input:focus,
[data-md-color-scheme="slate"] .md-nav__link:focus,
[data-md-color-scheme="slate"] .md-search__input:focus {
    outline-color: #cfe70d;
}

/* Skip Link für Screenreader */
.md-skip {
    background-color: #650e12;
    color: #ffffff;
    font-weight: 700;
}

.md-skip:focus {
    background-color: #4a0a0d;
}