/* Base Styling */
:root {
    --primary-blue: #1e6289;
    --primary-orange: #f26419;
    --text-dark: #2b2d42;
    --text-light: #5a6065;
    --bg-light: #fbfbfa;
    --bg-white: #ffffff;
    --border-color: #eef1f3;
    --shadow-subtle: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 8px 16px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-blue);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Top bar (Service Navigation) */
.top-bar {
    background-color: #f4f6f8;
    border-bottom: 1px solid var(--border-color);
    height: 32px;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.top-bar-links {
    display: flex;
    gap: 1.5rem;
}

.top-bar-links a {
    font-size: 0.8rem;
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.top-bar-links a:hover {
    color: var(--primary-orange);
}

.top-bar-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
}

.top-bar-phone:hover {
    color: var(--primary-orange);
}

.top-bar-phone svg {
    display: block;
    flex-shrink: 0;
}

.top-bar-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--primary-orange) !important;
    margin-left: 0.25rem;
}

.top-bar-contact:hover {
    color: var(--primary-blue) !important;
    opacity: 0.85;
}

.top-bar-contact svg {
    display: block;
    flex-shrink: 0;
}

/* Main Header */
#header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-subtle);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 122px;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 108px;
    width: auto;
    display: block;
}

/* Main Navigation */
#nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    height: 100%;
}

.menu-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.menu-item > a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.4rem 0;
    position: relative;
}

.menu-item > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

.menu-item > a:hover::after,
.menu-item.active > a::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-item > a:hover,
.menu-item.active > a {
    color: var(--primary-blue);
}

/* Dropdown toggle button — hidden on desktop, shown on mobile */
.dropdown-toggle {
    display: none;
}

/* Open state — applies at all widths so JS toggle works regardless of media query */
.has-dropdown.open > .dropdown {
    display: block !important;
    position: static !important;
    box-shadow: none !important;
    transform: none !important;
    left: auto !important;
    min-width: 0 !important;
    width: 100% !important;
}

/* Dropdown Menu */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
    list-style: none;
    min-width: 240px;
    border-radius: 4px;
    padding: 0.5rem 0;
    z-index: 1010;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: var(--bg-white);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

.dropdown li a {
    display: block;
    padding: 0.5rem 1.25rem;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.dropdown li a:hover {
    background-color: #f8f9fa;
    color: var(--primary-orange);
    padding-left: 1.5rem;
}

.menu-item.has-dropdown:hover .dropdown {
    display: block;
}

/* Mobile Nav Toggle */
.nav-toggle, .nav-toggle-label {
    display: none;
}

/* Hero Section */
.hero-section {
    background:
        linear-gradient(160deg, rgba(16, 52, 75, 0.88) 0%, rgba(242, 100, 25, 0.62) 100%),
        url('../images/hero_bg_new.jpg') no-repeat center 35%;
    background-size: cover;
    background-blend-mode: multiply;
    color: #ffffff;
    padding: 6rem 1.5rem;
    text-align: center;
    border-radius: 0 0 8px 8px;
    margin-bottom: 2rem;
}

.hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.85rem;
}

.hero-content h1 {
    color: #ffffff;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.hero-tagline {
    font-size: 1.35rem;
    font-weight: 400;
    max-width: 750px;
    margin: 0 auto 1rem;
    color: #f1f3f5;
    line-height: 1.3;
}

.hero-subtext {
    font-size: 1.05rem;
    color: #dee2e6;
    margin-bottom: 2rem;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: #ffffff;
    border: 2px solid var(--primary-orange);
}

.btn-primary:hover {
    background-color: #d85211;
    border-color: #d85211;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(242, 100, 25, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
}

