/* ===========================
   VARIABLES & RESET
=========================== */
:root {
    --green: #1e6f3e;
    --green-dark: #145230;
    --green-mid: #2d8a50;
    --green-light: #e8f5ed;
    --accent: #f4a261;
    --text: #1a1a2e;
    --text-mid: #555;
    --text-light: #888;
    --bg: #f8fffe;
    --bg-alt: #f2f8f4;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.14);
    --radius: 14px;
    --transition: 0.3s ease;
    --header-h: 92px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-h);
}

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

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

/* ===========================
   TYPOGRAPHY
=========================== */
h1, h2, h3, h4 {
    font-family: 'Poppins', 'Inter', sans-serif;
    line-height: 1.2;
}

/* ===========================
   LAYOUT
=========================== */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ===========================
   HEADER
=========================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow var(--transition);
    overflow: hidden;
}

#header.scrolled {
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    padding: 0 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.header-logo {
    height: 90px;
    width: auto;
    transition: opacity var(--transition);
}

.header-logo-link:hover .header-logo {
    opacity: 0.85;
}

.header-nav ul {
    display: flex;
    gap: 2px;
    list-style: none;
}

.nav-link {
    display: block;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--green);
    padding: 10px 20px;
    border-radius: 50px;
    border: 2px solid var(--green);
    background: transparent;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
    letter-spacing: 0.2px;
}

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

.nav-link.active {
    color: var(--green);
    font-weight: 600;
}

.nav-link.nav-cta {
    background: var(--green);
    color: white;
    border-color: var(--green);
    padding: 11px 24px;
    border-radius: 50px;
    font-weight: 600;
}

.nav-link.nav-cta:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: white;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background var(--transition);
}

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

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   HERO
=========================== */
.hero {
    position: relative;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        155deg,
        rgba(8, 35, 18, 0.80) 0%,
        rgba(10, 45, 22, 0.60) 55%,
        rgba(8, 35, 18, 0.45) 100%
    );
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-align: center;
    padding: 0 24px;
    max-width: 820px;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    color: white;
    padding: 7px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    letter-spacing: 0.4px;
}

.hero h1 {
    font-size: clamp(2rem, 5.5vw, 4.2rem);
    color: white;
    font-weight: 800;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    margin-bottom: 18px;
}

.hero-highlight {
    color: #78dfa0;
}

.hero-sub {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 40px;
    line-height: 1.9;
}

.hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 52px;
}

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.875rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-stars {
    color: #ffd060;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.trust-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.28);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: block;
}

.scroll-indicator {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 2px;
    animation: scrollBounce 2s infinite ease-in-out;
}

@keyframes scrollBounce {
    0%, 100% { opacity: 1; top: 6px; }
    50% { opacity: 0.25; top: 22px; }
}

/* ===========================
   BUTTONS
=========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 30px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.975rem;
    cursor: pointer;
    border: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

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

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

.btn-outline {
    background: rgba(255, 255, 255, 0.14);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: white;
    color: white;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===========================
   SECTIONS
=========================== */
.section {
    padding: 100px 0;
    scroll-margin-top: var(--header-h);
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: var(--green-light);
    color: var(--green);
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.8rem);
    color: var(--text);
    margin-bottom: 14px;
}

.text-green {
    color: var(--green);
}

.section-sub {
    color: var(--text-mid);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.85;
}

/* ===========================
   ÜBER UNS
=========================== */
.ueber-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 56px;
}

.ueber-card {
    background: white;
    padding: 36px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
    border-bottom: 3px solid transparent;
}

.ueber-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--green);
}

.ueber-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
    display: block;
}

.ueber-card h3 {
    color: var(--green);
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.ueber-card p {
    color: var(--text-mid);
    line-height: 1.75;
    font-size: 0.95rem;
}

/* Stats bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.stat-item {
    padding: 32px 20px;
    text-align: center;
    color: white;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    transition: background var(--transition);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.stat-num {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.78rem;
    opacity: 0.82;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ===========================
   LEISTUNGEN
=========================== */
.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.leistung-card {
    background: white;
    padding: 36px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
    border-top: 4px solid transparent;
}

.leistung-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--green);
}

.leistung-card.featured {
    border-top-color: var(--green);
    background: linear-gradient(160deg, #fff 0%, #f0faf4 100%);
}

.leistung-badge {
    position: absolute;
    top: -1px;
    right: 22px;
    background: var(--accent);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 13px;
    border-radius: 0 0 9px 9px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.leistung-icon {
    font-size: 2.6rem;
    margin-bottom: 16px;
    display: block;
}

.leistung-card h3 {
    font-size: 1.2rem;
    color: var(--green);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--green-light);
}

.leistung-list {
    list-style: none;
    padding: 0;
}

.leistung-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    color: var(--text-mid);
    font-size: 0.915rem;
    border-bottom: 1px solid #f2f2f2;
    line-height: 1.5;
}

