/* 
   Heberle Dental - Premium Design
   Black/White/Grey Monochrome Theme
*/

:root {
    /* Color Palette - Monochrome & Premium */
    --primary-color: #111111;
    /* Almost Black */
    --secondary-color: #333333;
    /* Dark Grey */
    --accent-color: #666666;
    /* Medium Grey */
    --light-grey: #f4f4f4;
    --border-color: #e0e0e0;
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    /* All sans-serif as requested */

    /* Spacing & Shadows */
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.08);
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--secondary-color);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* .main-content: full width, no overflow restrictions locally */
.main-content {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

ul {
    list-style: none;
}

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

/* Container */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Full-bleed helper: sections that must span the full viewport width
   even when placed inside a Joomla article container */
.full-bleed {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Typography Overrides for "Edel" look */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 300;
    /* Thinner weights look more premium */
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 0;
    /* Boxy looks more technical/architectural */
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--white);
}

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

.btn-primary-dark {
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
}

.btn-primary-dark:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

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

.btn-text {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid transparent;
}

.btn-text:hover {
    border-bottom: 1px solid var(--primary-color);
    gap: 15px;
}

/* 
   Header / Navigation 
*/
/* 
   Header / Navigation 
*/
/* 
   Header / Navigation 
*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 10px 0;
    /* Slightly tighter padding around container */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
}

.header.scrolled {
    background: #000000;
    backdrop-filter: blur(10px);
    padding: 0;
    /* Remove padding to let container control height */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    /* Taller initial state */
    max-width: 100%;
    /* Full width */
    transition: height 0.4s ease;
}

.header.scrolled .header-container {
    height: 80px;
}

a.logo {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

.logo img {
    height: 100%;
    max-height: 80px;
    /* Bigger logo */
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.header.scrolled .logo img {
    max-height: 65px;
    /* Larger scrolled logo */
}

.nav-list {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-left: 20px;
}

/* ... existing nav styles ... */

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
    white-space: nowrap;
}

/* ... existing styles ... */

/* Services Fixes */
.service-header.pseudo-flex {
    display: flex;
    align-items: center;
    /* Center alignment looks neater */
    gap: 20px;
    /* Increased gap */
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-grey);
}

.service-card h3 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
    /* Deutsche Silbentrennung statt hartem Umbruch mitten im Wort */
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
    flex: 1;
}

.service-icon {
    font-size: 2.2rem;
    /* Slightly larger */
    width: 40px;
    /* Fixed width for alignment */
    text-align: center;
    color: var(--primary-color);
    flex-shrink: 0;
    /* Prevent squashing */
}

/* Mobile menu button spans are now visible dashes styled as burger bars */
.mobile-menu-btn span {
    font-size: 0;
    width: 30px;
    height: 2px;
    background-color: var(--white);
    display: block;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--white);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--white);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow-hover);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border-top: 2px solid var(--primary-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 25px;
    font-size: 0.85rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-menu a:hover {
    background-color: var(--light-grey);
    color: var(--primary-color);
}

.nav-btn {
    padding: 12px 28px;
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: 0.3s;
}

.nav-btn:hover {
    background-color: transparent;
    color: var(--white);
    box-shadow: inset 0 0 0 1px var(--white);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--primary-color);
    z-index: 999;
    padding: 120px 30px 50px;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    right: 0;
}

.mobile-link {
    display: block;
    width: 100%;
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 300;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
}

.mobile-dropdown-content {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    margin-top: 15px;
    margin-bottom: 10px;
    padding: 10px 0;
    display: none;
}

.mobile-dropdown-content a {
    display: block;
    padding: 12px 20px;
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.92);
    text-transform: none;
    letter-spacing: 0.5px;
}

.mobile-dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

/* 
   Hero Section 
*/
.hero {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--white);
    padding: 120px 20px 60px;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    object-fit: cover;
    filter: brightness(0.6) contrast(1.1);
    /* Darken for text readability */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
}

.hero-subtitle {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-weight: 500;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--white);
    text-transform: uppercase;
    /* Powerful look */
    font-weight: 300;
}

.hero-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 1px solid var(--white);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 2px;
    height: 6px;
    background: var(--white);
    transform: translateX(-50%);
    animation: scrollMouse 2s infinite;
}

/* 
   Intro / About 
*/
.section-padding {
    padding: 100px 0;
}

.intro {
    position: relative;
    background-color: var(--white);
    overflow: hidden;
    /* Ensure lion doesn't overflow */
}

.lion-bg {
    position: absolute;
    top: 50%;
    right: 0;
    /* Align to right */
    transform: translateY(-50%);
    width: 60%;
    height: 90%;
    z-index: 0;
    opacity: 0.1;
    /* Subtle */
    pointer-events: none;
}