.btn-text {
    font-weight: 600;
    color: var(--primary-blue);
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.btn-text:hover {
    color: var(--primary-orange);
}

/* Sections and Multi-Column Layouts */
.section-container {
    padding: 3.5rem 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

.row-2 {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

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

.bg-muted {
    background-color: #f4f6f8;
    width: 100%;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.mission-text p {
    font-size: 0.98rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Info Box */
.info-box {
    background-color: #eef4f7;
    border-left: 4px solid var(--primary-blue);
    padding: 1.75rem;
    border-radius: 6px;
    box-shadow: var(--shadow-subtle);
}

.info-box h4 {
    font-size: 1.15rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.info-box ul {
    list-style-type: none;
}

.info-box li {
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
    padding-left: 1.25rem;
    position: relative;
    color: #333d47;
}

.info-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
}

/* telc highlight styling */
.badge {
    background-color: var(--primary-orange);
    color: #ffffff;
    font-size: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.telc-text-block h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.telc-text-block p {
    font-size: 0.98rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.cta-inline {
    margin-top: 1.5rem;
}

/* Info Card (telc container) */
.info-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-subtle);
    text-align: center;
}

.telc-logo-img {
    max-height: 55px;
    width: auto;
    margin-bottom: 1rem;
}

.card-caption {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Online Training Block styling */
.online-box {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--shadow-subtle);
}

.online-info h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.online-info p {
    font-size: 0.98rem;
    color: var(--text-light);
}

.online-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.online-logo-img {
    max-height: 65px;
    width: auto;
}

/* Converted Typo3 custom classes styling */
.orange {
    color: var(--primary-orange);
    font-weight: 600;
}

.blau {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Default Inner Page Layout Styling */
.page-section {
    padding: 3rem 0;
}

.content-container {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}

.page-title {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 0;
}

.page-title::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    background-color: var(--primary-orange);
    margin-top: 0.65rem;
    border-radius: 2px;
}

.page-body h2 {
    margin-top: 2rem;
    font-size: 1.6rem;
    color: var(--primary-blue);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.4rem;
}

.page-body h3 {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.page-body p {
    margin-bottom: 1.25rem;
    font-size: 0.98rem;
    color: #2b2d42;
}

.page-body ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    list-style-type: square;
}

.page-body li {
    margin-bottom: 0.5rem;
    font-size: 0.98rem;
}

.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-subtle);
}

hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

/* Footer */
#footer {
    background-color: var(--text-dark);
    color: #e9ecef;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 4px solid var(--primary-blue);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.footer-info, .footer-meta {
    font-size: 0.88rem;
    color: #e9ecef; /* High-contrast off-white text */
    line-height: 1.6;
    text-align: center;
}

.footer-info a, .footer-meta a {
    color: #ffffff; /* Pure white links */
    font-weight: 700; /* Bolder highlighting */
    text-decoration: none; /* No underline */
    margin: 0 0.25rem;
}

.footer-info a:hover, .footer-meta a:hover {
    color: var(--primary-orange);
    text-decoration: none;
}

/* Service & Consolidation Layouts */
.intro-block {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.intro-block h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.25rem;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: rgba(30, 98, 137, 0.08);
    color: var(--primary-blue);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-tile:hover .service-icon {
    background-color: rgba(242, 100, 25, 0.12);
    color: var(--primary-orange);
}

.service-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background-color: rgba(242, 100, 25, 0.1);
    border-radius: 50px;
    padding: 0.35rem 0.8rem 0.35rem 0.45rem;
    align-self: flex-start;
}

.service-chip .service-icon {
    width: 22px;
    height: 22px;
    border-radius: 0;
    background-color: transparent;
    color: var(--primary-orange);
    flex-shrink: 0;
}

.service-chip .service-icon svg {
    width: 15px;
    height: 15px;
}

.service-chip-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-orange);
    white-space: nowrap;
}

.service-tile:hover .service-chip {
    background-color: rgba(242, 100, 25, 0.18);
}

.badge {
    display: inline-block;
    background-color: rgba(242, 100, 25, 0.1);
    color: var(--primary-orange);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    margin-bottom: 0.5rem;
}

.group-training .badge {
    background-color: rgba(30, 98, 137, 0.1);
    color: var(--primary-blue);
}

.individual-training .badge {
    background-color: rgba(242, 100, 25, 0.1);
    color: var(--primary-orange);
}

/* Leadership Card Specifics */
.leadership-card {
    background-color: #f0f5fa;
    border-left: 4px solid var(--primary-blue);
    padding: 2.25rem;
    border-radius: 8px;
}

.align-stretch {
    align-items: stretch;
}

.kultur-main {
    flex: 1.2;
}

.leadership-card {
    flex: 0.8;
}

/* Timeline/Ablaufplanung */
.process-section {
    margin-top: 3rem;
}

.process-intro {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 2rem;
}

.timeline {
    position: relative;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 3px;
    background-color: var(--border-color);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    display: flex;
    margin-bottom: 2.25rem;
    align-items: flex-start;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: var(--shadow-subtle);
}

