/* ========================================
   Global Styles & Variables
   ======================================== */
:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary-color: #059669;
    --secondary-dark: #047857;
    --accent-color: #f59e0b;
    --dark-color: #0f172a;
    --gray-900: #1e293b;
    --gray-800: #334155;
    --gray-700: #475569;
    --gray-600: #64748b;
    --gray-500: #94a3b8;
    --gray-400: #cbd5e1;
    --gray-300: #e2e8f0;
    --gray-200: #f1f5f9;
    --gray-100: #f8fafc;
    --light-color: #ffffff;
    --text-color: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: clip;
    background: var(--gray-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 1536px) {
    .container {
        max-width: 1400px;
    }
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
    letter-spacing: -0.02em;
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
}
h2 { 
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
}
h3 { 
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}
h4 { 
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.large {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--gray-700);
}

/* ========================================
   Wave Dividers
   ======================================== */
.wave-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-top: -2px;
    margin-bottom: -2px;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
    filter: drop-shadow(0 0 0 transparent);
    transform: translateZ(0);
}

.wave-divider svg path {
    shape-rendering: geometricPrecision;
}

.wave-top {
    transform: rotate(180deg);
}

.wave-white {
    fill: #ffffff;
}

.wave-light {
    fill: var(--gray-100);
}

.wave-blue {
    fill: var(--primary-color);
}

.wave-primary {
    fill: var(--primary-color);
}

.wave-dark {
    fill: #0f172a;
}

.wave-tgt {
    fill: #e0e7ff;
}

/* Wave variations */
.wave-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

/* Section with waves */
.section-with-waves {
    position: relative;
}

/* Embedded wave at top of section */
.wave-cap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
}

.wave-cap svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
    transform: translateZ(0);
}

.wave-cap svg path {
    shape-rendering: geometricPrecision;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    background: var(--light-color);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    min-height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    color: white;
    letter-spacing: -0.5px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.logo-icon:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.logo-text .brand-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.logo-text .brand-tagline {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gray-600);
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
}

.nav-toggle span {
    width: 28px;
    height: 2.5px;
    background: var(--dark-color);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.nav-menu > li > a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: var(--transition-fast);
    font-size: 0.9375rem;
    padding: 0.625rem 1.125rem;
    border-radius: var(--radius-sm);
    display: block;
    position: relative;
}

.nav-menu > li > a:hover {
    color: var(--primary-color);
    background: var(--gray-100);
}

.nav-menu > li > a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-menu > li > a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 1.125rem;
    right: 1.125rem;
    height: 2px;
    background: var(--primary-color);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    background: white;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    padding: 0.625rem;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
    border: 1px solid var(--gray-200);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: var(--primary-color);
    color: white;
    padding-left: 1.25rem;
}

.nav-cta {
    display: flex;
    gap: 0.625rem;
    align-items: center;
    margin-left: auto;
}

.nav-user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-user-firm {
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 600;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-portal-btn {
    padding: 0.5625rem 1.25rem;
    font-size: 0.875rem;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6875rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    font-size: 0.9375rem;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 1px 2px 0 rgba(30, 64, 175, 0.1);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(30, 64, 175, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 1px 2px 0 rgba(5, 150, 105, 0.1);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.15);
}

.btn-accent {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 1px 2px 0 rgba(245, 158, 11, 0.1);
}

.btn-accent:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.15);
}

.btn-white {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 600;
}

.btn-white:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    border-color: var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background: var(--gray-50);
    color: var(--primary-color);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.85) 0%, rgba(12, 36, 97, 0.85) 100%);
    color: white;
    padding: 7rem 0 5rem;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Startseite Hero mit Background-Image */
.hero-startseite {
    background-image: linear-gradient(135deg, rgba(30, 64, 175, 0.85) 0%, rgba(12, 36, 97, 0.85) 100%), 
                      url('../images/hero-hintergrund.jpg');
    background-size: cover;
    background-position: center;
}

/* Weitere Hauptseiten-Heroes */
.hero-kontakt {
    background-image: linear-gradient(135deg, rgba(30, 64, 175, 0.85) 0%, rgba(12, 36, 97, 0.85) 100%), 
                      url('../images/hero-hintergrund.jpg');
    background-size: cover;
    background-position: center;
}

.hero-b2b {
    background-image: linear-gradient(135deg, rgba(30, 64, 175, 0.85) 0%, rgba(12, 36, 97, 0.85) 100%), 
                      url('../images/b2b/handschlag-kooperation.jpg');
    background-size: cover;
    background-position: center;
}

.hero-ueber-uns {
    background-image: linear-gradient(135deg, rgba(30, 64, 175, 0.85) 0%, rgba(12, 36, 97, 0.85) 100%), 
                      url('../images/startseite-team-foto.jpg');
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.02) 35px, rgba(255,255,255,.02) 70px);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: white;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
    color: white;
}

/* ========================================
   Trust Badges
   ======================================== */
