/* ==========================================================================
   site.css – Steuerkanzlei Detlef U. Müller-Greven
   Custom styles on top of Bootstrap 5 — FULL-WIDTH LAYOUT
   ========================================================================== */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
    --color-brand-gold:    #e8c96d;
    --color-brand-gold-light: #f0d88a;
    --color-brand-blue:    #1a5276;
    --color-brand-blue-dark: #0e3a55;
    --color-brand-teal:    #2a7a8c;
    --color-heading:       #1a5276;
    --color-text:          #333333;
    --color-text-light:    #555555;
    --color-bg-light:      #fafafa;
    --color-footer-bg:     #2c3e50;
    --color-footer-text:   #bdc3c7;
    --color-white:         #ffffff;
    --color-underline:     #e8c96d;
    --color-divider:       #d4a843;
    --color-light-blue: #4aafc4;

    --font-heading: 'Roboto Condensed', sans-serif;
    --font-body:    'Roboto Condensed', sans-serif;

    --shadow-soft: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;

    /* Full-width horizontal padding */
    --content-padding-x: 4rem;
}

/* ---------- Base / Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Push footer to bottom on short-content pages */
.leistungen-page,
.hero-section,
.services-section,
.exhibitions-section {
    flex: 1 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    transition: color 0.25s ease;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-weight: 700;
    line-height: 1.3;
}

/* ---------- Full-Width Content Wrapper ---------- */
.content-wrapper {
    width: 100%;
    max-width: 100%;
    padding-left: var(--content-padding-x);
    padding-right: var(--content-padding-x);
}

/* ==========================================================================
   HEADER & NAVBAR – Split gold/navy design
   ========================================================================== */

/* Top teal accent stripe */
.header-stripe {
    height: 8px;
    background: linear-gradient(90deg,
    var(--color-brand-gold) 0%,
    var(--color-brand-gold) 35%,
    #2e8b7a 35%,
    #2e8b7a 40%,
    #4aafc4 40%,
    #4aafc4 58%,
    #1a5276 58%,
    #1a5276 100%
    );
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar-custom {
    padding: 0;
    background: none;
    border: none;
}

/* Split layout container */
.navbar-split {
    display: flex;
    width: 100%;
    min-height: 60px;
}

/* Gold left side */
.navbar-gold {
    background-color: var(--color-brand-gold);
    display: flex;
    align-items: center;
    padding: 0.75rem 2rem 0.75rem var(--content-padding-x);
    flex-shrink: 0;
    width: 35%;
    min-width: 320px;
    /* Angled cut */
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 100%, 0 100%);
    padding-right: 3.5rem;
}

/* Navy right side */
.navbar-navy {
    background-color: var(--color-brand-blue-dark);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem var(--content-padding-x) 0.75rem 2rem;
    flex-grow: 1;
    margin-left: -30px;
    overflow-x: clip;
}

/* Brand logo image */
.navbar-custom .navbar-brand {
    padding: 0;
    margin: 0;
}

.navbar-custom .brand-logo {
    height: 45px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.navbar-custom .brand-logo:hover {
    opacity: 0.85;
}

.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus {
    text-decoration: none;
}

/* Nav links – gold on navy */
.navbar-custom .nav-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-brand-gold-light);
    padding: 0.5rem 0.75rem;
    transition: color 0.25s ease, opacity 0.25s ease;
    white-space: nowrap;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
    color: var(--color-white);
}

.navbar-custom .nav-link.active {
    color: var(--color-white);
}

.nav-separator {
    display: flex;
    align-items: center;
    color: var(--color-brand-gold-light);
    opacity: 0.5;
    padding: 0 0.05rem;
    font-size: 0.85rem;
    user-select: none;
}

/* Toggler – white icon for navy background */
.navbar-custom .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    padding: 0.4rem 0.65rem;
}

.navbar-custom .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='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Collapsed menu on navy background */
.navbar-navy .navbar-collapse {
    flex-grow: 0;
}

/* Dropdown menu for Leistungen */
.dropdown-menu-custom {
    background-color: var(--color-brand-blue-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 0.5rem 0;
    margin-top: 0;
    min-width: 240px;
}

.dropdown-menu-custom .dropdown-item {
    color: var(--color-brand-gold-light);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu-custom .dropdown-item:hover,
.dropdown-menu-custom .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.dropdown-menu-custom .dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
}

.dropdown-menu-custom .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.25rem 0;
}