.timeline-panel {
    margin-left: 1.75rem;
    background: var(--bg-white);
    padding: 1.25rem 1.50rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle);
    flex-grow: 1;
}

.timeline-panel h3 {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.timeline-panel p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Accordion/Themenworkshops */
.accordion {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-color);
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-white);
    display: block; /* Ensure correct summary/details rendering */
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    cursor: pointer;
    list-style: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    user-select: none;
    transition: background-color 0.2s ease;
}

.accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-header:hover {
    background-color: var(--bg-light);
}

.accordion-title {
    font-size: 1.15rem;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-orange);
    transition: transform 0.25s ease;
}

.accordion-item[open] .accordion-icon {
    transform: rotate(45deg);
}

.accordion-body {
    padding: 1.75rem;
    border-top: 1px solid var(--border-color);
    background-color: #fafbfc;
    line-height: 1.6;
    color: var(--text-dark);
}

.accordion-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.accordion-body li {
    margin-bottom: 0.5rem;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--text-dark) 0%, #172b38 100%);
    color: #ffffff;
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 3.5rem;
    box-shadow: var(--shadow-medium);
}

.cta-banner h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.cta-banner p {
    color: #ced4da;
    margin-bottom: 1.75rem;
    font-size: 1.1rem;
}

/* Back-to-top button */
#back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
    z-index: 900;
    pointer-events: none;
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#back-to-top:hover {
    background-color: var(--primary-orange);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .timeline::before {
        left: 15px;
    }
    .timeline-badge {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }
    .timeline-panel {
        margin-left: 1rem;
        padding: 1rem;
    }
}

/* TL;DR Summary Box */
.tldr-box {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-subtle);
}

.tldr-box h4 {
    color: var(--primary-orange);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tldr-box p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Languages Section & Grid */
.languages-section {
    background-color: var(--bg-light);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    margin-top: 3.5rem;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: var(--shadow-subtle);
}

.languages-section h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
}

.page-body img.team-lead-photo {
    max-width: 480px;
    width: 100%;
    border-radius: 8px;
    margin: 0 auto 2rem;
    display: block;
    box-shadow: var(--shadow-subtle);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.team-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-subtle);
    transition: box-shadow 0.2s ease;
    text-align: center;
}

.team-card:hover {
    box-shadow: var(--shadow-medium);
}

.page-body img.team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 1.1rem;
    border: 3px solid var(--bg-light);
    box-shadow: var(--shadow-subtle);
}

.team-card-body h3 {
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.team-quote {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.6;
}

.logo-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.1rem;
    margin: 2rem 0;
}

.logo-wall-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.15rem 1rem;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.logo-wall-item:hover {
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-medium);
}

.logo-wall-item img {
    max-width: 100%;
    max-height: 44px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.72;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.logo-wall-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.logo-wall-item span {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.3;
}

.logo-wall-item.no-logo span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

@media (max-width: 600px) {
    .logo-wall {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

.languages-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.lang-tag {
    background-color: var(--bg-white);
    color: var(--primary-blue);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--shadow-subtle);
    transition: all 0.2s ease;
}

.lang-tag:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Einstufungstest page */
.test-quickstart {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #154e6e 100%);
    border-radius: 10px;
    padding: 2rem 2rem 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.test-quickstart-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 1.1rem;
}

.test-quickstart .languages-grid {
    justify-content: center;
    margin-bottom: 1.25rem;
}

.test-quickstart .lang-tag {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
    font-size: 1rem;
    padding: 0.6rem 1.4rem;
}

.test-quickstart .lang-tag:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: #fff;
    transform: translateY(-2px);
}

.test-quickstart-meta {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    font-family: 'Montserrat', sans-serif;
}

.test-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 2.5rem 0;
}

.test-fact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.test-fact strong {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.25;
}

.test-fact span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.test-contact-card {
    margin-top: 2.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
}

.test-contact-card h4 {
    margin: 0 0 0.6rem;
    color: var(--text-dark);
}

