/* ===== Local Fonts ===== */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/dm-sans-400.woff2') format('woff2');
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/dm-sans-500.woff2') format('woff2');
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/dm-sans-600.woff2') format('woff2');
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/dm-sans-700.woff2') format('woff2');
}

/* ===== Variables ===== */
:root {
    --bg-dark: #0c1410;
    --bg-section: #101814;
    --bg-card: #161e1a;
    --bg-card-hover: #1c2620;
    
    --green: #4CAF50;
    --green-light: #66BB6A;
    --green-dark: #1B4D3E;
    --green-darker: #0f2f25;
    
    --text-white: #ffffff;
    --text-light: rgba(255,255,255,0.9);
    --text-muted: rgba(255,255,255,0.5);
    --border-color: rgba(255,255,255,0.08);
    
    --font-family: 'DM Sans', -apple-system, sans-serif;
    --radius: 12px;
    --radius-lg: 16px;
}

/* ===== Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

/* ===== Icons ===== */
.icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-lg {
    width: 32px;
    height: 32px;
}

.icon-xl {
    width: 40px;
    height: 40px;
}

.icon-box {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-box-green {
    background: rgba(76, 175, 80, 0.12);
    color: var(--green);
}

.icon-box-white {
    background: rgba(255,255,255,0.12);
    color: white;
}

/* ===== Animations ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    animation: fallback-reveal 0s 1.5s forwards;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}

.animate-fade {
    opacity: 0;
    transition: opacity 0.8s ease;
    animation: fallback-reveal 0s 1.5s forwards;
}

.animate-fade.animated {
    opacity: 1;
    animation: none;
}

/* Fallback: if JS doesn't add .animated within 1.5s, show content anyway */
@keyframes fallback-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.4s; }

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 4rem;
    display: flex;
    justify-content: center;
    background: rgba(35, 45, 40, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.5s ease, border-color 0.5s ease, padding 0.5s ease;
}

.nav.nav-scrolled {
    background: rgba(12, 20, 16, 0.97);
    border-bottom: 1px solid var(--border-color);
    padding: 0.65rem 4rem;
}

.nav-container {
    max-width: 1100px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.nav-logo-img {
    height: 52px;
    width: auto;
    border-radius: 10px;
    transition: opacity 0.5s ease, height 0.5s ease, margin 0.5s ease;
}

.nav.nav-scrolled .nav-logo-img {
    opacity: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2.25rem;
    font-size: 0.875rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-white);
}

.nav-cta {
    background: var(--green);
    color: white;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: var(--green-light);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 4rem 3rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(76, 175, 80, 0.08) 0%, transparent 50%);
}

/* Animated converging lines */
.hero-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-line {
    position: absolute;
    width: 160%;
    height: 1px;
    left: -5%;
    transform-origin: 0% 50%;
    top: 60%;
}

.line-1 {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.4) 0%, rgba(76, 175, 80, 0.15) 40%, transparent 75%);
    animation: line-fan-1 14s ease-in-out infinite;
}

.line-2 {
    background: linear-gradient(90deg, rgba(180, 210, 180, 0.2) 0%, rgba(180, 210, 180, 0.08) 35%, transparent 70%);
    animation: line-fan-2 18s ease-in-out infinite;
}

.line-3 {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.35) 0%, rgba(76, 175, 80, 0.1) 45%, transparent 80%);
    animation: line-fan-3 12s ease-in-out infinite;
}

.line-4 {
    background: linear-gradient(90deg, rgba(200, 220, 200, 0.15) 0%, rgba(200, 220, 200, 0.05) 30%, transparent 65%);
    animation: line-fan-4 20s ease-in-out infinite;
}

.line-5 {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.25) 0%, rgba(76, 175, 80, 0.08) 40%, transparent 75%);
    animation: line-fan-5 15s ease-in-out infinite;
}

.line-6 {
    background: linear-gradient(90deg, rgba(160, 200, 160, 0.1) 0%, rgba(160, 200, 160, 0.04) 35%, transparent 60%);
    animation: line-fan-6 22s ease-in-out infinite;
}

@keyframes line-fan-1 {
    0%, 100% { transform: rotate(-4deg); }
    50% { transform: rotate(8deg); }
}

@keyframes line-fan-2 {
    0%, 100% { transform: rotate(18deg); }
    50% { transform: rotate(-8deg); }
}

@keyframes line-fan-3 {
    0%, 100% { transform: rotate(-22deg); }
    50% { transform: rotate(-6deg); }
}

@keyframes line-fan-4 {
    0%, 100% { transform: rotate(6deg); }
    50% { transform: rotate(25deg); }
}

@keyframes line-fan-5 {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(3deg); }
}

