/* ==========================================================
   ORTSGEMEINDE FISCHBACH
   Joomla 6 Child-Template auf Basis von Cassiopeia

   Designsystem Version 1.0
   Datei:
   media/templates/site/fischbach/css/user.css

   Eigene wiederverwendbare Klassen beginnen mit:
   fb-
   ========================================================== */


/* ==========================================================
   01. DESIGNVARIABLEN
   ========================================================== */

:root {
    /* Markenfarben */
    --fb-primary: #315b34;
    --fb-primary-dark: #203f24;
    --fb-primary-light: #e7efe6;
    --fb-primary-soft: #f1f5f0;

    --fb-accent: #d0a82f;
    --fb-accent-dark: #9f7d16;
    --fb-accent-light: #f7edc9;

    /* Neutrale Farben */
    --fb-white: #ffffff;
    --fb-background: #f5f6f2;
    --fb-surface: #ffffff;
    --fb-surface-muted: #ecefe9;

    --fb-text: #293029;
    --fb-text-muted: #626a62;
    --fb-heading: #203f24;

    --fb-border: #d6dcd3;
    --fb-border-dark: #b9c2b5;

    /* Statusfarben */
    --fb-info: #286d8b;
    --fb-info-light: #e7f3f8;

    --fb-success: #397144;
    --fb-success-light: #e7f3e9;

    --fb-warning: #9a7115;
    --fb-warning-light: #fff4d2;

    --fb-danger: #a13c36;
    --fb-danger-light: #fae9e7;

    /* Typografie */
    --fb-font-body:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --fb-font-heading:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    /* Layout */
    --fb-container-width: 1320px;
    --fb-content-width: 900px;

    /* Abstände */
    --fb-space-1: 0.25rem;
    --fb-space-2: 0.5rem;
    --fb-space-3: 0.75rem;
    --fb-space-4: 1rem;
    --fb-space-5: 1.5rem;
    --fb-space-6: 2rem;
    --fb-space-7: 3rem;
    --fb-space-8: 4rem;
    --fb-space-9: 5rem;

    /* Rundungen */
    --fb-radius-small: 0.25rem;
    --fb-radius: 0.5rem;
    --fb-radius-large: 0.9rem;
    --fb-radius-round: 999px;

    /* Schatten */
    --fb-shadow-small:
        0 2px 8px rgb(20 40 23 / 8%);

    --fb-shadow:
        0 8px 24px rgb(20 40 23 / 12%);

    --fb-shadow-large:
        0 18px 45px rgb(20 40 23 / 16%);

    /* Übergänge */
    --fb-transition-fast: 150ms ease;
    --fb-transition: 220ms ease;

    /* Cassiopeia und Bootstrap */
    --cassiopeia-color-primary: var(--fb-primary);
    --cassiopeia-color-link: var(--fb-primary);
    --cassiopeia-color-hover: var(--fb-primary-dark);

    --body-color: var(--fb-text);
    --body-bg: var(--fb-background);

    --link-color: var(--fb-primary);
    --link-hover-color: var(--fb-primary-dark);

    --border-color: var(--fb-border);
}


/* ==========================================================
   02. GRUNDEINSTELLUNGEN
   ========================================================== */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--fb-text);
    background-color: var(--fb-background);
    font-family: var(--fb-font-body);
    font-size: 1rem;
    line-height: 1.65;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

img {
    display: block;
}

figure {
    margin: 0;
}

iframe {
    max-width: 100%;
}

hr {
    margin: var(--fb-space-6) 0;
    border: 0;
    border-top: 1px solid var(--fb-border);
}