.test-contact-card p {
    margin: 0.4rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.test-contact-card a {
    color: var(--primary-blue);
    font-weight: 500;
}

.test-contact-card a:hover {
    color: var(--primary-orange);
}

@media (max-width: 768px) {
    .test-facts {
        grid-template-columns: repeat(2, 1fr);
    }

    .test-quickstart {
        padding: 1.5rem 1.25rem 1.25rem;
    }
}

/* Mobile-only secondary nav items — hidden on desktop */
.menu-item-divider,
.menu-item-secondary {
    display: none;
}

/* Phone links */
.contact-cta-bar {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-secondary-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--primary-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: 2px solid var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-secondary-outline:hover {
    background: var(--primary-blue);
    color: #fff;
}

/* Phone links */
.tel-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.tel-link:hover {
    color: var(--primary-orange);
}

.btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-blue);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.2s ease;
}

.btn-phone:hover {
    background: var(--primary-orange);
    color: #fff;
}

.regional-info {
    color: var(--text-light);
    font-size: 0.95rem;
    max-width: 700px;
    margin: 1.5rem auto 0;
    line-height: 1.6;
}

/* Uniform CI styling for Accordion bodies */
.accordion-body h4 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-bottom: none;
    padding-bottom: 0;
}

.accordion-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.accordion-body ul {
    margin-bottom: 1.25rem;
    padding-left: 1.25rem;
    list-style-type: disc;
}