/* Keep dropdown open on hover for desktop */
@media (min-width: 992px) {
    .nav-item.dropdown:hover > .dropdown-menu-custom {
        display: block;
    }

    /* Prevent right-side dropdowns from overflowing viewport */
    .navbar-navy .nav-item.dropdown {
        position: relative;
    }

    .dropdown-menu-custom.dropdown-menu-end {
        right: 0;
        left: auto;
    }
}

/* ==========================================================================
   LEISTUNGEN SIDEBAR NAVIGATION
   ========================================================================== */
.leistungen-sidebar {
    background-color: var(--color-bg-light);
    border-left: 4px solid var(--color-brand-blue);
    padding: 1.5rem 1.2rem;
    position: sticky;
    top: 90px; /* below sticky header */
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-brand-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav > li {
    margin-bottom: 0.3rem;
}

.sidebar-link {
    display: block;
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--color-brand-teal);
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.sidebar-link:hover {
    color: var(--color-brand-blue-dark);
    padding-left: 0.3rem;
}

.sidebar-link.active {
    color: var(--color-brand-gold);
    font-weight: 700;
}

.sidebar-subnav {
    list-style: none;
    padding: 0.2rem 0 0.3rem 0.5rem;
    margin: 0;
}

.sidebar-subnav li a {
    display: block;
    font-size: 0.87rem;
    color: var(--color-text-light);
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.sidebar-subnav li a:hover {
    color: var(--color-brand-blue);
}

/* Active subnav item (highlighted via JS) */
.sidebar-subnav li a.active {
    color: var(--color-brand-gold);
    font-weight: 700;
}

/* Scroll offset for anchor targets - accounts for sticky header */
.content-subtitle[id] {
    scroll-margin-top: 100px;
}

/* ==========================================================================
   LEISTUNGEN SUB-PAGES LAYOUT
   ========================================================================== */
.leistungen-page {
    padding: 3rem 0 3.5rem;
    background-color: var(--color-white);
}

.content-text {
    font-size: 0.97rem;
    color: var(--color-text-light);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.content-subtitle {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    color: var(--color-brand-blue);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

/* Content table */
.content-table {
    font-size: 0.93rem;
}

.content-table .table-label {
    background-color: var(--color-brand-blue);
    color: var(--color-white);
    font-weight: 600;
    width: 35%;
    vertical-align: middle;
}

.content-table td {
    vertical-align: middle;
    padding: 0.6rem 1rem;
}

/* Blockquotes */
.content-quote {
    border-left: 4px solid var(--color-brand-gold);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: rgba(232, 201, 109, 0.08);
    font-style: italic;
    color: var(--color-text);
    font-size: 0.97rem;
    line-height: 1.7;
}

.content-quote footer {
    font-style: normal;
    font-size: 0.88rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

/* Emphasis text */
.content-emphasis {
    font-size: 1rem;
}

/* Ordered list for mediation */
.content-ordered-list {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-ordered-list li {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.65;
    margin-bottom: 0.4rem;
    padding-left: 0.3rem;
}

/* ==========================================================================
   KANZLEI PAGES
   ========================================================================== */
.kanzlei-portrait {
    max-width: 85%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.kanzlei-info-box {
    background-color: var(--color-bg-light);
    border-left: 4px solid var(--color-brand-gold);
    padding: 1rem 1.2rem;
}

/* Team photo - render at native size to avoid blur */
.team-photo-wrapper {
    text-align: left;
}

.team-photo {
    max-width: 464px;
    width: 100%;
    height: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.team-card {
    background-color: var(--color-bg-light);
    padding: 1rem 1.2rem;
    border-left: 3px solid var(--color-brand-teal);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.team-name {
    font-weight: 700;
    color: var(--color-brand-blue);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.team-role {
    color: var(--color-text-light);
    font-size: 0.87rem;
    margin-bottom: 0;
}

/* Gallery grid */
.gallery-grid .gallery-image {
    width: 100%;
    max-width: 160px;
    height: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid .gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Smaller subtitle for sub-sections */
.content-subtitle-sm {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-brand-blue);
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

/* ==========================================================================
   AKTUELLES PAGES
   ========================================================================== */

/* Termine tables */
.termine-table {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.termine-table .table-label {
    background-color: var(--color-brand-blue);
    color: var(--color-white);
    font-weight: 600;
    vertical-align: middle;
}

.termine-table td {
    vertical-align: middle;
    padding: 0.5rem 0.8rem;
}

/* News article items */
.news-item {
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-weight: 700;
    color: var(--color-brand-teal);
    font-size: 0.88rem;
    white-space: nowrap;
}

.news-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-brand-blue);
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.news-title a {
    color: var(--color-brand-blue);
}

.news-title a:hover {
    color: var(--color-brand-teal);
}

.news-category {
    font-size: 0.82rem;
    color: var(--color-text-light);
    margin-bottom: 0.3rem;
}

.news-readmore {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-brand-teal);
}

.news-readmore:hover {
    color: var(--color-brand-blue);
}

/* Meldungen category links */
.meldungen-link {
    display: block;
    font-size: 0.97rem;
    color: var(--color-text);
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.meldungen-link:hover {
    color: var(--color-brand-blue);
    padding-left: 0.5rem;
}

/* Steuer-News API content wrapper */
.steuer-news-feed {
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--color-text);
}

.steuer-news-feed a {
    color: var(--color-brand-blue);
    font-weight: 600;
}

.steuer-news-feed a:hover {
    color: var(--color-brand-teal);
}

/* Older news link */
.older-news-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-brand-teal);
}

.older-news-link:hover {
    color: var(--color-brand-blue);
}

/* ==========================================================================
   KONTAKT PAGES
   ========================================================================== */
.kontakt-card {
    background-color: var(--color-bg-light);
    border-left: 4px solid var(--color-brand-teal);
    padding: 1.5rem 2rem;
    max-width: 550px;
}

.kontakt-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.kontakt-info-item:last-child {
    margin-bottom: 0;
}

.kontakt-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--color-brand-blue);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.kontakt-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-brand-teal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.1rem;
}

.kontakt-value {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 0;
}

.kontakt-value a {
    color: var(--color-brand-teal);
    font-weight: 600;
}

.kontakt-value a:hover {
    color: var(--color-brand-blue);
}

.oeffnungszeiten-table {
    font-size: 0.95rem;
    color: var(--color-text);
}

.oeffnungszeiten-table td {
    padding: 0.25rem 1.2rem 0.25rem 0;
    vertical-align: top;
}

.oeffnungszeiten-table td:first-child {
    font-weight: 600;
    color: var(--color-text);
}

/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 5.5rem;
    right: 2rem;
    z-index: 1020;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--color-brand-blue);
    color: var(--color-white);
    border: none;
    padding: 0.6rem 1rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, background-color 0.25s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--color-brand-teal);
}

.scroll-top-btn svg {
    flex-shrink: 0;
}

/* ==========================================================================
   SITEMAP PAGE
   ========================================================================== */
.sitemap-section {
    margin-bottom: 2rem;
}

.sitemap-heading {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-brand-blue);
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid var(--color-brand-gold);
    display: inline-block;
}

.sitemap-heading a {
    color: var(--color-brand-blue);
}

.sitemap-heading a:hover {
    color: var(--color-brand-teal);
}

.sitemap-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.sitemap-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.25rem;
    font-size: 0.92rem;
    line-height: 1.6;
}

.sitemap-list li::before {
    content: "\25B8";
    position: absolute;
    left: 0;
    color: var(--color-brand-teal);
    font-size: 0.85rem;
}

.sitemap-list li a {
    color: var(--color-text);
    transition: color 0.2s ease;
}

.sitemap-list li a:hover {
    color: var(--color-brand-blue);
}

.sitemap-list ul {
    list-style: none;
    padding-left: 1rem;
    margin: 0.15rem 0 0.3rem;
}

.sitemap-list ul li {
    font-size: 0.87rem;
}

.sitemap-list ul li::before {
    content: "\203A";
    color: var(--color-brand-gold);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-accordion {
    border: none;
}

.faq-item {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: transparent;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-button {
    background-color: transparent;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-brand-blue);
    padding: 1.1rem 0;
    box-shadow: none !important;
    gap: 0.4rem;
    transition: color 0.3s ease;
}

.faq-button:not(.collapsed) {
    background-color: transparent;
    color: var(--color-brand-teal);
}

.faq-button:hover {
    color: var(--color-brand-teal);
}

.faq-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a5276'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
}

.faq-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232a7a8c'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-number {
    color: var(--color-brand-teal);
    font-weight: 700;
    margin-right: 0.3rem;
    min-width: 1.5rem;
}