/* ==========================================================
   03. TYPOGRAFIE
   ========================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: var(--fb-space-4);
    color: var(--fb-heading);
    font-family: var(--fb-font-heading);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
    font-size: clamp(1.65rem, 3.5vw, 2.4rem);
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-top: 0;
    margin-bottom: var(--fb-space-4);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--fb-primary);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.15em;
    transition:
        color var(--fb-transition-fast),
        background-color var(--fb-transition-fast),
        border-color var(--fb-transition-fast);
}

a:hover {
    color: var(--fb-primary-dark);
}

strong,
b {
    font-weight: 700;
}

small {
    color: var(--fb-text-muted);
}

blockquote {
    margin: var(--fb-space-6) 0;
    padding: var(--fb-space-5);
    color: var(--fb-primary-dark);
    background-color: var(--fb-primary-soft);
    border-left: 5px solid var(--fb-accent);
    border-radius: 0 var(--fb-radius) var(--fb-radius) 0;
}


/* ==========================================================
   04. BARRIEREFREIHEIT
   ========================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--fb-accent);
    outline-offset: 3px;
}

.visually-hidden-focusable:focus {
    color: var(--fb-white);
    background-color: var(--fb-primary-dark);
}


/* ==========================================================
   05. ALLGEMEINES LAYOUT
   ========================================================== */

.fb-container {
    width: min(
        calc(100% - 2rem),
        var(--fb-container-width)
    );
    margin-inline: auto;
}

.fb-container-narrow {
    width: min(
        calc(100% - 2rem),
        var(--fb-content-width)
    );
    margin-inline: auto;
}

.fb-section {
    padding-block: var(--fb-space-8);
}

.fb-section-small {
    padding-block: var(--fb-space-6);
}

.fb-section-large {
    padding-block: var(--fb-space-9);
}

.fb-section-white {
    background-color: var(--fb-white);
}

.fb-section-light {
    background-color: var(--fb-primary-soft);
}

.fb-section-muted {
    background-color: var(--fb-surface-muted);
}

.fb-section-green {
    color: var(--fb-white);
    background-color: var(--fb-primary);
}

.fb-section-green h1,
.fb-section-green h2,
.fb-section-green h3,
.fb-section-green h4 {
    color: var(--fb-white);
}

.fb-section-gold {
    color: var(--fb-primary-dark);
    background-color: var(--fb-accent-light);
}


/* ==========================================================
   06. GRID UND SPALTEN
   ========================================================== */

.fb-grid {
    display: grid;
    gap: var(--fb-space-5);
}

.fb-grid-2 {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.fb-grid-3 {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.fb-grid-4 {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}

.fb-grid-auto {
    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));
}

.fb-grid-auto-wide {
    grid-template-columns:
        repeat(auto-fit, minmax(300px, 1fr));
}

.fb-align-center {
    align-items: center;
}

.fb-align-start {
    align-items: start;
}


/* ==========================================================
   07. ÜBERSCHRIFTEN UND ABSCHNITTSTITEL
   ========================================================== */

.fb-title {
    position: relative;
    margin-bottom: var(--fb-space-6);
    padding-bottom: var(--fb-space-3);
}

.fb-title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 4rem;
    height: 4px;
    content: "";
    background-color: var(--fb-accent);
    border-radius: var(--fb-radius-round);
}

.fb-title-center {
    text-align: center;
}

.fb-title-center::after {
    right: 0;
    left: 0;
    margin-inline: auto;
}

.fb-subtitle {
    max-width: 760px;
    margin-top: calc(var(--fb-space-3) * -1);
    margin-bottom: var(--fb-space-6);
    color: var(--fb-text-muted);
    font-size: 1.1rem;
}

.fb-subtitle-center {
    margin-inline: auto;
    text-align: center;
}