.accordion-body li {
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.accordion-body strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 900px) {
    .row-2 {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none; /* Hide service bar on mobile */
    }
    
    .header-container {
        height: 75px;
        padding: 0 1rem;
        align-items: center;
    }

    .logo-img {
        height: 62px;
    }
    
    .nav-toggle-label {
        display: flex;
        align-items: center;
        width: 25px;
        height: 25px;
        cursor: pointer;
        position: relative;
        z-index: 1001;
    }
    
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--text-dark);
        position: absolute;
        transition: transform 0.2s ease, top 0.2s ease;
    }
    
    .nav-toggle-label span::before {
        content: '';
        top: -6px;
    }
    
    .nav-toggle-label span::after {
        content: '';
        top: 6px;
    }
    
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
        box-shadow: var(--shadow-medium);
        gap: 1.25rem;
        align-items: flex-start;
        height: auto;
    }
    
    .menu-item {
        width: 100%;
        padding: 0;
        height: auto;
    }
    
    .menu-item.has-dropdown:hover .dropdown {
        display: none;
    }

    .has-dropdown {
        flex-wrap: wrap;
        align-items: center;
    }

    .has-dropdown > a {
        flex: 1;
    }

    .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-light);
        padding: 0.4rem;
        transition: transform 0.25s ease;
    }

    .has-dropdown.open > .dropdown-toggle {
        transform: rotate(180deg);
    }

    .has-dropdown > .dropdown {
        display: none;
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--border-color);
        border-radius: 0;
        padding: 0.25rem 0 0.25rem 1rem;
        margin-top: 0.25rem;
        min-width: unset;
    }

    .has-dropdown > .dropdown::before {
        display: none;
    }

    .menu-item > a::after {
        display: none;
    }

    .has-dropdown.open > .dropdown {
        display: block;
        position: static !important;
    }

    .has-dropdown > .dropdown li a {
        font-size: 0.9rem;
        padding: 0.45rem 0.5rem;
        color: var(--text-light);
    }

    .has-dropdown > .dropdown li a:hover {
        color: var(--primary-orange);
        background: none;
    }
    
    .nav-toggle:checked ~ .menu {
        display: flex;
    }

    .menu-item-divider {
        display: block;
        width: 100%;
        height: 1px;
        background: var(--border-color);
        margin: 0.25rem 0;
        padding: 0;
    }

    .menu-item-secondary {
        display: block;
        width: 100%;
        padding: 0;
        height: auto;
    }

    .menu-item-secondary a {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.65rem 0;
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-light);
        text-decoration: none;
    }

    .menu-item-secondary a:hover {
        color: var(--primary-orange);
    }
    
    .nav-toggle:checked + .nav-toggle-label span {
        background-color: transparent;
    }
    
    .nav-toggle:checked + .nav-toggle-label span::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .nav-toggle:checked + .nav-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
    }
    
    .hero-section {
        padding: 3.5rem 1rem;
        border-radius: 0;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .hero-tagline {
        font-size: 1.15rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .content-container {
        padding: 1.5rem;
    }
    
    .online-box {
        padding: 1.5rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
}

/* ── Prüfungstermin Info-Box ────────────────────────────────── */
.pruefungstermin-box {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border: 2px solid #f5a623;
    border-left: 6px solid #f5a623;
    border-radius: 10px;
    padding: 1.75rem 2rem;
    margin: 2.5rem 0 1.5rem 0;
    box-shadow: 0 4px 16px rgba(245, 166, 35, 0.15);
}

.pruefungstermin-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.pruefungstermin-content h3 {
    margin: 0 0 0.6rem 0;
    color: #8a5a00;
    font-size: 1.2rem;
    font-weight: 700;
}

.pruefungstermin-content p {
    margin: 0 0 1rem 0;
    color: #5a3c00;
    line-height: 1.65;
}

.pruefungstermin-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pruefungstermin-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f5a623;
    color: #fff;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.pruefungstermin-contact a:hover {
    background: #d4890a;
    transform: translateY(-1px);
}

.pruefungstermin-address {
    font-size: 0.9rem !important;
    color: #7a5200 !important;
    margin: 0 !important;
}

@media (max-width: 640px) {
    .pruefungstermin-box {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ── Team: Hero-Intro ───────────────────────────────── */
.team-lead-intro {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

.team-lead-text {
    flex: 1;
}

.team-lead-title {
    font-size: 2.2rem;
    color: var(--primary-blue);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.team-lead-title::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    background-color: var(--primary-orange);
    margin-top: 0.65rem;
    border-radius: 2px;
}

.team-lead-tagline {
    font-size: 1.15rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 1.1rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.team-lead-photo-wrap {
    flex: 1;
    max-width: 420px;
}

.team-lead-photo-wrap .team-lead-photo {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    object-fit: cover;
    max-height: 300px;
}

@media (max-width: 768px) {
    .team-lead-intro {
        flex-direction: column;
        gap: 1.5rem;
    }

    .team-lead-photo-wrap {
        max-width: 100%;
        width: 100%;
    }

    .team-lead-title {
        font-size: 1.8rem;
    }
}

/* ── Team-Card Kontakt-Icons ────────────────────────────────── */
.team-contact {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    justify-content: center;
}

.team-contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    transition: all 0.2s ease;
}

.team-contact-link:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
}

/* ── Basic Captcha – Eingabefeld sichtbar machen ────────────── */
/* Das Input-Feld für die Sicherheitsabfrage bekommt einen      */
/* klaren sichtbaren Rahmen, damit man es sofort findet.        */

.form-data.basic-captcha {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #f8f9fa;
    border: 2px solid var(--border-color, #dde4ed);
    border-radius: 10px;
}

.form-data.basic-captcha .form-label {
    font-weight: 600;
    color: var(--text-dark, #1a2a3a);
    margin-bottom: 0.75rem;
    display: block;
}

/* Das Captcha-Bild + Reload-Button nebeneinander */
.form-data.basic-captcha .form-input-addon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.form-data.basic-captcha img {
    border: 1px solid var(--border-color, #ccd4de);
    border-radius: 6px;
    height: 48px;
    width: auto;
}

.form-data.basic-captcha .reload-captcha-button {
    background: transparent;
    border: 1px solid var(--border-color, #ccd4de);
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    color: var(--text-light, #5a6a7a);
    transition: color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
}

.form-data.basic-captcha .reload-captcha-button svg {
    width: 18px;
    height: 18px;
}

.form-data.basic-captcha .reload-captcha-button:hover {
    color: var(--primary-blue, #1e6289);
    border-color: var(--primary-blue, #1e6289);
}

/* Das eigentliche Text-Eingabefeld – deutlich sichtbarer Rahmen */
.form-data.basic-captcha input[type="text"] {
    display: block;
    width: 100%;
    max-width: 260px;
    padding: 0.6rem 1rem;
    font-size: 1.05rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.1em;
    border: 2px solid var(--primary-blue, #1e6289) !important;
    border-radius: 6px;
    background: #ffffff;
    color: var(--text-dark, #1a2a3a);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 0 3px rgba(30, 98, 137, 0.1);
}

.form-data.basic-captcha input[type="text"]:focus {
    border-color: var(--primary-orange, #e8560a) !important;
    box-shadow: 0 0 0 3px rgba(232, 86, 10, 0.15);
}

.form-data.basic-captcha input[type="text"]::placeholder {
    color: #aab4be;
}

.hidden-field-group {
    display: none !important;
}