.leistung-list li:last-child {
    border-bottom: none;
}

.leistung-list li::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
    flex-shrink: 0;
    font-size: 0.85rem;
    margin-top: 2px;
}

/* ===========================
   PREISE
=========================== */
.equipment-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--green-light);
    border: 1px solid #c3e6cc;
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 40px;
    font-size: 0.925rem;
}

.equip-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.equipment-banner strong {
    display: block;
    color: var(--green);
    font-size: 1rem;
    margin-bottom: 2px;
}

.equipment-banner span {
    color: var(--text-mid);
}

.preis-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 32px;
}

.preis-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.preis-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.preis-card-header {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
    padding: 30px 28px;
    color: white;
    text-align: center;
}

.preis-icon {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 10px;
}

.preis-card-header h3 {
    font-size: 1.35rem;
    margin-bottom: 5px;
}

.preis-card-header p {
    opacity: 0.82;
    font-size: 0.875rem;
}

.preistabelle {
    width: 100%;
    border-collapse: collapse;
}

.preistabelle th {
    background: var(--green-light);
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 12px 20px;
    text-align: left;
}

.preistabelle td {
    padding: 14px 20px;
    font-size: 0.91rem;
    text-align: left;
    vertical-align: middle;
}

.preistabelle tbody tr {
    border-bottom: 1px solid #f0f6f2;
    transition: background var(--transition);
}

.preistabelle tbody tr:last-child {
    border-bottom: none;
}

.preistabelle tbody tr:hover {
    background: var(--green-light);
}

.preistabelle td small {
    display: block;
    color: var(--text-light);
    font-size: 0.78rem;
    margin-top: 2px;
}

.highlight-row td {
    color: var(--green);
    font-weight: 600;
}

.preis-note {
    padding: 18px 20px;
    background: #f6fbf8;
    border-top: 1px solid #d8edd f;
    font-size: 0.875rem;
    color: var(--text-mid);
    line-height: 1.65;
}

.preis-note p + p {
    margin-top: 8px;
}

.preis-cta {
    text-align: center;
    padding: 44px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.preis-cta p {
    font-size: 1.05rem;
    color: var(--text-mid);
    margin-bottom: 22px;
}

/* ===========================
   PROJEKTE
=========================== */
.projekte-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 36px;
}

.projekt-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.projekt-card:hover {
    box-shadow: var(--shadow-lg);
}

.projekt-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--green-light);
}

.projekt-title-bar h3 {
    font-size: 1.05rem;
    color: var(--green);
}

.projekt-hint {
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 500;
    background: var(--green-light);
    padding: 3px 10px;
    border-radius: 20px;
}

/* Comparison Slider */
.comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: col-resize;
    user-select: none;
    touch-action: none;
    background: #111;
}

.comparison-after,
.comparison-before {
    position: absolute;
    inset: 0;
}

.comparison-after img,
.comparison-before img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: block;
}

.comparison-before {
    clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0);
}

.comparison-label {
    position: absolute;
    bottom: 14px;
    padding: 5px 13px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: white;
    pointer-events: none;
    letter-spacing: 0.4px;
}

.label-before {
    left: 14px;
    background: rgba(0, 0, 0, 0.6);
}

.label-after {
    right: 14px;
    background: rgba(30, 111, 62, 0.85);
}

