:root {
    --primary-gold: #C7923A;
    --primary-gold-soft: #E3B56A;
    --brown: #5A3A1F;
    --light-beige: #F7F1E7;
    --text-dark: #333333;
    --accent-green: #7C8A5A;
}

/* -----------------------------------
   HEADER & LOGO
----------------------------------- */
.header-logo-wrapper {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    background: var(--primary-gold);
}

.header-logo img {
    max-height: 140px;
    height: auto;
    width: auto;
    padding: 15px 0;
    object-fit: contain;
    display: block;
}

.header-text {
    margin-top: 10px;
}

/* -----------------------------------
   UTILITY BAR
----------------------------------- */
.utility-bar {
    background: var(--brown);
    color: #fff;
    font-size: 0.85rem;
    padding: 6px 0;
}

.utility-bar a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.utility-bar a:hover {
    color: var(--primary-gold);
}

/* -----------------------------------
   GLOBAL PAGE STYLES
----------------------------------- */
body.bg-page {
    background: var(--light-beige);
    color: var(--text-dark);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bg-primary-gold {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-soft) 100%);
    color: white !important;
}

/* -----------------------------------
   NAVIGATION
----------------------------------- */
.bg-brown {
    background-color: var(--brown) !important;
}

.navbar-nav .nav-link {
    color: #f8f5f0 !important;
    padding: 12px 20px;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: color 0.25s ease, background-color 0.25s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-gold) !important;
    background-color: rgba(255, 255, 255, 0.05);
}

.navbar-nav .nav-link.active {
    background: linear-gradient(90deg, var(--primary-gold) 0%, var(--primary-gold-soft) 100%);
    color: #fff !important;
    border-radius: 4px;
}

/* Unterstreich-Animation */
.navbar-nav > .nav-item:not(.parent) > .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav > .nav-item:not(.parent) > .nav-link:hover::after,
.navbar-nav > .nav-item:not(.parent) > .nav-link.active::after {
    width: 60%;
}

/* Joomla 6 Dropdown */
.nav-item.parent { position: relative; }

.nav-item.parent:hover > .mod-menu__sub {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.mod-menu__sub {
    background-color: var(--brown);
    border-radius: 6px;
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: block;
    visibility: hidden;
}

.mod-menu__sub .dropdown-item {
    color: #f8f5f0;
    padding: 10px 18px;
    font-weight: 500;
    display: block;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.mod-menu__sub .dropdown-item:hover {
    background-color: rgba(255,255,255,0.08);
    color: var(--primary-gold);
}

/* Pfeile entfernen */
.mod-menu__toggle-sub .icon-chevron-down,
.navbar-nav .dropdown-toggle::after,
.mod-menu__heading.dropdown-toggle::after {
    display: none !important;
}

/* -----------------------------------
   HERO
----------------------------------- */
.hero-section {
    background: radial-gradient(circle at top left, #ffffff 0, var(--light-beige) 55%, #e8dcc8 100%);
}

/* -----------------------------------
   CONTENT WIDTH
----------------------------------- */
.container,
.container-component,
.com-content-article,
#content,
.main-content {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Erzwingt 2-8-2 Layout */
.container > .row > [class*="col-"] {
    flex: 0 0 auto;
}

.col-md-2 {
    width: 16.666% !important;
}

.col-md-8 {
    width: 66.666% !important;
}

/* -----------------------------------
   CARDS
----------------------------------- */
.card {
    border-radius: 0.75rem;
}

.card-body {
    padding: 2rem;
}

/* -----------------------------------
   LINKS
----------------------------------- */
a {
    color: var(--primary-gold);
}

a:hover {
    color: var(--brown);
}

/* -----------------------------------
   TABLES
----------------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    font-size: 1rem;
    color: #333;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

table thead th {
    background: var(--primary-gold);
    color: #fff;
    text-align: left;
    padding: 1rem 1.2rem;
    font-weight: 600;
    border-bottom: 3px solid var(--primary-gold-soft);
    letter-spacing: 0.4px;
    font-size: 1.05rem;
}

table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #eee;
    line-height: 1.45;
}

table tbody tr:nth-child(even) {
    background: #faf7f0;
}

table tbody tr:hover {
    background: #f3e8d7;
    transition: background 0.2s ease;
}

table tbody tr:last-child td {
    border-bottom: none;
}

table td + td,
table th + th {
    border-left: 1px solid #f0e6d8;
}

/* -----------------------------------
   BUTTONS
----------------------------------- */
.dclh-btn {
    display: inline-block;
    padding: 0.65rem 1.4rem;
    border-radius: 6px;
    border: 1px solid var(--dclh-accent, #b87333);
    background: var(--dclh-accent, #b87333);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.dclh-btn:hover {
    background: transparent;
    color: var(--dclh-accent, #b87333);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.dclh-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.dclh-btn-outline {
    background: transparent;
    color: var(--dclh-accent, #b87333);
}

.dclh-btn-outline:hover {
    background: var(--dclh-accent, #b87333);
    color: #fff;
}

.dclh-btn-soft {
    background: rgba(184,115,51,0.12);
    border-color: rgba(184,115,51,0.25);
    color: var(--dclh-accent, #b87333);
}

.dclh-btn-soft:hover {
    background: rgba(184,115,51,0.22);
}

/* -----------------------------------
   CONTACT CARDS
----------------------------------- */
.contact-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    height: 100%;
}

.contact-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
    color: var(--primary-gold);
    font-weight: 600;
}

.contact-card p {
    margin: 0.2rem 0;
    line-height: 1.5;
}

.contact-card a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* -----------------------------------
   CONTACT GRID (3 SPALTEN)
----------------------------------- */
.contact-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
}

.contact-grid > .blog-item,
.contact-grid > .com-content-category-blog__item {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
    }
}

/* -----------------------------------
   FOOTER
----------------------------------- */

footer a {
    color: var(--primary-gold);
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-gold-soft);
    text-decoration: underline;

/* -----------------------------------
   LAYOUT: FOOTER FIX BOTTOM
----------------------------------- */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
}

/* Hauptinhalt soll wachsen */
#wrapper {
    flex: 1 0 auto;
}

/* Footer bleibt unten */
footer {
    flex-shrink: 0;
}