/* 
   Pflegedienst CuraVita - Main Stylesheet
   Design System, CSS Variables, Layouts & Animations
*/

/* ---------------------------------------------------------
   1. DESIGN SYSTEM & VARIABLES
--------------------------------------------------------- */
:root {
    /* Color Palette */
    --color-primary: #005F60;
    --color-primary-hover: #004647;
    --color-primary-light: #008486;
    --color-secondary: #E88D34;
    --color-secondary-hover: #D17822;
    --color-accent: #E6F2F2;
    --color-accent-hover: #D0E7E7;
    --color-text-dark: #1A2B2D;
    --color-text-muted: #5B6D70;
    --color-bg-light: #FAFDFD;
    --color-bg-alt: #F2F8F8;
    --color-white: #FFFFFF;
    --color-error: #D9383A;
    --color-success: #2A9D8F;
    --color-shadow: rgba(0, 95, 96, 0.08);

    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Transitions & Radii */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;

    /* Layout Containers */
    --container-width: 1200px;
    --header-height: 80px;
}

/* ---------------------------------------------------------
   2. RESET & BASE STYLES
--------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.25;
}

h1 { font-size: 2.75rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.25rem; margin-bottom: 1.25rem; position: relative; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

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

ul, ol {
    list-style: none;
}

/* ---------------------------------------------------------
   3. REUSABLE UI COMPONENTS (Buttons, Cards, Grid)
--------------------------------------------------------- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 95, 96, 0.2);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 141, 52, 0.2);
}

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

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

/* Section Header styling */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header p {
    color: var(--color-primary-light);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-secondary);
    margin: 0.75rem auto 0 auto;
    border-radius: 2px;
}

/* Service / Feature Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--color-shadow);
    transition: var(--transition-normal);
    border: 1px solid rgba(0, 95, 96, 0.04);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 95, 96, 0.12);
    border-color: rgba(0, 95, 96, 0.1);
}

.card-icon {
    width: 64px;
    height: 64px;
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

.card:hover .card-icon {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.05);
}

/* ---------------------------------------------------------
   4. LAYOUT PARTS (Topbar, Header, Footer)
--------------------------------------------------------- */
/* Topbar */
.topbar {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-info, .topbar-cta {
    display: flex;
    gap: 1.5rem;
}

.topbar a {
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.topbar a:hover {
    color: var(--color-secondary);
}

/* Header & Glassmorphic Navbar */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(250, 253, 253, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 95, 96, 0.05);
    height: var(--header-height);
    transition: var(--transition-normal);
}

.site-header.is-sticky {
    height: 70px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background-color: rgba(250, 253, 253, 0.95);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--color-secondary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-dark);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition-normal);
}

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

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

.nav-link.active {
    color: var(--color-primary);
}

/* Mobile Menu Button */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px;
    position: absolute;
    transition: var(--transition-normal);
}

.burger-menu span:nth-child(1) { top: 0; }
.burger-menu span:nth-child(2) { top: 10px; }
.burger-menu span:nth-child(3) { top: 20px; }

.burger-menu.is-active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}
.burger-menu.is-active span:nth-child(2) {
    opacity: 0;
}
.burger-menu.is-active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

/* Mobile Nav Drawer */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-white);
    z-index: 999;
    padding: 100px 2.5rem 2.5rem 2.5rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: var(--transition-slow);
}

.mobile-nav.is-active {
    right: 0;
}