.fb-eyebrow {
    display: block;
    margin-bottom: var(--fb-space-2);
    color: var(--fb-accent-dark);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* ==========================================================
   08. KOPFBEREICH
   ========================================================== */

.container-header {
    position: relative;
    z-index: 100;
    color: var(--fb-white);
    background-color: var(--fb-primary);
    background-image:
        linear-gradient(
            135deg,
            var(--fb-primary-dark) 0%,
            var(--fb-primary) 70%,
            #3d7041 100%
        );
    border-bottom: 4px solid var(--fb-accent);
    box-shadow: var(--fb-shadow-small);
}

.container-header .grid-child {
    align-items: center;
}

.container-header .navbar-brand {
    margin: 0;
    padding-block: var(--fb-space-4);
    color: var(--fb-white);
}

.container-header .navbar-brand a {
    color: var(--fb-white);
    text-decoration: none;
}

.container-header .navbar-brand a:hover {
    color: var(--fb-white);
}

.container-header .site-title {
    display: block;
    color: var(--fb-white);
    font-size: clamp(1.4rem, 2.8vw, 2.1rem);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: 0.015em;
}

.container-header .site-description {
    display: block;
    margin-top: var(--fb-space-1);
    color: rgb(255 255 255 / 87%);
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    line-height: 1.4;
}

.container-header .navbar-brand img {
    width: auto;
    max-height: 90px;
}


/* ==========================================================
   09. HAUPTNAVIGATION
   ========================================================== */

.container-header .container-nav {
    padding-top: 0;
    padding-bottom: 0;
}

.container-header .mod-menu {
    margin: 0;
    color: var(--fb-white);
}

.container-header .mod-menu > li {
    position: relative;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > button,
.container-header .mod-menu > li > span {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: 0.7rem 0.9rem;
    color: var(--fb-white);
    font-weight: 650;
    line-height: 1.25;
    text-decoration: none;
    border-radius: var(--fb-radius-small);
    transition:
        color var(--fb-transition-fast),
        background-color var(--fb-transition-fast);
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > button:hover {
    color: var(--fb-white);
    background-color: rgb(255 255 255 / 12%);
}

.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
    color: var(--fb-primary-dark);
    background-color: var(--fb-accent);
}

.container-header .mod-menu > li.active > a:hover,
.container-header .mod-menu > li.current > a:hover {
    color: var(--fb-primary-dark);
    background-color: #e3bd43;
}


/* ==========================================================
   10. UNTERMENÜS
   ========================================================== */

.container-header .metismenu.mod-menu .mm-collapse,
.container-header .metismenu.mod-menu .mm-collapsing {
    min-width: 230px;
    padding: var(--fb-space-2);
    color: var(--fb-text);
    background-color: var(--fb-white);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    box-shadow: var(--fb-shadow);
}

.container-header .metismenu.mod-menu .mm-collapse a,
.container-header .metismenu.mod-menu .mm-collapsing a {
    display: block;
    padding: var(--fb-space-3) var(--fb-space-4);
    color: var(--fb-text);
    text-decoration: none;
    border-radius: var(--fb-radius-small);
}

.container-header .metismenu.mod-menu .mm-collapse a:hover,
.container-header .metismenu.mod-menu .mm-collapsing a:hover {
    color: var(--fb-primary-dark);
    background-color: var(--fb-primary-light);
}


/* ==========================================================
   11. MOBILE NAVIGATION
   ========================================================== */

.container-header .navbar-toggler {
    color: var(--fb-white);
    border: 2px solid rgb(255 255 255 / 75%);
    border-radius: var(--fb-radius-small);
}

.container-header .navbar-toggler:hover {
    background-color: rgb(255 255 255 / 12%);
}

.container-header .navbar-toggler:focus {
    box-shadow: none;
}

.container-header .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}


/* ==========================================================
   12. HERO-BEREICHE
   ========================================================== */

.fb-hero {
    position: relative;
    display: grid;
    min-height: 520px;
    overflow: hidden;
    color: var(--fb-white);
    background-color: var(--fb-primary-dark);
    background-position: center;
    background-size: cover;
    place-items: center;
}

.fb-hero-small {
    min-height: 340px;
}

.fb-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(
            90deg,
            rgb(20 45 24 / 85%) 0%,
            rgb(20 45 24 / 55%) 55%,
            rgb(20 45 24 / 25%) 100%
        );
}

.fb-hero-content {
    position: relative;
    z-index: 1;
    width: min(
        calc(100% - 2rem),
        var(--fb-container-width)
    );
    margin-inline: auto;
    padding-block: var(--fb-space-8);
}

.fb-hero-content > * {
    max-width: 750px;
}

.fb-hero h1,
.fb-hero h2 {
    color: var(--fb-white);
}

.fb-hero p {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}


/* ==========================================================
   13. KARTEN
   ========================================================== */

.fb-card {
    overflow: hidden;
    background-color: var(--fb-surface);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius-large);
    box-shadow: var(--fb-shadow-small);
    transition:
        transform var(--fb-transition),
        box-shadow var(--fb-transition),
        border-color var(--fb-transition);
}

.fb-card:hover {
    border-color: var(--fb-border-dark);
    box-shadow: var(--fb-shadow);
    transform: translateY(-3px);
}