.faq-body {
    padding: 0 0 1.2rem 1.9rem;
}

.faq-date {
    font-size: 0.82rem;
    color: var(--color-brand-teal);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

/* Smooth accordion transition */
.faq-accordion .accordion-collapse {
    transition: height 0.35s ease;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 3.5rem 0 2.5rem;
    background-color: var(--color-white);
}

.hero-title {
    font-size: 2.4rem;
    color: var(--color-brand-blue);
    margin-bottom: 0.4rem;
}

.hero-underline {
    width: 100%;
    max-width: 430px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-light-blue), var(--color-brand-blue));
    border-radius: 2px;
    margin-bottom: 1.8rem;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--color-brand-teal);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.hero-list {
    list-style: disc;
    padding-left: 1.3rem;
    margin-bottom: 0;
}

.hero-list li {
    font-size: 0.97rem;
    color: var(--color-text);
    margin-bottom: 0.45rem;
    line-height: 1.6;
}

.hero-list li:last-child {
    margin-bottom: 0;
}

/* Portrait Image */
.hero-image-wrapper {
    margin-top: 0.5rem;
}

.hero-portrait {
    width: 100%;
    max-width: 70%;
    border-radius: 0;
    box-shadow: var(--shadow-medium);
    object-fit: cover;
}

/* ==========================================================================
   SECTION DIVIDERS – Edge to edge
   ========================================================================== */