@keyframes line-fan-6 {
    0%, 100% { transform: rotate(30deg); }
    50% { transform: rotate(12deg); }
}

.hero-container {
    max-width: 1100px;
    width: 100%;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    text-align: left;
    max-width: 560px;
}

/* Phone Mockups */
.hero-phones {
    position: relative;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
    background: var(--bg-card);
    position: absolute;
}

.phone-mockup img {
    display: block;
    height: 100%;
    width: auto;
}

.phone-back {
    height: 380px;
    right: 0;
    top: 10%;
    transform: rotate(3deg);
    opacity: 0.85;
    z-index: 1;
}

.phone-front {
    height: 420px;
    left: 10%;
    top: 5%;
    transform: rotate(-2deg);
    z-index: 2;
}

/* Hero Stats (full-width below) */
.hero-stats {
    max-width: 1100px;
    width: 100%;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
    padding: 0.45rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--green-light);
    margin-bottom: 1.75rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.text-white { color: #ffffff; }

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 0 2rem;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
}

.btn {
    padding: 0.9rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-white:hover {
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--green);
    color: var(--green);
}

/* Hero Stats Tiles */
.hero-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.hero-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.hero-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(76, 175, 80, 0.25);
}

.hero-tile .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green);
    display: block;
    line-height: 1;
}

.hero-tile .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* ===== Sections ===== */
.section {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 4rem;
    background: var(--bg-dark);
}

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

.section-dark { background: var(--green-dark); }

.section-header {
    margin-bottom: 3rem;
}

.section-number {
    font-size: 2.0rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--green);
    margin-bottom: 0.5rem;
}

.section h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.section-desc {
    color: var(--text-muted);
    max-width: 400px;
    font-size: 0.95rem;
}

/* ===== Features Tiles ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feature-tile {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, border-color 0.3s;
}

.feature-tile:hover {
    transform: translateY(-6px);
    border-color: rgba(76, 175, 80, 0.3);
}

.feature-tile-large {
    grid-row: span 2;
}

.feature-tile .icon-box {
    margin-bottom: 1.25rem;
}

.icon-box-sm {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.feature-tile h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-white);
}

.feature-tile p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Feature tile with app preview */
.feature-tile-highlight {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.feature-tile-highlight .feature-tile-content {
    display: flex;
    flex-direction: column;
}

.feature-tile-highlight .feature-tile-content .icon-box {
    margin-bottom: 1.25rem;
}

.feature-tile-preview {
    height: 220px;
    width: auto;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.feature-tile-preview-wide {
    height: auto;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
}

/* Matrix tile with preview */
.matrix-tile-featured {
    position: relative;
    overflow: hidden;
}

.matrix-tile-preview {
    height: 120px;
    width: auto;
    border-radius: 10px;
    margin-top: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.feature-list {
    list-style: none;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.feature-list li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
}

/* ===== Modules Tiles ===== */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.module-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
}

.module-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(76, 175, 80, 0.25);
}

.module-tile .icon-box {
    margin: 0 auto 1rem;
}

.module-tile h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text-white);
    font-weight: 600;
}

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

.module-tag {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.55rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-primary {
    background: rgba(76, 175, 80, 0.15);
    color: var(--green-light);
}

/* ===== Benefits ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.benefit-tiles {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.benefit-tile {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: border-color 0.3s;
}

.benefit-tile:hover {
    border-color: rgba(76, 175, 80, 0.25);
}

.benefit-tile .icon-box {
    width: 44px;
    height: 44px;
}

.benefit-tile h4 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
    color: var(--text-white);
    font-weight: 600;
}

.benefit-tile p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.benefits-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.benefits-visual-img {
    width: 100%;
    max-width: 360px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* ===== Why Choose Us - Feature Grid ===== */
.why-section {
    background: var(--bg-dark);
    padding: 6rem 4rem;
    min-height: auto;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem 6rem;
    max-width: 1100px;
    margin: 0 auto;
}

.why-item {
    padding: 0;
}

.why-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.why-number {
    font-size: 1.3rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.5rem;
}

.why-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon svg {
    width: 40px;
    height: 40px;
    stroke: #9acd32;
    stroke-width: 1;
    fill: none;
}

.why-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: white;
    margin-bottom: 1.5rem;
}

.why-divider {
    width: 120px;
    height: 3px;
    background: #9acd32;
    margin-bottom: 1.5rem;
}

.why-text {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    max-width: 400px;
}