.fb-card-body {
    padding: var(--fb-space-5);
}

.fb-card-header {
    padding: var(--fb-space-4) var(--fb-space-5);
    color: var(--fb-white);
    background-color: var(--fb-primary);
    border-bottom: 4px solid var(--fb-accent);
}

.fb-card-header h2,
.fb-card-header h3,
.fb-card-header h4 {
    margin: 0;
    color: var(--fb-white);
}

.fb-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.fb-card-footer {
    padding: var(--fb-space-4) var(--fb-space-5);
    background-color: var(--fb-primary-soft);
    border-top: 1px solid var(--fb-border);
}

.fb-card-link {
    color: inherit;
    text-decoration: none;
}

.fb-card-link:hover {
    color: inherit;
}


/* ==========================================================
   14. SCHNELLZUGRIFFE
   ========================================================== */

.fb-quicklink {
    display: flex;
    gap: var(--fb-space-4);
    align-items: center;
    min-height: 110px;
    padding: var(--fb-space-5);
    color: var(--fb-primary-dark);
    text-decoration: none;
    background-color: var(--fb-white);
    border: 1px solid var(--fb-border);
    border-left: 5px solid var(--fb-accent);
    border-radius: var(--fb-radius);
    box-shadow: var(--fb-shadow-small);
    transition:
        transform var(--fb-transition),
        box-shadow var(--fb-transition),
        background-color var(--fb-transition);
}

.fb-quicklink:hover {
    color: var(--fb-primary-dark);
    background-color: var(--fb-primary-soft);
    box-shadow: var(--fb-shadow);
    transform: translateY(-2px);
}

.fb-quicklink-icon {
    display: grid;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    color: var(--fb-white);
    background-color: var(--fb-primary);
    border-radius: 50%;
    place-items: center;
}

.fb-quicklink-title {
    display: block;
    margin-bottom: var(--fb-space-1);
    font-weight: 750;
}

.fb-quicklink-text {
    display: block;
    color: var(--fb-text-muted);
    font-size: 0.9rem;
}


/* ==========================================================
   15. BUTTONS
   ========================================================== */

.fb-btn,
.btn {
    display: inline-flex;
    gap: var(--fb-space-2);
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--fb-radius-small);
    cursor: pointer;
    transition:
        color var(--fb-transition-fast),
        background-color var(--fb-transition-fast),
        border-color var(--fb-transition-fast),
        transform var(--fb-transition-fast);
}

.fb-btn:hover,
.btn:hover {
    transform: translateY(-1px);
}

.fb-btn-primary,
.btn-primary {
    color: var(--fb-white);
    background-color: var(--fb-primary);
    border-color: var(--fb-primary);
}

.fb-btn-primary:hover,
.fb-btn-primary:focus,
.btn-primary:hover,
.btn-primary:focus {
    color: var(--fb-white);
    background-color: var(--fb-primary-dark);
    border-color: var(--fb-primary-dark);
}

.fb-btn-secondary,
.btn-secondary {
    color: var(--fb-primary-dark);
    background-color: var(--fb-accent);
    border-color: var(--fb-accent);
}

.fb-btn-secondary:hover,
.fb-btn-secondary:focus,
.btn-secondary:hover,
.btn-secondary:focus {
    color: var(--fb-primary-dark);
    background-color: #e3bd43;
    border-color: #e3bd43;
}

.fb-btn-outline {
    color: var(--fb-primary);
    background-color: transparent;
    border-color: var(--fb-primary);
}

.fb-btn-outline:hover {
    color: var(--fb-white);
    background-color: var(--fb-primary);
}

.fb-btn-light {
    color: var(--fb-primary-dark);
    background-color: var(--fb-white);
    border-color: var(--fb-white);
}

.fb-btn-light:hover {
    color: var(--fb-primary-dark);
    background-color: var(--fb-accent-light);
    border-color: var(--fb-accent-light);
}

.fb-btn-large {
    min-height: 50px;
    padding: 0.9rem 1.5rem;
    font-size: 1.05rem;
}


/* ==========================================================
   16. HINWEISBOXEN
   ========================================================== */

.fb-box {
    margin-block: var(--fb-space-5);
    padding: var(--fb-space-5);
    background-color: var(--fb-white);
    border: 1px solid var(--fb-border);
    border-left: 5px solid var(--fb-primary);
    border-radius: var(--fb-radius);
}