.comparison-handle {
    position: absolute;
    top: 0;
    left: var(--split, 50%);
    transform: translateX(-50%);
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.handle-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.handle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Thumbnails */
.projekt-thumbs {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    background: #f9fbf9;
    border-top: 1px solid #edf5ef;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.thumb-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.thumb-group-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
    margin-right: 2px;
}

.thumb {
    width: 62px;
    height: 46px;
    object-fit: cover;
    border-radius: 7px;
    cursor: pointer;
    opacity: 0.58;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: opacity var(--transition), border-color var(--transition), transform var(--transition);
}

.thumb:hover {
    opacity: 0.9;
    transform: scale(1.04);
}

.thumb.active {
    opacity: 1;
    border-color: var(--green);
}

.projekte-more {
    text-align: center;
    color: var(--text-mid);
    font-size: 1rem;
}

.projekte-more a {
    color: var(--green);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ===========================
   KONTAKT
=========================== */
.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 44px;
    align-items: start;
}

.kontakt-form-wrap {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.form-group:last-of-type {
    margin-bottom: 22px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e4e4e4;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.94rem;
    color: var(--text);
    background: #fafafa;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green);
    background: white;
    box-shadow: 0 0 0 4px rgba(30, 111, 62, 0.10);
}

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

.kontakt-info-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.kontakt-info-card h3 {
    color: var(--green);
    font-size: 1.15rem;
    margin-bottom: 26px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--green-light);
}

.kontakt-detail {
    display: flex;
    gap: 16px;
    margin-bottom: 22px;
    align-items: flex-start;
}

.kontakt-detail:last-child {
    margin-bottom: 0;
}

.kontakt-detail-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.kontakt-detail strong {
    display: block;
    font-size: 0.83rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.kontakt-detail p {
    color: var(--text-mid);
    font-size: 0.92rem;
    line-height: 1.55;
}

.kontakt-bewertung {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
    border-radius: var(--radius);
    padding: 28px;
    color: white;
    text-align: center;
}

.bewertung-stars {
    font-size: 1.5rem;
    color: #ffd060;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.bewertung-title {
    font-size: 1rem;
    margin-bottom: 6px;
}

.bewertung-sub {
    font-size: 0.83rem;
    opacity: 0.82;
    margin-bottom: 18px;
    line-height: 1.5;
}

.bewertung-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.bewertung-badges span {
    background: rgba(255, 255, 255, 0.18);
    padding: 4px 13px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===========================
   FOOTER
=========================== */
footer {
    background: #0f1a13;
    color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 64px 28px 44px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    height: 105px;
    width: auto;
    display: block;
    margin-left: -42px;
    margin-bottom: 18px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
}

.footer-nav h4,
.footer-kontakt h4,
.footer-legal h4 {
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 18px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-nav a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: #78dfa0;
}

.footer-kontakt p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 10px;
    line-height: 1.55;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 28px;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    max-width: 1180px;
    margin: 0 auto;
}

/* ===========================
   BACK TO TOP
=========================== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, background var(--transition);
    z-index: 900;
}

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

.back-to-top:hover {
    background: var(--green-dark);
}

/* ===========================
   ANIMATIONS
=========================== */
.fade-in {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   RESPONSIVE – TABLET
=========================== */
@media (max-width: 1100px) {
    .ueber-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ueber-grid .ueber-card:last-child {
        grid-column: span 2;
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .leistungen-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 700px;
        margin: 0 auto;
    }

    .leistungen-grid .leistung-card:last-child {
        grid-column: span 2;
        max-width: 440px;
        margin: 0 auto;
        width: 100%;
    }

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

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

    .footer-brand {
        grid-column: span 2;
    }

    .footer-legal {
        grid-column: span 1;
    }
}

@media (max-width: 900px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .stat-item:nth-child(3) {
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .stat-item:nth-child(4) {
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        border-right: none;
    }

    .projekte-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto 36px;
    }

    .preis-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto 32px;
    }
}

/* ===========================
   RESPONSIVE – MOBILE
=========================== */
@media (max-width: 768px) {
    :root {
        --header-h: 72px;
    }

    .header-inner {
        padding: 0 20px;
    }

    .header-logo {
        height: 72px;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: var(--shadow);
        padding: 12px 16px 20px;
        border-top: 1px solid #f0f0f0;
    }

    .header-nav.open {
        display: block;
    }

    .header-nav ul {
        flex-direction: column;
        gap: 2px;
    }

    .nav-link {
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .nav-link.nav-cta {
        margin-top: 8px;
        text-align: center;
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        min-height: 620px;
    }

    .hero-img {
        height: 620px;
        object-fit: cover;
        object-position: center;
    }

    .hero-content {
        top: 49%;
        padding: 0 22px;
    }

    .hero-badge {
        margin-bottom: 14px;
    }

    .hero h1 {
        font-size: 1.9rem;
        margin-bottom: 14px;
    }

    .hero-sub {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 26px;
    }

    .hero-trust {
        flex-direction: column;
        gap: 8px;
        font-size: 0.82rem;
    }

    .trust-divider {
        display: none;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        margin-bottom: 28px;
    }

    .hero-scroll {
        bottom: 18px;
    }

    .section {
        padding: 64px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

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

    .ueber-grid .ueber-card:last-child {
        grid-column: span 1;
        max-width: none;
    }

    .leistungen-grid {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .leistungen-grid .leistung-card:last-child {
        grid-column: span 1;
        max-width: none;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .kontakt-form-wrap {
        padding: 28px 22px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 44px 24px 28px;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .equipment-banner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .preis-cta {
        padding: 32px 22px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .stats-bar {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
        border-top: none !important;
        padding: 22px 20px;
    }

    .stat-item:last-child {
        border-bottom: none !important;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 6px 14px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }
}
