/* ==========================================================================
   IT-Road – Stylesheet
   Farben stammen direkt aus dem Logo (Blau, Grün, Gelb, Rot, Schwarz).
   Schrift: System-Schriften → keine externen Font-Anfragen, schnell und DSGVO-freundlich.
   ========================================================================== */

:root {
    --ink: #0d1020;
    --text: #3b4054;
    --muted: #6a6f84;
    --line: #dde0ea;
    --paper: #ffffff;
    --tint: #f3f4fa;

    --blue: #2230d0;
    --blue-dark: #1a25a6;
    --green: #12b83a;
    --yellow: #e0b420;
    --red: #e01030;

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius: 10px;
    --wrap: 1120px;
    --header-h: 76px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
address { font-style: normal; }

h1, h2, h3 {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.12;
    text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.8vw, 3.7rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 1.4rem; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.3; }
p  { margin: 0 0 1rem; max-width: 68ch; }

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

.container { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-tint { background: var(--tint); }
.section-intro { color: var(--muted); margin-bottom: 2.2rem; }

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 200;
    background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Icons ---------- */
.icon {
    width: 1.15em; height: 1.15em; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.icon-lg { width: 2rem; height: 2rem; }
.icon-xl { width: 3rem; height: 3rem; stroke-width: 1.5; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
    padding: .8rem 1.3rem; border-radius: var(--radius);
    border: 2px solid transparent; text-decoration: none; cursor: pointer;
    transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn:active { transform: translateY(1px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    height: var(--header-h);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(13, 16, 32, .06); }

.navbar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand img { height: 52px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav li a {
    display: block; padding: .5rem .8rem; border-radius: 8px;
    color: var(--ink); text-decoration: none; font-weight: 550; font-size: .98rem;
    position: relative;
}
.site-nav li a:hover { background: var(--tint); }
.site-nav li a[aria-current="true"]::after {
    content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .15rem;
    height: 3px; border-radius: 2px; background: var(--blue);
}
.nav-cta { padding: .6rem 1.1rem; }

.nav-toggle {
    display: none; width: 46px; height: 46px; padding: 0;
    background: none; border: 0; border-radius: var(--radius); cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.hero h1 { max-width: 17em; }
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--text); margin: 1.5rem 0 2rem; max-width: 40em; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Die Straße: Tübingen → Reutlingen → Stuttgart */
.route {
    --stop: 22px;
    list-style: none; margin: clamp(3.5rem, 8vw, 5.5rem) 0 0; padding: 2.1rem 0 0;
    position: relative; display: flex; justify-content: space-between;
    font-weight: 650; color: var(--ink);
}
.route::before {                       /* Asphalt */
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 14px;
    background: var(--ink); border-radius: 7px;
    transform-origin: left center;
    animation: road-in 1.1s cubic-bezier(.6, .05, .2, 1) both;
}
.route::after {                        /* Mittellinie */
    content: ""; position: absolute; top: 6px; left: 14px; right: 14px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--yellow) 0 16px, transparent 16px 30px);
    animation: line-in 1.1s .15s cubic-bezier(.6, .05, .2, 1) both;
}
.route li { position: relative; z-index: 1; }
.route li::before {                    /* Haltepunkt */
    content: ""; position: absolute; top: calc(-2.1rem - 4px);
    width: var(--stop); height: var(--stop); border-radius: 50%;
    background: var(--c, var(--blue)); border: 4px solid var(--paper);
    box-shadow: 0 0 0 2px var(--ink);
    animation: stop-in .4s both;
}
.route li:nth-child(1) { --c: var(--blue); }
.route li:nth-child(2) { --c: var(--green); text-align: center; }
.route li:nth-child(3) { --c: var(--red); text-align: right; }
.route li:nth-child(1)::before { left: 0; animation-delay: .25s; }
.route li:nth-child(2)::before { left: 50%; margin-left: calc(var(--stop) / -2); animation-delay: .65s; }
.route li:nth-child(3)::before { right: 0; animation-delay: 1.05s; }

@keyframes road-in { from { transform: scaleX(0); } }
@keyframes line-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes stop-in { from { transform: scale(0); } }

/* ---------- Zitat ---------- */
.quote { margin: 0; background: var(--ink); color: #fff; padding-block: 2.2rem; }
.quote blockquote { margin: 0; font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 600; line-height: 1.4; max-width: 38em; letter-spacing: -0.01em; }
.quote figcaption { margin-top: .7rem; color: #aab0c8; font-size: .95rem; }

/* ---------- Über mich ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.strong { font-size: 1.2rem; font-weight: 600; color: var(--ink); line-height: 1.5; }

.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.facts .icon { width: 1.7rem; height: 1.7rem; color: var(--blue); margin-top: .1rem; }
.facts span { display: block; color: var(--muted); font-size: .97rem; line-height: 1.5; }
.facts strong { display: block; color: var(--ink); font-size: 1.05rem; }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2rem; align-items: stretch; }

.feature {
    background: var(--ink); color: #d5d8e6;
    border-radius: 18px; padding: clamp(1.8rem, 4vw, 2.8rem);
    display: flex; flex-direction: column; gap: 1rem;
    position: relative; overflow: hidden;
}
.feature::after {                      /* Straßenmarkierung als stiller Akzent */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
    background: repeating-linear-gradient(90deg, var(--yellow) 0 22px, transparent 22px 40px);
}
.feature h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.feature p { margin: 0; }
.feature .icon-xl { color: var(--yellow); }
.feature-link {
    margin-top: auto; padding-top: 1rem; padding-bottom: .8rem;
    display: inline-flex; align-items: center; gap: .5rem;
    color: #fff; font-weight: 650; text-decoration: none; width: fit-content;
}
.feature-link:hover { color: var(--yellow); }
.feature-link .icon { transition: transform .2s; }
.feature-link:hover .icon { transform: translateX(4px); }

.service-list article { display: flex; gap: 1.2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.service-list article:first-child { padding-top: 0; }
.service-list article:last-child { border-bottom: 0; padding-bottom: 0; }
.service-list .icon { color: var(--blue); margin-top: .1rem; }
.service-list h3 { margin-bottom: .35rem; }
.service-list p { margin: 0; }

.note { margin: 2.5rem 0 0; color: var(--muted); font-size: .98rem; }

/* ---------- Referenzen ---------- */
.projects { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.projects li { border-bottom: 1px solid var(--line); }
.projects a {
    display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center;
    padding: 1.8rem .5rem; text-decoration: none; color: inherit;
    transition: background-color .2s, padding .2s;
}
.projects a:hover { background: var(--tint); padding-inline: 1.2rem; }
.proj-mark {
    width: 64px; height: 64px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--c); color: #fff; font-size: 1.7rem; font-weight: 800;
}
.proj-body { display: grid; gap: .25rem; }
.proj-cat { color: var(--muted); font-size: .92rem; font-weight: 600; }
.proj-name { color: var(--ink); font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.proj-desc { max-width: 60ch; font-size: .98rem; line-height: 1.55; }
.proj-go { display: inline-flex; align-items: center; gap: .45rem; font-weight: 650; color: var(--blue); white-space: nowrap; }

/* ---------- Ablauf ---------- */
.steps {
    --progress: 0;
    list-style: none; margin: 2.5rem 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.5rem);
    position: relative;
    counter-reset: step;
}
.steps::before, .steps::after {        /* Straße, die sich beim Scrollen füllt */
    content: ""; position: absolute; top: 22px; left: 22px; height: 6px; border-radius: 3px;
}
.steps::before { right: 22px; background: var(--line); }
.steps::after { width: calc((100% - 44px) * var(--progress)); background: var(--blue); }
.steps li { position: relative; padding-top: 4.2rem; counter-increment: step; }
.steps li::before {
    content: counter(step);
    position: absolute; top: 0; left: 0; z-index: 1;
    width: 50px; height: 50px; border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 800; font-size: 1.25rem;
    background: var(--paper); color: var(--ink); border: 3px solid var(--line);
    transition: background-color .3s, color .3s, border-color .3s;
}
.steps li.is-reached::before { background: var(--blue); border-color: var(--blue); color: #fff; }
.steps h3 { margin-bottom: .5rem; }
.steps p { margin: 0; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-grid h2 { margin: 0; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1.2rem 0; font-weight: 650; font-size: 1.1rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; flex: none; width: 12px; height: 12px;
    border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue);
    transform: rotate(45deg); transition: transform .25s; margin-right: .3rem;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding-bottom: 1.3rem; margin: 0; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-col address { font-size: 1.1rem; line-height: 1.7; color: var(--ink); margin-bottom: 1rem; }
.contact-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .6rem; }
.contact-list li { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.contact-list .icon { color: var(--blue); }
.contact-list a { font-weight: 650; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.copy-btn {
    display: inline-flex; align-items: center; gap: .35rem;
    font: inherit; font-size: .85rem; font-weight: 600; color: var(--muted);
    background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
    padding: .25rem .6rem; cursor: pointer;
}
.copy-btn:hover { color: var(--ink); border-color: var(--ink); }

.request { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.3rem, 3vw, 2rem); display: grid; gap: 1rem; }
.request h3 { margin-bottom: .2rem; }
.request label { display: grid; gap: .35rem; font-weight: 600; color: var(--ink); font-size: .95rem; }
.request .opt { font-weight: 400; color: var(--muted); }
.request input, .request select, .request textarea {
    font: inherit; font-weight: 400; color: var(--ink);
    width: 100%; padding: .7rem .85rem;
    background: var(--paper); border: 1.5px solid #c4c8d8; border-radius: 8px;
}
.request textarea { resize: vertical; min-height: 5.5rem; }
.request input:focus, .request select:focus, .request textarea:focus { outline: 3px solid rgba(34, 48, 208, .3); border-color: var(--blue); }
.form-note { margin: 0; font-size: .85rem; color: var(--muted); }

.map {
    position: relative; min-height: 460px; height: 100%;
    background: var(--ink);
    border-radius: 16px; overflow: hidden; color: #d5d8e6;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .9rem; text-align: center; padding: 1.5rem; }
.map-consent .icon { color: var(--yellow); }
.map-consent p { margin: 0; }
.map-alt { color: #fff; font-size: .92rem; }
.map-alt:hover { color: var(--yellow); }

/* ---------- Impressum ---------- */
.imprint { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 6vw, 5rem); }
.imprint h2 { margin: 0; }
.imprint-body p { margin-bottom: 1.1rem; }
.imprint-body .small { font-size: .9rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aab0c8; padding-block: 2.5rem; font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-bottom: 1.2rem; }
.footer-nav a { color: #fff; text-decoration: none; font-weight: 550; }
.footer-nav a:hover { color: var(--yellow); text-decoration: underline; }
.copyright { margin: 0; max-width: none; line-height: 1.7; }

/* ---------- Schwebender WhatsApp-Button & Hinweis ---------- */
.wa-float {
    position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
    width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center;
    background: #1fa855; color: #fff;
    box-shadow: 0 8px 24px rgba(13, 16, 32, .3);
    transition: transform .2s, opacity .3s;
}
.wa-float:hover { color: #fff; transform: scale(1.07); }
.wa-float.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }

.toast {
    position: fixed; left: 50%; bottom: 1.5rem; z-index: 120;
    transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: var(--radius);
    font-weight: 600; transition: opacity .25s, transform .25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .about-grid, .services, .faq-grid, .contact-grid, .imprint { grid-template-columns: 1fr; }
    .faq-grid h2 { position: static; }
    .map { min-height: 340px; }

    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 1rem;
        background: var(--paper); padding: 1rem 1.25rem 1.5rem;
        border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px rgba(13, 16, 32, .08);
        visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
    .site-nav ul { flex-direction: column; }
    .site-nav li a { padding: .8rem .6rem; font-size: 1.05rem; }
    .site-nav li a[aria-current="true"]::after { left: .6rem; right: auto; width: 28px; bottom: .45rem; }
    .nav-cta { padding: .9rem 1.2rem; }
}

@media (max-width: 700px) {
    .projects a { grid-template-columns: auto 1fr; gap: 1rem; padding-inline: 0; }
    .projects a:hover { padding-inline: .6rem; }
    .proj-mark { width: 48px; height: 48px; font-size: 1.3rem; }
    .proj-go { grid-column: 2; }

    /* Ablauf wird senkrecht */
    .steps { grid-template-columns: 1fr; gap: 0; }
    .steps::before, .steps::after { top: 22px; left: 22px; width: 6px; right: auto; height: calc(100% - 44px); }
    .steps::after { width: 6px; height: calc((100% - 44px) * var(--progress)); }
    .steps li { padding: 0 0 2.2rem 4.2rem; min-height: 50px; }
    .steps li:last-child { padding-bottom: 0; }
}

@media (max-width: 480px) {
    .cta-row .btn { width: 100%; }
    .route { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