.fb-box h2,
.fb-box h3,
.fb-box h4 {
    margin-bottom: var(--fb-space-3);
}

.fb-box-green {
    background-color: var(--fb-success-light);
    border-left-color: var(--fb-success);
}

.fb-box-gold {
    background-color: var(--fb-accent-light);
    border-left-color: var(--fb-accent);
}

.fb-box-info {
    background-color: var(--fb-info-light);
    border-left-color: var(--fb-info);
}

.fb-box-warning {
    background-color: var(--fb-warning-light);
    border-left-color: var(--fb-warning);
}

.fb-box-danger {
    background-color: var(--fb-danger-light);
    border-left-color: var(--fb-danger);
}


/* ==========================================================
   17. BILDER UND GALERIEN
   ========================================================== */

.fb-image {
    overflow: hidden;
    border-radius: var(--fb-radius-large);
    box-shadow: var(--fb-shadow-small);
}

.fb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fb-image-wide {
    aspect-ratio: 16 / 9;
}

.fb-image-square {
    aspect-ratio: 1 / 1;
}

.fb-image-portrait {
    aspect-ratio: 4 / 5;
}

.fb-gallery {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--fb-space-4);
}

.fb-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--fb-radius);
    box-shadow: var(--fb-shadow-small);
}


/* ==========================================================
   18. LISTEN
   ========================================================== */

.fb-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fb-list > li {
    position: relative;
    padding: var(--fb-space-3) 0 var(--fb-space-3) 1.6rem;
    border-bottom: 1px solid var(--fb-border);
}

.fb-list > li:last-child {
    border-bottom: 0;
}

.fb-list > li::before {
    position: absolute;
    top: 1.05rem;
    left: 0;
    width: 0.55rem;
    height: 0.55rem;
    content: "";
    background-color: var(--fb-accent);
    border-radius: 50%;
}

.fb-list-check > li::before {
    width: auto;
    height: auto;
    color: var(--fb-primary);
    font-weight: 800;
    content: "✓";
    background: none;
}


/* ==========================================================
   19. TERMIN- UND NACHRICHTENKARTEN
   ========================================================== */

.fb-news-item,
.fb-event-item {
    display: grid;
    gap: var(--fb-space-4);
    padding: var(--fb-space-5);
    background-color: var(--fb-white);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    box-shadow: var(--fb-shadow-small);
}

.fb-news-date,
.fb-event-date {
    color: var(--fb-text-muted);
    font-size: 0.875rem;
    font-weight: 650;
}

.fb-news-item h3,
.fb-event-item h3 {
    margin-bottom: var(--fb-space-2);
}

.fb-event-item {
    grid-template-columns: auto 1fr;
}

.fb-event-calendar {
    display: grid;
    width: 74px;
    overflow: hidden;
    text-align: center;
    background-color: var(--fb-white);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
}

.fb-event-calendar-month {
    padding: var(--fb-space-1) var(--fb-space-2);
    color: var(--fb-white);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    background-color: var(--fb-primary);
}

.fb-event-calendar-day {
    padding: var(--fb-space-2);
    color: var(--fb-primary-dark);
    font-size: 1.6rem;
    font-weight: 800;
}


/* ==========================================================
   20. JOOMLA HAUPTINHALT
   ========================================================== */

.site-grid {
    padding-top: var(--fb-space-5);
    padding-bottom: var(--fb-space-7);
}

main {
    min-width: 0;
}

.com-content-article,
.blog,
.blog-featured,
.category-list,
.contact,
.login,
.registration,
.profile {
    padding: clamp(1rem, 3vw, 2rem);
    background-color: var(--fb-white);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius-large);
    box-shadow: var(--fb-shadow-small);
}

.page-header {
    margin-bottom: var(--fb-space-5);
    padding-bottom: var(--fb-space-3);
    border-bottom: 4px solid var(--fb-accent);
}

.page-header h1,
.page-header h2 {
    margin-bottom: 0;
}

.article-info {
    color: var(--fb-text-muted);
    font-size: 0.9rem;
}


/* ==========================================================
   21. MODULE UND SIDEBARS
   ========================================================== */