.section-divider {
    padding: 0;
}

.divider-line {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, var(--color-brand-gold), var(--color-brand-blue), var(--color-brand-gold));
    opacity: 0.7;
    margin: 0;
}

/* ==========================================================================
   SERVICES SECTION – "Steuerberatung für alle"
   ========================================================================== */
.services-section {
    padding: 3rem 0;
    background-color: var(--color-bg-light);
}

.section-title {
    font-size: 1.9rem;
    color: var(--color-brand-blue);
    margin-bottom: 0.4rem;
}

.section-underline {
    width: 100%;
    max-width: 330px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-light-blue), var(--color-brand-blue));
    border-radius: 2px;
    margin-bottom: 1.6rem;
}

.services-text {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.75;
    margin-bottom: 1rem;
}

/* Compass Image */
.compass-wrapper {
    padding: 1rem;
}

.compass-image {
    max-width: 70%;
    width: 100%;
    transition: transform 0.4s ease;
}

.compass-image:hover {
    transform: rotate(5deg) scale(1.03);
}

/* ==========================================================================
   EXHIBITIONS SECTION
   ========================================================================== */
.exhibitions-section {
    padding: 3rem 0 3.5rem;
    background-color: var(--color-white);
}

.exhibitions-text {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.75;
    margin-bottom: 0.5rem;
}

.exhibitions-artists {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 2rem;
}

/* Gallery */
.gallery-row {
    margin-top: 0.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 0;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    max-width: 300px;
    max-height: 300px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}