.trust-badges {
    padding: 3rem 0;
    background: white;
    border-bottom: 1px solid var(--gray-200);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.badge {
    text-align: center;
}

.badge-icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.badge p {
    font-weight: 600;
    color: var(--gray-700);
    margin: 0;
    font-size: 0.95rem;
}

/* ========================================
   Sections
   ======================================== */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3.5rem;
}

.section-header h2 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ========================================
   Services Section
   ======================================== */
.services {
    background: var(--gray-100);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card.highlighted {
    border-color: var(--primary-color);
    border-width: 2px;
    background: linear-gradient(to bottom, rgba(0, 102, 204, 0.02), white);
    box-shadow: var(--shadow-md);
}

.service-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--accent-color);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    display: block;
}

.service-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-bottom: 1.75rem;
}

.service-features li {
    padding: 0.625rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.services-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ========================================
   USPs Section
   ======================================== */
.usps {
    background: white;
    position: relative;
    padding-top: calc(5rem + 80px);
}

.usps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.usp-card {
    background: var(--gray-100);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.usp-card:hover {
    background: white;
    border-color: var(--gray-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.usp-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.usp-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.usp-card p {
    color: var(--gray-600);
    margin: 0;
    line-height: 1.7;
}

/* ========================================
   B2B Promo Section
   ======================================== */
.b2b-promo {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: calc(5rem + 80px);
}

.b2b-promo::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 102, 204, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.b2b-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.b2b-text h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1.25rem;
    color: white;
}

.b2b-text p {
    font-size: 1.15rem;
    opacity: 0.9;
    line-height: 1.7;
}

.benefit-list {
    list-style: none;
    margin: 2rem 0;
}

.benefit-list li {
    padding: 0.875rem 0;
    padding-left: 2.25rem;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.6;
}

.benefit-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.b2b-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.b2b-card {
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
}

.b2b-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

.b2b-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.b2b-card ul {
    list-style: none;
}

.b2b-card ul li {
    padding: 0.5rem 0;
    font-size: 1.05rem;
    opacity: 0.9;
}

/* ========================================
   Reference Section
   ======================================== */
.reference {
    background: linear-gradient(to right, rgba(0, 166, 81, 0.1), rgba(0, 102, 204, 0.1));
    text-align: center;
}

.reference-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.reference-content h2 {
    color: var(--dark-color);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.reference-content p {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 1rem auto;
}

.reference-quote {
    font-style: italic;
    color: var(--text-light);
    margin-top: 2rem;
}

/* ========================================
   Target Groups
   ======================================== */
.target-groups {
    background: linear-gradient(to bottom, #f8fafc 0%, #e0e7ff 100%);
    position: relative;
    overflow: hidden;
}

.target-groups::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.target-groups-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.target-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.target-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.target-card:hover::before {
    transform: scaleX(1);
}

.target-card:hover {
    background: white;
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(30, 64, 175, 0.15);
}

.target-card h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.target-card h3 .icon {
    display: block;
    margin-bottom: 0.75rem;
}

.target-card h3 .title {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-color);
}

.target-card:hover h3 .title {
    color: var(--primary-color);
}

.target-card p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-light);
    line-height: 1.5;
}

.target-card:hover p {
    color: var(--text-color);
}

/* ========================================
   States Section
   ======================================== */
.states-section {
    background: white;
    position: relative;
    padding-top: calc(5rem + 80px);
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.state-card {
    display: block;
    text-decoration: none;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border-color);
    padding: 1.75rem 1.5rem;
    position: relative;
    color: inherit;
    cursor: pointer;
}

.state-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.state-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.12);
    border-color: var(--primary-color);
}

.state-card:hover::before {
    transform: scaleY(1);
}

.state-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.4rem 0;
    transition: color 0.3s ease;
}