.card,
.sidebar-right .moduletable,
.sidebar-left .moduletable,
.container-bottom-a .moduletable,
.container-bottom-b .moduletable,
.container-top-a .moduletable,
.container-top-b .moduletable {
    overflow: hidden;
    background-color: var(--fb-white);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius-large);
    box-shadow: var(--fb-shadow-small);
}

.card-header,
.sidebar-right .moduletable > h3,
.sidebar-left .moduletable > h3 {
    margin: 0;
    padding: var(--fb-space-4) var(--fb-space-5);
    color: var(--fb-white);
    background-color: var(--fb-primary);
    border-bottom: 4px solid var(--fb-accent);
}

.card-header h2,
.card-header h3,
.card-header h4 {
    margin: 0;
    color: var(--fb-white);
}

.card-body {
    padding: var(--fb-space-5);
}


/* ==========================================================
   22. BREADCRUMBS
   ========================================================== */

.breadcrumb {
    padding: var(--fb-space-3) var(--fb-space-4);
    background-color: var(--fb-white);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--fb-text-muted);
}

.breadcrumb-item.active {
    color: var(--fb-text-muted);
}


/* ==========================================================
   23. FORMULARE
   ========================================================== */

.form-label {
    color: var(--fb-primary-dark);
    font-weight: 650;
}

.form-control,
.form-select {
    min-height: 44px;
    color: var(--fb-text);
    background-color: var(--fb-white);
    border-color: var(--fb-border-dark);
    border-radius: var(--fb-radius-small);
}

textarea.form-control {
    min-height: 140px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--fb-primary);
    box-shadow:
        0 0 0 0.2rem rgb(49 91 52 / 18%);
}

.form-check-input:checked {
    background-color: var(--fb-primary);
    border-color: var(--fb-primary);
}


/* ==========================================================
   24. TABELLEN
   ========================================================== */

.table {
    --table-color: var(--fb-text);
    --table-bg: var(--fb-white);
    --table-border-color: var(--fb-border);
}

.table > :not(caption) > * > * {
    padding: var(--fb-space-3) var(--fb-space-4);
}

.table thead th {
    color: var(--fb-white);
    background-color: var(--fb-primary);
    border-color: var(--fb-primary-dark);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: var(--fb-primary-soft);
}

.table-hover > tbody > tr:hover > * {
    background-color: var(--fb-accent-light);
}


/* ==========================================================
   25. BADGES
   ========================================================== */

.fb-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0.2rem 0.65rem;
    color: var(--fb-white);
    font-size: 0.8rem;
    font-weight: 750;
    line-height: 1;
    background-color: var(--fb-primary);
    border-radius: var(--fb-radius-round);
}

.fb-badge-gold {
    color: var(--fb-primary-dark);
    background-color: var(--fb-accent);
}

.fb-badge-light {
    color: var(--fb-primary-dark);
    background-color: var(--fb-primary-light);
}


/* ==========================================================
   26. FOOTER
   ========================================================== */

.container-footer {
    margin-top: var(--fb-space-7);
    color: var(--fb-white);
    background-color: var(--fb-primary-dark);
    border-top: 5px solid var(--fb-accent);
}

.container-footer .grid-child {
    padding-top: var(--fb-space-6);
    padding-bottom: var(--fb-space-6);
}

.container-footer h2,
.container-footer h3,
.container-footer h4 {
    color: var(--fb-white);
}

.container-footer a {
    color: var(--fb-white);
}

.container-footer a:hover {
    color: var(--fb-accent);
}

.container-footer .mod-menu {
    margin-bottom: 0;
}

.container-footer .mod-menu a {
    text-decoration: none;
}


/* ==========================================================
   27. ZURÜCK-NACH-OBEN
   ========================================================== */

.back-to-top-link {
    color: var(--fb-white);
    background-color: var(--fb-primary);
    border: 2px solid var(--fb-white);
    border-radius: 50%;
    box-shadow: var(--fb-shadow);
}

.back-to-top-link:hover,
.back-to-top-link:focus {
    color: var(--fb-primary-dark);
    background-color: var(--fb-accent);
}


/* ==========================================================
   28. HILFSKLASSEN
   ========================================================== */