@media (max-width: 768px) {
    .why-section {
        padding: 4rem 1.5rem;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .why-title {
        font-size: 1.5rem;
    }
}

/* ===== CTA ===== */
.cta-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.cta-content p {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    line-height: 1.75;
}

.btn-cta {
    background: white;
    color: var(--green-dark);
    padding: 1rem 2rem;
    font-size: 0.95rem;
}

.cta-tiles {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.cta-tile {
    text-align: center;
}

.cta-tile-label {
    font-size: 0.65rem;
    opacity: 0.5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.2rem;
}

.cta-tile-value {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===== Footer ===== */
.footer {
    padding: 1.25rem 4rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.75rem;
    font-size: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== ERP-Modulmatrix ===== */
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.matrix-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.3s, border-color 0.3s;
}

.matrix-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(76, 175, 80, 0.25);
}

.matrix-tile h4 {
    font-size: 0.95rem;
    color: var(--green-light);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.matrix-list {
    list-style: none;
}

.matrix-list li {
    padding: 0.3rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.matrix-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-size: 0.7rem;
}

/* ===== Testimonial ===== */
.testimonial-section {
    background: var(--bg-section);
    padding: 6rem 4rem;
}

.testimonial-section .section-header {
    margin-bottom: 3rem;
}

.testimonial-carousel {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

/* Avatar row */
.testimonial-avatars {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid transparent;
    padding: 10px;
    cursor: pointer;
    opacity: 0.45;
    filter: grayscale(100%);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-avatar:hover {
    opacity: 0.7;
    filter: grayscale(50%);
}

.testimonial-avatar.active {
    opacity: 1;
    filter: grayscale(0%);
    border-color: var(--green);
    transform: scale(1.15);
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.2);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Slides */
.testimonial-slides {
    position: relative;
    min-height: 200px;
}

.testimonial-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.testimonial-section .testimonial-text {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: 2rem;
    font-style: italic;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-section .testimonial-name {
    display: block;
    font-weight: 700;
    color: var(--text-white);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
}

a.testimonial-name:hover {
    color: var(--green);
}

.testimonial-section .testimonial-role {
    display: block;
    color: var(--green);
    font-size: 0.8rem;
    margin-top: 0.2rem;
    letter-spacing: 0.03em;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .modules-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-tile-large { grid-row: span 1; }
    .feature-tile-highlight { grid-column: span 2; }
    .benefits-grid { grid-template-columns: 1fr; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { text-align: center; margin: 0 auto; }
    .hero-subtitle { margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }
    .hero-phones { height: 360px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .matrix-grid { grid-template-columns: repeat(2, 1fr); }
    .section { min-height: auto; padding: 4rem 3rem; }
}

@media (max-width: 768px) {
    .nav { padding: 0.75rem 1.5rem; }
    .nav.nav-scrolled { padding: 0.6rem 1.5rem; }
    .nav-logo-img { height: 42px; }
    .nav-links { display: none; }
    .section, .hero { padding: 3rem 1.5rem; }
    .hero { padding-top: 7rem; }
    .features-grid, .modules-grid { grid-template-columns: 1fr; }
    .feature-tile-highlight { grid-column: span 1; grid-template-columns: 1fr; }
    .feature-tile-preview { height: 160px; margin: 0 auto; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .matrix-grid { grid-template-columns: 1fr; }
    .hero-phones { height: 300px; }
    .phone-back { height: 260px; }
    .phone-front { height: 290px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .cta-tiles { flex-direction: column; gap: 1rem; }
    .footer-container { flex-direction: column; gap: 1rem; text-align: center; }
    .why-section { padding: 4rem 1.5rem; }
    .testimonial-section { padding: 4rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-line { animation: none; }
}

/* ===== Legal Pages (Impressum, Datenschutz) ===== */
.legal-page {
    background: var(--bg-dark);
    min-height: 100vh;
    padding: 8rem 4rem 4rem;
}

.legal-container {
    max-width: 780px;
    margin: 0 auto;
}

.legal-header {
    margin-bottom: 3rem;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--green);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: opacity 0.2s;
}

.legal-back:hover {
    opacity: 0.7;
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.legal-content {
    color: var(--text-light);
    line-height: 1.8;
}

.legal-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.legal-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-white);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.legal-section address {
    font-style: normal;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
}

.legal-section a {
    color: var(--green);
    text-decoration: none;
    transition: opacity 0.2s;
}

.legal-section a:hover {
    opacity: 0.8;
}

.legal-section ul {
    margin: 0.75rem 0 0.75rem 1.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.legal-section ul li {
    margin-bottom: 0.4rem;
}

.legal-source {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2rem;
}

.footer-links a.active {
    color: var(--green);
}

@media (max-width: 768px) {
    .legal-page { padding: 6rem 1.5rem 3rem; }
    .legal-header h1 { font-size: 1.8rem; }
}