.gallery-image {
    width: 100%;
    height: auto;
    max-width: 300px;
    max-height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* ==========================================================================
   LEISTUNGEN PAGE – Ihr Berater
   ========================================================================== */

/* Page Hero */
.page-hero {
    padding: 3rem 0 2.5rem;
    background-color: var(--color-white);
}

.page-title {
    font-size: 2.2rem;
    color: var(--color-brand-blue);
    margin-bottom: 0.4rem;
}

.page-hero-image-wrapper {
    margin-bottom: 1.5rem;
}

.page-hero-portrait {
    width: 100%;
    max-width: 100%;
    box-shadow: var(--shadow-medium);
    object-fit: cover;
}

.berater-sidebar {
    margin-top: 0.5rem;
}

.berater-sidebar p {
    font-size: 0.93rem;
    color: var(--color-text);
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.lead-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.berater-emphasis {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 700;
    color: var(--color-brand-blue-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    letter-spacing: 0.02em;
}

.berater-text {
    font-size: 0.97rem;
    color: var(--color-text-light);
    line-height: 1.75;
    margin-bottom: 1rem;
}

/* Arrow lists (▶ style) */
.arrow-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.arrow-list li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.65;
    margin-bottom: 0.5rem;
}

.arrow-list li::before {
    content: "\25B8";
    position: absolute;
    left: 0;
    color: var(--color-brand-blue);
    font-size: 1rem;
    font-weight: 700;
}

/* Qualifications Section */
.qualifications-section {
    padding: 3rem 0;
    background-color: var(--color-bg-light);
}

/* Ehrenamt note */
.ehrenamt-note {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    background-color: rgba(232, 201, 109, 0.15);
    border-left: 4px solid var(--color-brand-gold);
}

.ehrenamt-note p {
    font-size: 0.93rem;
    color: var(--color-text);
    font-style: italic;
    margin-bottom: 0;
}

/* ==========================================================================
   FOOTER – Full width
   ========================================================================== */
.site-footer {
    background-color: #4e96c0;
    color: var(--color-footer-text);
    padding: 1.8rem 0;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.site-footer p {
    margin-bottom: 0.15rem;
}

.footer-company {
    font-weight: 600;
    color: var(--color-white);
    font-size: 0.95rem;
}

.footer-address,
.footer-phone {
    font-size: 0.85rem;
    color: var(--color-footer-text);
}

.footer-copyright {
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.88rem;
}

.footer-link {
    color: var(--color-footer-text);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    transition: color 0.25s ease;
}

.footer-link:hover {
    color: var(--color-brand-gold-light);
}

.footer-separator {
    color: var(--color-footer-text);
    opacity: 0.5;
    margin: 0 0.6rem;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

/* Large devices (desktops, < 1200px) */
@media (max-width: 1199.98px) {
    :root {
        --content-padding-x: 3rem;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-portrait {
        max-width: 65%;
    }
}

/* Medium devices (tablets, < 992px) */
@media (max-width: 991.98px) {
    :root {
        --content-padding-x: 2.5rem;
    }

    .hero-section {
        padding: 2.5rem 0 2rem;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .compass-image {
        max-width: 65%;
    }

    .nav-separator {
        display: none;
    }

    .navbar-split {
        flex-direction: column;
    }

    .navbar-gold {
        clip-path: none;
        padding-right: 2rem;
        width: 100%;
    }

    .navbar-navy {
        margin-left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 1.5rem;
    }

    .navbar-custom .navbar-toggler {
        align-self: flex-end;
        margin-bottom: 0.3rem;
    }

    .navbar-custom .nav-link {
        padding: 0.6rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-custom .nav-link:last-child {
        border-bottom: none;
    }
}

/* Small devices (landscape phones, < 768px) */
@media (max-width: 767.98px) {
    :root {
        --content-padding-x: 1.5rem;
    }

    .hero-section {
        padding: 2rem 0 1.5rem;
        text-align: center;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-underline {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-list {
        text-align: left;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image-wrapper {
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .hero-portrait {
        max-width: 60%;
    }

    .services-section {
        text-align: center;
    }

    .section-underline {
        margin-left: auto;
        margin-right: auto;
    }

    .services-text {
        text-align: left;
        max-width: 540px;
        margin-left: auto;
        margin-right: auto;
    }

    .compass-wrapper {
        margin-top: 1.5rem;
    }

    .compass-image {
        max-width: 60%;
    }

    .exhibitions-section {
        text-align: center;
    }

    .exhibitions-text,
    .exhibitions-artists {
        text-align: left;
    }

    .site-footer {
        text-align: center;
    }

    .site-footer .text-md-start,
    .site-footer .text-md-end {
        text-align: center !important;
    }

    /* Leistungen page responsive */
    .page-hero {
        text-align: center;
    }

    .page-hero-image-wrapper {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .berater-sidebar {
        text-align: left;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .page-title {
        font-size: 1.7rem;
    }

    .berater-text,
    .lead-text {
        text-align: left;
    }

    .qualifications-section {
        padding: 2rem 0;
    }

    /* Leistungen sub-pages responsive */
    .leistungen-sidebar {
        border-left: none;
        border-top: 4px solid var(--color-brand-blue);
        margin-bottom: 2rem;
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .leistungen-page {
        padding: 2rem 0 2.5rem;
    }

    .content-subtitle {
        font-size: 1.25rem;
    }

    .content-subtitle[id] {
        scroll-margin-top: 80px;
    }
}

/* Extra small devices (phones, < 576px) */
@media (max-width: 575.98px) {
    :root {
        --content-padding-x: 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-list li {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .navbar-custom .brand-name {
        font-size: 1.25rem;
        padding: 0.2rem 0.7rem;
    }
}

/* ==========================================================================
   UTILITY / ANIMATION
   ========================================================================== */

/* Smooth fade-in on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section .content-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

.services-section .content-wrapper {
    animation: fadeInUp 0.6s ease-out 0.15s both;
}

.exhibitions-section .content-wrapper {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Print styles */
@media print {
    .navbar-custom,
    .site-footer {
        background-color: #fff !important;
        color: #000 !important;
    }

    .gallery-item {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}