.fb-text-center {
    text-align: center;
}

.fb-text-left {
    text-align: left;
}

.fb-text-right {
    text-align: right;
}

.fb-text-muted {
    color: var(--fb-text-muted);
}

.fb-text-green {
    color: var(--fb-primary);
}

.fb-text-gold {
    color: var(--fb-accent-dark);
}

.fb-bg-white {
    background-color: var(--fb-white);
}

.fb-bg-light {
    background-color: var(--fb-primary-soft);
}

.fb-bg-green {
    color: var(--fb-white);
    background-color: var(--fb-primary);
}

.fb-shadow {
    box-shadow: var(--fb-shadow);
}

.fb-shadow-small {
    box-shadow: var(--fb-shadow-small);
}

.fb-radius {
    border-radius: var(--fb-radius);
}

.fb-radius-large {
    border-radius: var(--fb-radius-large);
}

.fb-full-width {
    width: 100%;
}

.fb-mx-auto {
    margin-inline: auto;
}

.fb-mt-0 {
    margin-top: 0;
}

.fb-mt-4 {
    margin-top: var(--fb-space-4);
}

.fb-mt-5 {
    margin-top: var(--fb-space-5);
}

.fb-mt-6 {
    margin-top: var(--fb-space-6);
}

.fb-mb-0 {
    margin-bottom: 0;
}

.fb-mb-4 {
    margin-bottom: var(--fb-space-4);
}

.fb-mb-5 {
    margin-bottom: var(--fb-space-5);
}

.fb-mb-6 {
    margin-bottom: var(--fb-space-6);
}

.fb-p-4 {
    padding: var(--fb-space-4);
}

.fb-p-5 {
    padding: var(--fb-space-5);
}

.fb-p-6 {
    padding: var(--fb-space-6);
}


/* ==========================================================
   29. RESPONSIVE DARSTELLUNG
   ========================================================== */