.mobile-nav a {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.mobile-nav .btn {
    margin-top: auto;
    text-align: center;
}

/* Footer Section */
.site-footer {
    background-color: #142528;
    color: #A3B5B8;
    padding: 5rem 0 2rem 0;
    font-size: 0.95rem;
    border-top: 4px solid var(--color-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h3, .footer-col h4 {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo span {
    color: var(--color-secondary);
}

.footer-about p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: #A3B5B8;
}

.footer-links ul li a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact li svg {
    color: var(--color-secondary);
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-contact a {
    color: #A3B5B8;
}

.footer-contact a:hover {
    color: var(--color-white);
}

.footer-hours p {
    margin-bottom: 0.75rem;
}

.footer-hours p strong {
    color: var(--color-white);
}

.footer-hours .btn {
    margin-top: 1rem;
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: #829699;
}

.footer-legal-links a:hover {
    color: var(--color-white);
}

/* ---------------------------------------------------------
   5. PAGE-SPECIFIC STYLE MODULES
--------------------------------------------------------- */
/* --- HERO SECTION --- */
.hero {
    padding: 7rem 0 5rem 0;
    background: radial-gradient(circle at 80% 20%, var(--color-accent) 0%, var(--color-bg-light) 60%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: rgba(232, 141, 52, 0.03);
    top: -100px;
    right: -100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-tag {
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    margin-bottom: 3rem;
}

.hero-badges {
    display: flex;
    gap: 2.5rem;
    border-top: 1px solid rgba(0, 95, 96, 0.1);
    padding-top: 2rem;
}

.hero-badge-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-badge-icon {
    font-size: 1.75rem;
    color: var(--color-primary);
}

.hero-badge-text strong {
    display: block;
    font-size: 1.125rem;
    color: var(--color-text-dark);
}

.hero-badge-text span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-container {
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 95, 96, 0.15);
    border: 4px solid var(--color-white);
    background-color: var(--color-accent);
}

.hero-experience-card {
    position: absolute;
    bottom: 30px;
    left: -40px;
    background-color: var(--color-white);
    padding: 1.25rem 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 5px solid var(--color-secondary);
}

.hero-experience-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-primary);
    font-family: var(--font-heading);
    line-height: 1;
}

.hero-experience-label {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-dark);
}

/* --- QUICK HELP CARDS --- */
.quick-help {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.quick-help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.help-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 40px rgba(0, 95, 96, 0.08);
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(0, 95, 96, 0.05);
}

.help-card-accent {
    width: 8px;
    background-color: var(--color-primary);
}

.help-card.emergency .help-card-accent {
    background-color: var(--color-secondary);
}

.help-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.help-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-card-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.help-card-link {
    margin-top: auto;
    font-weight: 700;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* --- SECTIONS GENERAL --- */
.section-padding {
    padding: 8rem 0;
}

.section-bg-alt {
    background-color: var(--color-bg-alt);
}

/* --- PHILOSOPHY SECTION --- */
.about-teaser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-teaser-image-wrapper {
    position: relative;
}

.about-teaser-image {
    border-radius: var(--border-radius-xl);
    box-shadow: 0 20px 40px var(--color-shadow);
    border: 4px solid var(--color-white);
}

.about-teaser-accent {
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: var(--color-secondary);
    border-radius: var(--border-radius-md);
    top: -20px;
    left: -20px;
    z-index: -1;
}

.teaser-points {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

.teaser-point-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.teaser-point-icon {
    width: 28px;
    height: 28px;
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.teaser-point-text strong {
    display: block;
    font-size: 1.1rem;
}

.teaser-point-text p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* --- TESTIMONIALS --- */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--color-shadow);
    position: relative;
    border: 1px solid rgba(0, 95, 96, 0.03);
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 15px;
    right: 30px;
    font-size: 5rem;
    font-family: var(--font-heading);
    color: var(--color-accent);
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text-dark);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author-avatar {
    width: 48px;
    height: 48px;
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
}

.testimonial-author-info strong {
    display: block;
    color: var(--color-text-dark);
}

.testimonial-author-info span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* --- CTA SECTION --- */
.cta-section {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.02);
    bottom: -150px;
    left: -50px;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.cta-content h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--color-accent);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    margin-top: 1.5rem;
    justify-content: center;
}

.cta-phone-link a {
    color: var(--color-secondary);
}

.cta-phone-link a:hover {
    color: var(--color-white);
}

/* --- PAGE TITLE HEADER (Inner Pages) --- */
.page-title-section {
    background-color: var(--color-accent);
    padding: 5rem 0;
    border-bottom: 1px solid rgba(0, 95, 96, 0.08);
}

.page-title-breadcrumbs {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 0.75rem;
}

.page-title-breadcrumbs a {
    color: var(--color-text-muted);
}

.page-title-breadcrumbs a:hover {
    color: var(--color-primary);
}

.page-title-breadcrumbs span {
    color: var(--color-primary-light);
}

/* --- SERVICES (LEISTUNGEN) PAGE --- */
.leistungen-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.leistung-detail-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    border-bottom: 1px solid rgba(0, 95, 96, 0.08);
    padding-bottom: 4rem;
}

.leistung-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.leistung-detail-row:nth-child(even) {
    grid-template-columns: 1.2fr 1fr;
}

.leistung-detail-row:nth-child(even) .leistung-detail-image-col {
    order: 2;
}

.leistung-detail-image-col img {
    border-radius: var(--border-radius-xl);
    box-shadow: 0 15px 35px var(--color-shadow);
}

