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

:root {
    --navy:        #1a3561;
    --navy-dark:   #11243f;
    --navy-light:  #234278;
    --orange:      #e8601c;
    --orange-dark: #c44e12;
    --gray:        #5c6876;
    --gray-light:  #8a96a3;
    --text:        #2c3340;
    --light:       #f4f6f9;
    --white:       #ffffff;
    --border:      #dde2e9;

    --content-width: 960px;
    --content-pad: 2rem;
}

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

body {
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Barlow', sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--white);
}

/* ===== NAVIGATION ===== */
nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--white);
    border-bottom: 3px solid var(--orange);
    box-shadow: 0 2px 12px rgba(26, 53, 97, 0.10);
}

.nav-inner {
    max-width: calc(var(--content-width) + 2 * var(--content-pad));
    margin: 0 auto;
    padding: 0.7rem var(--content-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo img {
    height: 44px;
    display: block;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a,
.back-link {
    text-decoration: none;
    color: var(--navy);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.25s ease;
}

.nav-links a:hover,
.back-link:hover {
    color: var(--orange);
}

.nav-links a:hover::after {
    width: 100%;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.back-link::before {
    content: '◂';
    font-size: 0.75rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: 0.3s;
}

/* ===== SHARED ELEMENTS ===== */
.orange-bar {
    height: 4px;
    background: var(--orange);
}

.orange-bar--short {
    width: 60px;
    margin-bottom: 3rem;
}

.orange-bar--full {
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.15s;
}

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

.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
}

/* ===== HOMEPAGE ===== */
.hero {
    background: var(--navy);
    color: var(--white);
    padding: 6rem var(--content-pad) 5.5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    right: 3%;
    bottom: -5%;
    width: 0;
    height: 0;
    border-left: 320px solid transparent;
    border-bottom: 320px solid rgba(232, 96, 28, 0.08);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    right: 21%;
    bottom: 18%;
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-bottom: 100px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.hero-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 1.5rem;
}

.hero h1 em {
    font-style: normal;
    color: var(--orange);
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 600px;
    margin-bottom: 2.75rem;
    line-height: 1.7;
}

section {
    padding: 5rem var(--content-pad);
}

.section-inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

.section-eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 0.6rem;
}

.section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 3rem;
}

.section-title.light,
#profil .section-title {
    color: var(--white);
}

#leistungen,
#referenzen {
    background: var(--light);
}

.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.leistung-card {
    background: var(--white);
    padding: 2rem 1.75rem;
    border-top: 4px solid var(--navy);
    transition: border-top-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.leistung-card:hover {
    border-top-color: var(--orange);
    box-shadow: 0 6px 24px rgba(26, 53, 97, 0.12);
    transform: translateY(-2px);
}

.card-triangle {
    width: 0;
    height: 0;
    border-left: 26px solid transparent;
    border-bottom: 26px solid var(--orange);
    margin-bottom: 1.25rem;
    transition: border-bottom-color 0.25s;
}

.leistung-card:hover .card-triangle {
    border-bottom-color: var(--navy);
}

.leistung-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.card-sub {
    font-size: 0.82rem;
    color: var(--gray);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

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

.leistung-card ul li {
    padding: 0.35rem 0 0.35rem 1.3rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.45;
}

.leistung-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-bottom: 7px solid var(--orange);
}

#profil {
    background: var(--navy);
    color: var(--white);
}

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

.profil-text p {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 1.1rem;
    font-size: 1rem;
    line-height: 1.75;
}

.profil-text p:last-child {
    margin-bottom: 0;
}

.profil-text strong {
    color: var(--white);
}

.ki-note {
    margin-top: 1.75rem;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--orange);
    background: rgba(232, 96, 28, 0.07);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
}

.profil-timeline {
    border-left: 2px solid var(--orange);
    padding-left: 1.75rem;
}

.timeline-item {
    margin-bottom: 1.75rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1.75rem - 9px);
    top: 0.35rem;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-bottom: 9px solid var(--orange);
}

.timeline-period {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 0.2rem;
}

.timeline-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.45;
}

.ref-intro {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 560px;
}

.referenzen-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ref-tag {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--orange);
    padding: 0.5rem 1.1rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.02em;
    transition: border-left-color 0.2s, box-shadow 0.2s;
}

.ref-tag:hover {
    border-left-color: var(--navy);
    box-shadow: 0 2px 8px rgba(26, 53, 97, 0.10);
}

.ref-tag.anonym {
    border-left-color: var(--gray-light);
    color: var(--gray);
    font-style: italic;
}

#kontakt {
    background: var(--white);
}

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

.kontakt-intro {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.8;
}

.kontakt-card {
    background: var(--light);
    padding: 2rem;
    border-left: 4px solid var(--orange);
}

.kontakt-field-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-top: 1.2rem;
    margin-bottom: 0.15rem;
}

.kontakt-field-label:first-child {
    margin-top: 0;
}

.kontakt-field-val {
    font-size: 0.97rem;
    color: var(--text);
    line-height: 1.5;
}

.kontakt-field-val a,
.legal-section a,
.contact-block a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.kontakt-field-val a:hover,
.legal-section a:hover,
.contact-block a:hover {
    text-decoration: underline;
}

/* ===== LEGAL PAGE ===== */
main {
    flex: 1;
    max-width: calc(var(--content-width) + 2 * var(--content-pad));
    margin: 0 auto;
    padding: 4rem var(--content-pad);
    width: 100%;
}

.page-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

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

.legal-section h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--border);
}

.legal-section h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray);
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
}

.legal-section p {
    font-size: 0.97rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.contact-block {
    background: var(--light);
    border-left: 4px solid var(--orange);
    padding: 1.5rem 1.75rem;
    font-size: 0.97rem;
    line-height: 1.8;
}

.todo {
    background: #fff8e1;
    border: 1px dashed var(--orange);
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    color: #b54400;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */
footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.5);
    padding: 1.5rem var(--content-pad);
    text-align: center;
    font-size: 0.85rem;
}

footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s;
}

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

footer .sep {
    margin: 0 0.75rem;
    opacity: 0.4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    section {
        padding: 3.5rem 1.5rem;
    }

    .hero {
        padding: 4.5rem 1.5rem;
    }

    .profil-grid,
    .kontakt-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero::before {
        display: none;
    }
}

@media (max-width: 640px) {
    .nav-inner {
        gap: 1rem;
        padding-inline: 1.5rem;
    }

    .nav-logo img {
        max-width: min(220px, 58vw);
        height: auto;
    }

    .nav-toggle {
        display: flex;
        flex: 0 0 auto;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        border-bottom: 3px solid var(--orange);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links a::after {
        display: none;
    }

    main {
        padding: 2.5rem 1.5rem;
    }

    .back-link {
        font-size: 0.9rem;
        text-align: right;
    }
}

@media (max-width: 480px) {
    :root {
        --content-pad: 1.25rem;
    }

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

    .btn {
        width: 100%;
        text-align: center;
    }
}