@media (max-width: 991.98px) {
    .fb-grid-3,
    .fb-grid-4 {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .container-header .navbar-brand {
        padding-block: var(--fb-space-3);
    }

    .container-header .container-nav {
        padding-bottom: var(--fb-space-3);
    }

    .container-header .mod-menu > li > a,
    .container-header .mod-menu > li > button,
    .container-header .mod-menu > li > span {
        width: 100%;
        min-height: 2.75rem;
        padding-inline: var(--fb-space-4);
    }

    .fb-section {
        padding-block: var(--fb-space-7);
    }

    .fb-section-large {
        padding-block: var(--fb-space-8);
    }
}

@media (max-width: 767.98px) {
    .fb-grid-2,
    .fb-grid-3,
    .fb-grid-4 {
        grid-template-columns: 1fr;
    }

    .fb-hero {
        min-height: 440px;
    }

    .fb-hero-small {
        min-height: 300px;
    }

    .fb-event-item {
        grid-template-columns: 1fr;
    }

    .fb-event-calendar {
        width: 68px;
    }

    .fb-section {
        padding-block: var(--fb-space-6);
    }

    .fb-section-large {
        padding-block: var(--fb-space-7);
    }
}

@media (max-width: 575.98px) {
    :root {
        --fb-space-8: 3rem;
        --fb-space-9: 4rem;
    }

    .site-grid {
        padding-top: var(--fb-space-4);
    }

    .container-header .site-title {
        font-size: 1.35rem;
    }

    .container-header .site-description {
        font-size: 0.85rem;
    }

    .container-header .navbar-brand img {
        max-height: 65px;
    }

    .com-content-article,
    .blog,
    .blog-featured,
    .category-list,
    .contact,
    .login,
    .registration,
    .profile {
        padding: var(--fb-space-4);
    }

    .fb-card-body,
    .fb-card-header,
    .fb-card-footer {
        padding: var(--fb-space-4);
    }
}


/* ==========================================================
   30. DRUCKANSICHT
   ========================================================== */

@media print {
    .container-header,
    .container-footer,
    .sidebar-left,
    .sidebar-right,
    .breadcrumb,
    .back-to-top-link,
    .fb-btn,
    .btn {
        display: none !important;
    }

    body {
        color: #000000;
        background: #ffffff;
    }

    .com-content-article {
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    a {
        color: #000000;
        text-decoration: underline;
    }
}


/* ==========================================================
   31. BEWEGUNGSREDUZIERUNG
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}




/* ==========================================================
   HERO – VORBEREITUNG UND BREITENTEST
   ========================================================== */

.container-banner {
    max-width: none;
    padding: 0;
}

.container-banner > * {
    width: 100%;
}

.fb-hero-test {
    width: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    color: var(--fb-white);
    background:
        linear-gradient(
            135deg,
            var(--fb-primary-dark),
            var(--fb-primary)
        );
    border-bottom: 4px solid var(--fb-accent);
}

.fb-hero-test strong {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

/* ==========================================================
   HEADER MIT GEMEINDEWAPPEN
   ========================================================== */

.container-header .navbar-brand {
    display: flex;
    gap: 1rem;
    align-items: center;
    width: 100%;
    padding-block: 1rem;
}

.container-header .navbar-brand a {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.container-header .navbar-brand img {
    flex: 0 0 auto;
    width: auto;
    max-width: 82px;
    max-height: 92px;
    object-fit: contain;
}

.container-header .site-title {
    display: block;
    margin: 0;
    color: var(--fb-white);
    font-size: clamp(1.45rem, 2.6vw, 2.15rem);
    font-weight: 750;
    line-height: 1.15;
}

.container-header .site-description {
    display: block;
    margin-top: 0.35rem;
    color: rgb(255 255 255 / 88%);
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    line-height: 1.4;
}

@media (max-width: 767.98px) {
    .container-header .navbar-brand {
        gap: 0.75rem;
        padding-block: 0.75rem;
    }

    .container-header .navbar-brand a {
        gap: 0.75rem;
    }

    .container-header .navbar-brand img {
        max-width: 58px;
        max-height: 68px;
    }

    .container-header .site-title {
        font-size: 1.3rem;
    }

    .container-header .site-description {
        font-size: 0.82rem;
    }
}

/* ==========================================================
   EIGENER MARKENBEREICH IM HEADER
   ========================================================== */

.fb-header-brand 
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-block: 1rem;
}
.container-header .grid-child {
    width: 100%;
}
.fb-header-home {
    display: inline-flex;
    gap: 1rem;
    align-items: center;
    color: var(--fb-white);
    text-decoration: none;
}

.fb-header-home:hover {
    color: var(--fb-white);
}

.fb-header-home img {
    width: auto;
    max-width: 78px;
    max-height: 88px;
    object-fit: contain;
}

.fb-header-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.fb-header-title {
    color: var(--fb-white);
    font-size: clamp(1.45rem, 2.5vw, 2.1rem);
    font-weight: 750;
    line-height: 1.15;
}

.fb-header-subtitle {
    color: rgb(255 255 255 / 88%);
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    line-height: 1.4;
}

@media (max-width: 767.98px) {
    .fb-header-brand {
        padding-block: 0.75rem;
    }

    .fb-header-home {
        gap: 0.75rem;
    }

    .fb-header-home img {
        max-width: 58px;
        max-height: 66px;
    }

    .fb-header-title {
        font-size: 1.25rem;
    }

    .fb-header-subtitle {
        font-size: 0.8rem;
    }
}

/* ==========================================================
   NAVIGATION ALS EIGENE LEISTE
   ========================================================== */

.container-header .container-nav {
    width: 100%;
    max-width: none;
    padding: 0;
    background-color: var(--fb-primary-dark);
    border-top: 1px solid rgb(255 255 255 / 12%);
}

.container-header .container-nav > .mod-menu {
    width: min(
        calc(100% - 2rem),
        var(--fb-container-width)
    );
    margin-inline: auto;
}

.container-header .mod-menu {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    min-height: 52px;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > button,
.container-header .mod-menu > li > span {
    min-height: 44px;
    padding: 0.65rem 1rem;
    border-radius: 0;
}

.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
    color: var(--fb-primary-dark);
    background-color: var(--fb-accent);
}

@media (max-width: 991.98px) {
    .container-header .container-nav {
        padding: 0.5rem 1rem;
    }

    .container-header .container-nav > .mod-menu {
        width: 100%;
    }

    .container-header .mod-menu {
        display: block;
        min-height: auto;
    }
}