.lion-bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    /* Align image inside container to right */
    mix-blend-mode: multiply;
    /* Blends nicely with white bg */
}

.intro-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.intro-image img {
    filter: grayscale(100%);
    /* B&W styling */
    transition: filter 0.5s ease;
}

.intro-image:hover img {
    filter: grayscale(0%);
}

.experience-badge {
    position: absolute;
    bottom: -40px;
    right: -40px;
    background: var(--primary-color);
    color: var(--white);
    padding: 30px;
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-hover);
}

.experience-badge .years {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 5px;
}

.experience-badge .text {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.section-subtitle {
    display: block;
    color: var(--accent-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-weight: 600;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 30px;
    line-height: 1.1;
    color: var(--primary-color);
}

.lead-text {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.6;
}

.signature-block {
    margin: 40px 0;
    border-left: 2px solid var(--primary-color);
    padding-left: 25px;
}

/*
   Section Backgrounds
*/

/* Sections are naturally 100% wide as block-level elements.
   No 100vw trick needed in local HTML.
   Joomla-specific full-bleed overrides are at the bottom of this file. */
.bg-light {
    background-color: #fafafa;
}

.section-header {
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-desc {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--accent-color);
    margin-top: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    padding: 50px 40px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

/* Services Fixes */
.service-header.pseudo-flex {
    display: flex;
    align-items: center;
    /* Strict center alignment */
    gap: 12px;
    /* Halved gap */
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-grey);
}

.service-card h3 {
    font-size: 1rem;
    /* Smaller to prevent wrapping */
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
    /* Deutsche Silbentrennung statt hartem Umbruch mitten im Wort */
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
    flex: 1;
}

.service-icon {
    font-size: 2.2rem;
    width: 50px;
    /* Wider fixed width */
    height: 50px;
    /* Fixed height for consistency */
    display: flex;
    /* Flexbox for icon centering */
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
    line-height: 1;
    /* prevent font leading issues */
}

.service-list li {
    padding: 8px 0;
    color: var(--accent-color);
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.service-list li:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* 
   Technology 
*/
.tech-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 80px;
}

.tech-content {
    flex: 1;
    min-width: 300px;
}

.tech-image {
    flex: 1;
    min-width: 300px;
}

.tech-image img {
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease;
}

.tech-image:hover img {
    filter: grayscale(0%);
}

.tech-features {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tech-features li {
    font-size: 1rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* tech-features uses .icon-check spans */
.tech-features .icon-check {
    color: var(--primary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/*
   CTA Section – dark strip
*/
.cta {
    background-color: var(--primary-color);
    overflow: hidden;
    width: 100%;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 40px;
    z-index: 2;
    position: relative;
}

.cta-content h2 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    margin-bottom: 40px;
}

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

.cta .btn-primary-dark:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* 
   Footer
*/
.footer {
    background-color: #f7f7f7;
    color: var(--secondary-color);
    padding: 80px 0 30px;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    box-sizing: border-box;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.9fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 50px;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 30px;
    mix-blend-mode: multiply;
    /* Ensures black logo looks good on grey */
}

.footer-col h4 {
    color: var(--primary-color);
    /* Dark text */
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.contact-list li {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    color: var(--accent-color);
}

/* Joomla-compatible icon spans: text hidden at font-size 0, icon shown via ::before Unicode */
.icon-map,
.icon-phone,
.icon-fax,
.icon-mail {
    font-size: 0;
    color: var(--primary-color);
    margin-top: 2px;
    flex-shrink: 0;
    display: inline-block;
    width: 20px;
}

.icon-map::before {
    content: '\1F4CD';
    font-size: 14px;
}

.icon-phone::before {
    content: '\260E';
    font-size: 16px;
}

.icon-fax::before {
    content: '\1F4E0';
    font-size: 14px;
}

.icon-mail::before {
    content: '\2709';
    font-size: 16px;
}

/* Arrow icons */
.icon-arrow {
    font-size: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-text:hover .icon-arrow {
    transform: translateX(5px);
}

/* Chevron (dropdown) icons */
.icon-chevron {
    font-size: 0;
    display: inline-block;
    width: 12px;
    vertical-align: middle;
    margin-left: 4px;
}

.icon-chevron::before {
    content: '\25BE';
    font-size: 12px;
}

/* Checkmark icons */
.icon-check {
    color: var(--primary-color);
    font-size: 1rem;
    flex-shrink: 0;
    font-weight: 700;
}

/* Heart icon in footer */
.icon-heart {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Service card letter-icons */
.service-icon.icon-tooth,
.service-icon.icon-implant,
.service-icon.icon-aligner,
.service-icon.icon-prothetik,
.service-icon.icon-peek,
.service-icon.icon-aesthetik,
.service-icon.icon-ultra,
.service-icon.icon-color {
    font-size: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
    border: 2px solid var(--primary-color);
    border-radius: 0;
}

.service-icon.icon-tooth::before {
    content: '\1F9B7';
    font-size: 24px;
}

.service-icon.icon-implant::before {
    content: '\2692';
    font-size: 22px;
}

.service-icon.icon-aligner::before {
    content: '\27A3';
    font-size: 22px;
}

.service-icon.icon-prothetik::before {
    content: '\2738';
    font-size: 22px;
}

.service-icon.icon-peek::before {
    content: '\2665';
    font-size: 20px;
}

.service-icon.icon-aesthetik::before {
    content: '\2728';
    font-size: 20px;
}

.service-icon.icon-ultra::before {
    content: '\25C6';
    font-size: 20px;
}

.service-icon.icon-color::before {
    content: '\1F3A8';
    font-size: 20px;
}

.contact-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--accent-color);
    transition: padding 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--accent-color);
    font-size: 0.8rem;
}

.agency-credit a {
    color: var(--secondary-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

/* agency-credit heart is now .icon-heart span, styled above */

/* 
   Animations 
*/
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
}

.delay-100 {
    animation-delay: 0.2s;
}

.delay-200 {
    animation-delay: 0.4s;
}

.delay-300 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

.scroll-reveal.left {
    transform: translateX(-60px);
}

.scroll-reveal.right {
    transform: translateX(60px);
}

.scroll-reveal.bottom {
    transform: translateY(60px);
}

/* =========================================
   Responsive Overrides
   ========================================= */

@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .nav-list {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .intro-grid {
        grid-template-columns: 1fr;
    }

    .intro-image {
        order: -1;
        margin-bottom: 40px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .content-grid.reverse {
        direction: ltr;
    }

    .tech-wrapper {
        flex-direction: column;
        gap: 50px;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 25px;
    }

    .section-padding {
        padding: 70px 0;
    }

    .page-header {
        padding: 140px 25px 60px;
    }

    .page-title {
        font-size: 2.4rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        letter-spacing: 2px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .cta-content {
        padding: 70px 25px;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .logo img {
        height: 55px;
    }

    .header.scrolled .logo img {
        height: 45px;
    }

    .job-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .tech-features {
        grid-template-columns: 1fr;
    }
}

/*
   Subpage Styles
*/

/* Subpage Page Header – dark full-width banner */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 160px 20px 80px;
    /* top accounts for fixed header */
    box-sizing: border-box;
    width: 100%;
    /* naturally full-width as block element */
}

.page-title {
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: var(--white);
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.page-header .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}

.page-header .lead-text {
    color: rgba(255, 255, 255, 0.75);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.2rem;
}

.content-block {
    position: relative;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Visually reverse columns without direction hack */
.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse>* {
    direction: ltr;
}

.text-col h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.text-col p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 300;
}

.image-col img {
    width: 100%;
    height: auto;
    display: block;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.team-member {
    background: var(--white);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.team-member:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.member-image {
    height: 350px;
    background-color: var(--light-grey);
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-info {
    padding: 25px;
    text-align: center;
}

.member-name {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-weight: 500;
}

.member-role {
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Service Detail Styles */
.service-detail-list {
    list-style: none;
    margin-top: 30px;
}

.service-detail-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

/* Service detail icon - using .icon-check span */
.service-detail-list li .icon-check {
    color: var(--primary-color);
    margin-top: 3px;
    font-size: 1.1rem;
}

.service-detail-list h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.service-detail-list p {
    font-size: 0.95rem;
    color: var(--accent-color);
    margin-bottom: 0;
}

/* Job List */
.job-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.job-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.job-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.job-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.job-meta {
    display: flex;
    gap: 20px;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info-block {
    margin-bottom: 40px;
}

.contact-info-block h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    background: var(--light-grey);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
}

/* Responsive Subpages */
@media (max-width: 900px) {
    .page-title {
        font-size: 2.5rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .content-grid.reverse {
        direction: ltr;
    }

    .job-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* Map Section (Kontakt) */
.map-section {
    height: 400px;
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.map-placeholder {
    text-align: center;
    color: var(--accent-color);
}

.map-placeholder .icon-map-large {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.3rem;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.legal-content h4 {
    font-size: 1.05rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-content p {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Service-Tag (Spezialisierung) */
.service-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 10px;
    margin-top: -10px;
}

/* Footer 4-column layout */
.footer-grid {
    grid-template-columns: 1.2fr 1fr 0.8fr 1fr;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* =================================================================
   JOOMLA TEMPLATE OVERRIDES
   The Joomla template wraps article content in these elements.
   We must neutralize their width/overflow constraints so our
   100vw full-bleed sections can break out correctly.
   ================================================================= */

/* 1. Reset Joomla's main outer container */
#container,
div#container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

/* 2. Reset Joomla article wrappers */
.com-content-article,
.com-content-article.item-page,
.item-page {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

.com-content-article__body {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

/* 3. Ensure main-content takes full width and
   provides correct overflow context for full-bleed children */
.main-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: clip !important;
    /* clip vs hidden: allows position:sticky to work */
}

/* 4. Override any template body/page-wrapper constraints */
body>div,
.page-wrapper,
#wrapper,
#wrapper_r {
    overflow-x: visible !important;
}

/* 5. Scoped full-bleed: when inside Joomla article body,
   full-bleed sections override any lingering width constraints */
.com-content-article__body .page-header,
.com-content-article__body .bg-light,
.com-content-article__body .services,
.com-content-article__body .intro,
.com-content-article__body .technology,
.com-content-article__body .content-block,
.com-content-article__body .cta,
.com-content-article__body .footer {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box !important;
}

/* 6. The header module wrapper inside Joomla also needs resetting */
.mod-custom.custom,
div[id^="mod-custom"] {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* 7. The .header WRAPPER div (Joomla position div) must also be full-width */
div.header {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}
/* ========================================================================
   Korrekturen / Ergaenzungen – Werbeagentur Hoffmann (Stand 06/2026)
   ======================================================================== */

/* Footer: fehlendes Herz-Icon der Agentur-Signatur (gleiches Muster wie die
   uebrigen Icon-Spans, deren ::before-Regel hier nachgereicht wird). */
.icon-heart {
    display: inline-block;
    font-style: normal;
    line-height: 1;
}
.icon-heart::before {
    content: '\2764'; /* Herz */
    color: #e2231a;
    font-size: 0.95em;
    vertical-align: -0.05em;
}

/* Klickbare Aufklapp-Punkte zeigen den Hand-Cursor (Pointer). */
.dropdown-toggle,
.mobile-dropdown > .mobile-link,
.mobile-menu-btn {
    cursor: pointer;
}

/* Deutsche Silbentrennung auch fuer weitere Inhalts-Ueberschriften. */
.page-title,
.section-title,
.service-tag,
.job-info h3,
.content-block h2,
.content-block h3 {
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
}

/* Kontaktformular: Honeypot-Feld (Spamschutz) unsichtbar halten. */
.form-hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Kontaktformular: Datenschutz-Zustimmung. */
.form-consent label {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--accent-color);
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
}
.form-consent input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.form-consent a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Kontaktformular: Rueckmeldung nach dem Absenden. */
.form-notice {
    padding: 16px 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    font-size: 0.95rem;
}
.form-notice.success {
    background: #e7f6ec;
    border: 1px solid #9ed4b0;
    color: #1d6b3a;
}
.form-notice.error {
    background: #fdecea;
    border: 1px solid #f1a9a0;
    color: #a1281c;
}

/* ------------------------------------------------------------------------
   "Nach oben"-Button: unten rechts, dicker runder Button mit Chevron.
   ------------------------------------------------------------------------ */
.cd-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 52px;
    height: 52px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: transparent; /* "Top"-Text ausblenden; Screenreader nutzt aria-label */
    font-size: 0;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}
.cd-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.cd-top:hover {
    background-color: #000;
}
/* Chevron nach oben (per Rahmen gezeichnet, bewusst dick). */
.cd-top::before {
    content: '';
    position: absolute;
    top: 54%;
    left: 50%;
    width: 13px;
    height: 13px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: translate(-50%, -50%) rotate(-135deg);
}
@media (max-width: 768px) {
    .cd-top {
        right: 18px;
        bottom: 18px;
        width: 46px;
        height: 46px;
    }
}

/* Mobile-Dropdown "Leistungen": Link + separat klickbarer Chevron-Button */
.mobile-dropdown-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 25px;
}
.mobile-dropdown-head .mobile-link {
    width: auto;
    margin-bottom: 0;
}
.mobile-dropdown-toggle {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.40);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.25s ease;
}
.mobile-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}
.mobile-dropdown-toggle .mobile-chevron {
    display: block;
    width: 11px;
    height: 11px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.25s ease;
}
.mobile-dropdown-toggle.open .mobile-chevron {
    transform: translateY(2px) rotate(-135deg);
}

/* Hero: Scroll-Indikator auf Mobil ausblenden (verhindert Überlappung) */
@media (max-width: 768px) {
    .scroll-down { display: none; }
}
