/* === DESIGN TOKENS === */
:root {
    --blue:      #0033CC;
    --blue-dark: #002299;
    --orange:    #F28500;
    --orange-dark: #D97600;
    --dark:      #1A1A2E;
    --grey-bg:   #F0F0F0;
    --grey-mid:  #D8D8D8;
    --grey-card: #FAFAFA;
    --white:     #FFFFFF;
    --text:      #2C2C3E;
    --text-light:#6B6B80;
    --radius:    6px;
    --shadow:    0 2px 12px rgba(0,0,0,0.09);
    --shadow-hover: 0 8px 28px rgba(0,51,204,0.13);
    --transition: 0.22s ease;
    --max-width: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--grey-bg);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* === LAYOUT === */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section { padding: 4.5rem 0; }

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--dark);
    box-shadow: 0 2px 16px rgba(0,0,0,0.25);
    height: 70px;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-logo img {
    height: 42px;
    width: auto;
    filter: brightness(0) invert(1);
}

.navbar-nav {
    display: flex;
    gap: 0;
    align-items: center;
}

.navbar-nav a {
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
    letter-spacing: 0.02em;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

.navbar-nav a.btn-nav {
    background: var(--orange);
    color: var(--white);
    margin-left: 0.5rem;
    padding: 0.45rem 1.1rem;
}

.navbar-nav a.btn-nav:hover {
    background: var(--orange-dark);
}

/* Hamburger */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.navbar-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--dark);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 70px;
}

.hero-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-lines svg {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.4rem;
}

.hero h1 span { color: var(--blue); }

.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 2.2rem;
    max-width: 520px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    border: none;
    letter-spacing: 0.03em;
}

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

.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242,133,0,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
    margin-left: 1rem;
}

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

/* === SECTION DIVIDER (Linienverlauf) === */
.section-divider {
    display: block;
    width: 100%;
    height: 60px;
    overflow: hidden;
    line-height: 0;
}

.section-divider svg { display: block; }

/* === SECTION HEADER === */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 0.7rem;
}

.section-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.8rem;
}

.section-header p {
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}

/* === SERVICE CARDS === */
.services {
    background: var(--grey-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--blue);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

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

.service-icon {
    width: 52px;
    height: 52px;
    background: rgba(0,51,204,0.07);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--blue);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    flex: 1;
}

.service-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--orange);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap var(--transition);
}

.service-link:hover { gap: 0.6rem; }

/* === USP STRIP === */
.usp-strip {
    background: var(--blue);
    padding: 3rem 0;
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.usp-item {
    color: var(--white);
}

.usp-item svg {
    width: 36px;
    height: 36px;
    stroke: rgba(255,255,255,0.8);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin: 0 auto 0.8rem;
    display: block;
}

.usp-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.usp-item p {
    font-size: 0.87rem;
    color: rgba(255,255,255,0.75);
}

/* === PAGE HERO (Unterseiten) === */
.page-hero {
    background: var(--dark);
    padding: 7rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.page-hero-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
}

.page-hero .container { position: relative; z-index: 2; }

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.6rem;
}

.page-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    max-width: 560px;
}

.breadcrumb {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: var(--orange); }

/* === CONTENT SECTIONS === */
.content-section { background: var(--white); }
.content-section.grey { background: var(--grey-bg); }

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

.content-text h2 {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.content-text p { color: var(--text-light); margin-bottom: 1rem; }

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.feature-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.feature-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--orange);
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item span { font-size: 0.95rem; color: var(--text); }

.visual-card {
    background: var(--grey-bg);
    border-radius: 12px;
    padding: 2.5rem;
    border-left: 4px solid var(--blue);
}

.visual-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.2rem;
}

.stat-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item { display: flex; gap: 1rem; align-items: center; }

.stat-icon {
    width: 44px;
    height: 44px;
    background: var(--blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--white);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-label { font-size: 0.85rem; color: var(--text-light); }
.stat-value { font-size: 1rem; font-weight: 700; color: var(--dark); }

/* === CONTACT FORM === */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3.5rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.contact-detail {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.contact-detail svg {
    width: 22px;
    height: 22px;
    stroke: var(--blue);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    margin-top: 1px;
}

.contact-detail-text strong { display: block; font-size: 0.83rem; color: var(--text-light); margin-bottom: 0.1rem; }
.contact-detail-text span { font-size: 0.95rem; color: var(--text); }

.form-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--grey-mid);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,51,204,0.1);
}

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

.form-honeypot { display: none !important; }

.form-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 1.2rem;
}

.alert {
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    margin-bottom: 1.2rem;
    font-size: 0.92rem;
    font-weight: 500;
}

.alert-success { background: #E8F5E9; color: #2E7D32; border-left: 4px solid #4CAF50; }
.alert-error   { background: #FFEBEE; color: #C62828; border-left: 4px solid #F44336; }

/* === ANGEBOT FORM === */
.angebot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    margin-bottom: 1.1rem;
}

/* === FOOTER === */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.75);
    padding: 3.5rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-brand img {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
    opacity: 0.85;
}

.footer-brand p { font-size: 0.87rem; line-height: 1.6; }

.footer-col h4 {
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }

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

.footer-col a:hover { color: var(--orange); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--orange); }

/* === SCROLL ANIMATION === */
.fade-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* === IMPRESSUM / DATENSCHUTZ === */
.text-page { background: var(--white); }

.text-page h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin: 2rem 0 0.6rem;
}

.text-page h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin: 1.4rem 0 0.4rem;
}

.text-page p { margin-bottom: 0.9rem; color: var(--text-light); }
.text-page ul { padding-left: 1.2rem; list-style: disc; }
.text-page ul li { margin-bottom: 0.4rem; color: var(--text-light); }
.text-page a { color: var(--blue); text-decoration: underline; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .services-grid,
    .usp-grid,
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .content-grid,
    .contact-wrap { grid-template-columns: 1fr; }

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

@media (max-width: 640px) {
    .navbar-nav { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--dark); padding: 1rem 1.5rem 1.5rem; gap: 0.3rem; }
    .navbar-nav.open { display: flex; }
    .navbar-nav a { padding: 0.7rem 1rem; display: block; }
    .navbar-nav a.btn-nav { margin-left: 0; margin-top: 0.5rem; text-align: center; }
    .navbar-toggle { display: flex; }

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

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

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

    .btn-outline { margin-left: 0; margin-top: 0.75rem; display: block; text-align: center; }

    section { padding: 3rem 0; }
}