.leistung-tag {
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.leistung-bullet-list {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.leistung-bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.leistung-bullet-list li svg {
    color: var(--color-primary);
    margin-top: 4px;
    flex-shrink: 0;
}

/* Care Level Guide */
.care-guide-box {
    background-color: var(--color-white);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 15px 40px var(--color-shadow);
    padding: 4rem;
    border: 1px solid rgba(0, 95, 96, 0.05);
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.guide-step-card {
    text-align: center;
    position: relative;
}

.guide-step-number {
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    border: 2px solid var(--color-primary-light);
}

.guide-step-card h4 {
    margin-bottom: 0.75rem;
}

.guide-step-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* --- ABOUT US (UEBER UNS) PAGE --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.value-card {
    background-color: var(--color-white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--color-shadow);
    text-align: center;
    border-top: 4px solid var(--color-primary);
}

.value-card:nth-child(even) {
    border-top-color: var(--color-secondary);
}

.value-card-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.value-card h3 {
    margin-bottom: 1rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.team-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--color-shadow);
    transition: var(--transition-normal);
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-card-image {
    height: 300px;
    background-color: var(--color-accent);
    overflow: hidden;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.team-card-content {
    padding: 1.5rem;
    text-align: center;
}

.team-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team-card-content span {
    color: var(--color-primary-light);
    font-size: 0.9rem;
    font-weight: 700;
}

/* --- CAREERS (KARRIERE) PAGE --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 24px var(--color-shadow);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-card-icon {
    font-size: 2rem;
    color: var(--color-secondary);
    line-height: 1;
}

.benefit-card-info h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.benefit-card-info p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Jobs Accordion */
.jobs-list {
    max-width: 800px;
    margin: 0 auto;
}

.job-item {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 24px var(--color-shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(0, 95, 96, 0.04);
}

.job-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: var(--color-white);
    transition: var(--transition-normal);
}

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

.job-title-wrapper h3 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.job-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.job-toggle-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: var(--transition-normal);
}

.job-item.is-open .job-toggle-icon {
    transform: rotate(180deg);
}

.job-body {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.job-item.is-open .job-body {
    padding: 1rem 2rem 2.5rem 2rem;
    max-height: 1000px;
}

.job-body-section {
    margin-top: 1.5rem;
}

.job-body-section h4 {
    margin-bottom: 0.75rem;
}

.job-body-section ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.job-body-section ul li svg {
    color: var(--color-primary);
    margin-top: 5px;
    flex-shrink: 0;
}

.job-apply-box {
    margin-top: 2rem;
    text-align: right;
}

/* Quick Application Form */
.apply-section {
    background-color: var(--color-bg-alt);
}

.apply-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 3.5rem;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 20px 45px var(--color-shadow);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(0, 95, 96, 0.15);
    background-color: var(--color-bg-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
    color: var(--color-text-dark);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(0, 95, 96, 0.08);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.file-upload-wrapper {
    position: relative;
    border: 2px dashed rgba(0, 95, 96, 0.2);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    text-align: center;
    background-color: var(--color-bg-light);
    transition: var(--transition-normal);
    cursor: pointer;
}

.file-upload-wrapper:hover {
    border-color: var(--color-primary);
    background-color: var(--color-accent);
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-text svg {
    font-size: 2.5rem;
    color: var(--color-primary-light);
    margin-bottom: 0.75rem;
}

.file-upload-text span {
    display: block;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.file-upload-text p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.form-feedback {
    display: none;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-feedback.success {
    display: block;
    background-color: #D2F4EA;
    color: #0F5132;
    border: 1px solid #BADBCC;
}

.form-feedback.error {
    display: block;
    background-color: #F8D7DA;
    color: #842029;
    border: 1px solid #F5C2C7;
}

/* --- CONTACT (KONTAKT) PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-info-box {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--color-shadow);
    border: 1px solid rgba(0, 95, 96, 0.04);
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-list li:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-info-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-info-text p, .contact-info-text a {
    color: var(--color-text-muted);
}

.contact-info-text a:hover {
    color: var(--color-primary);
}

/* Location Map Placeholder */
.map-container {
    height: 250px;
    background-color: var(--color-accent);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px var(--color-shadow);
}

.map-placeholder {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #EAEAEA 0%, #D8E3E3 100%);
    color: var(--color-primary);
    text-align: center;
    padding: 2rem;
}

.map-placeholder svg {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.map-placeholder h4 {
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.map-placeholder p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.contact-form-col {
    background-color: var(--color-white);
    padding: 3.5rem;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 20px 45px var(--color-shadow);
    border: 1px solid rgba(0, 95, 96, 0.04);
}

/* --- LEGAL & PRIVACY --- */
.legal-content {
    background-color: var(--color-white);
    padding: 4rem;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 15px 40px var(--color-shadow);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 95, 96, 0.08);
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
}

.legal-content p, .legal-content li {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ---------------------------------------------------------
   6. RESPONSIVE BREAKPOINTS
--------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-experience-card {
        left: 20px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .topbar {
        display: none; /* Hide topbar on mobile */
    }
    
    .nav-menu {
        display: none; /* Hide main menu */
    }
    
    .burger-menu {
        display: block; /* Show burger menu toggle */
    }
    
    .quick-help-grid {
        grid-template-columns: 1fr;
        margin-top: -1rem;
    }
    
    .about-teaser-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .leistung-detail-row, 
    .leistung-detail-row:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .leistung-detail-row:nth-child(even) .leistung-detail-image-col {
        order: 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .apply-container, 
    .contact-form-col,
    .legal-content {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