.state-card p {
    font-size: 0.82rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.state-card:hover h3 {
    color: var(--primary-color);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: calc(5rem + 80px);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1.25rem;
    color: white;
}

.cta-content p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: white;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.cta-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.link-underline {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

/* ========================================
   Blog Preview
   ======================================== */
.blog-preview {
    background: var(--light-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Blog Thumbnail Backgrounds */
.blog-thumb-betriebsraeumung {
    background-image: url('../images/blog/betriebsraeumung-planen-vorschau.jpg') !important;
    background-size: cover;
    background-position: center;
}

.blog-thumb-dsgvo {
    background-image: url('../images/blog/dsgvo-aktenvernichtung-vorschau.jpg') !important;
    background-size: cover;
    background-position: center;
}

.blog-thumb-recycling {
    background-image: url('../images/blog/vorschau-2.jpg') !important;
    background-size: cover;
    background-position: center;
}

.blog-thumb-bueroaufloesung {
    background-image: url('../images/blog/vorschau-3.jpg') !important;
    background-size: cover;
    background-position: center;
}

.blog-thumb-container {
    background-image: url('../images/blog/vorschau-4.jpg') !important;
    background-size: cover;
    background-position: center;
}

.blog-thumb-haushaltsaufloesung {
    background-image: url('../images/blog/vorschau-1.jpg') !important;
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-card h3 {
    color: var(--dark-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.blog-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.blog-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.blog-link:hover {
    color: var(--secondary-color);
}

.blog-cta {
    text-align: center;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--gray-800);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.footer-contact {
    margin-top: 1.5rem;
}

.footer-contact p {
    margin-bottom: 0.75rem;
}

.footer-contact a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.875rem;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.footer-col ul a:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* ========================================
   Form Styles (global)
   ======================================== */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-color);
    background: white;
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ========================================
   Scroll Animations
   ======================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   Cookie Consent Banner
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-color);
    color: white;
    padding: 1.25rem 0;
    z-index: 9999;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner .container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    min-width: 260px;
}

.cookie-banner-text a {
    color: var(--primary-light);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.btn-cookie-accept {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.625rem 1.375rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.btn-cookie-accept:hover {
    background: var(--secondary-dark);
    transform: translateY(-1px);
}

.btn-cookie-decline {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.625rem 1.375rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.btn-cookie-decline:hover {
    color: white;
    border-color: rgba(255,255,255,0.6);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .target-groups-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .b2b-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    section {
        padding: 4rem 0;
    }
    
    /* Mobile Logo Optimization */
    .logo-icon {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .brand-tagline {
        font-size: 0.65rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        box-shadow: var(--shadow-xl);
        padding: 1rem;
        border-top: 1px solid var(--gray-200);
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu > li > a {
        padding: 1rem;
        border-radius: 8px;
        display: flex;
        align-items: center;
        width: 100%;
    }

    /* Mobile dropdown — hidden by default, shown when parent has .open */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        background: var(--gray-50);
        display: none;
        overflow: hidden;
    }

    .nav-dropdown.open > .dropdown-menu {
        display: block;
        padding: 0.5rem 0 0.5rem 1.5rem;
    }

    /* Toggle arrow on mobile */
    .nav-dropdown > a::after {
        content: '\25BE';
        float: right;
        transition: transform 0.25s ease;
        display: inline-block;
        margin-left: auto;
        padding-left: 0.5rem;
    }

    .nav-dropdown.open > a::after {
        transform: rotate(180deg);
    }
    
    /* Hide from topbar row on mobile — JS moves it into nav-menu when open */
    .nav-cta {
        display: none;
    }

    /* Styles when nav-cta is inside the mobile menu */
    .nav-menu .nav-cta {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0.75rem 0.25rem 0.375rem;
        gap: 0.5rem;
        border-top: 1px solid var(--gray-200);
        margin-top: 0.5rem;
    }

    .nav-menu .nav-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .nav-menu .nav-cta .nav-user-info {
        justify-content: center;
        padding: 0.25rem 0;
    }

    .nav-menu .nav-cta .nav-user-firm {
        max-width: none;
    }
    
    .hero {
        padding: 5rem 0 4rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .target-groups-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .states-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .badges-grid {
        grid-template-columns: 1fr;
    }

    .target-groups-grid {
        grid-template-columns: 1fr;
    }

    .states-grid {
        grid-template-columns: 1fr;
    }

    .state-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .state-flag-svg {
        max-width: 180px;
    }

    .state-image {
        height: 160px;
        padding: 1.5rem;
    }

    .cookie-banner .container {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .btn-cookie-accept,
    .btn-cookie-decline {
        flex: 1;
        text-align: center;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}
/* ========================================
   Mobile Call Button
   ======================================== */
.mobile-call-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 900;
    display: none;
    opacity: 1;
    transform: translateY(0);
}

.mobile-call-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--accent-color);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mobile-call-button a .icon {
    font-size: 1.25rem;
}

.mobile-call-button a:hover {
    background: #d97706;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.mobile-call-button a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background: var(--accent-color);
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    80%, 100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .mobile-call-button {
        display: block;
    }
}

/* ============================================================
   INDEX PAGE — FLOATING PHONE CTA ASIDE
   ============================================================ */
.index-phone-aside {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateX(calc(100% + 2rem)) translateY(-50%);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.55s cubic-bezier(0.34, 1.46, 0.64, 1),
        opacity 0.4s ease;
    z-index: 900;
    width: 195px;
}

.index-phone-aside.aside-visible {
    transform: translateX(0) translateY(-50%);
    opacity: 1;
    pointer-events: auto;
}

.index-phone-aside-inner {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(30, 64, 175, 0.18);
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.index-aside-icon {
    font-size: 2rem;
    line-height: 1;
}

.index-aside-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
}

.index-aside-phone {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.index-aside-phone:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.index-aside-btn {
    width: 100%;
    font-size: 0.82rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.5rem;
    margin-top: 0.25rem;
}

/* Hide on mobile — not enough horizontal room */
@media (max-width: 1024px) {
    .index-phone-aside {
        display: none;
    }
}

