/* =========================================================================
   Pohl IT Dienstleistungen — Stylesheet
   Modern, schlank, responsiv. Keine externen Abhängigkeiten.
   ========================================================================= */

:root {
    --navy:      #0b2740;
    --navy-700:  #103452;
    --accent:    #2e9bd6;
    --accent-600:#1f86bf;
    --ink:       #1b2733;
    --muted:     #5a6b7b;
    --line:      #e2e8ef;
    --bg:        #ffffff;
    --bg-alt:    #f4f7fa;
    --ok:        #1f9d57;
    --warn:      #e0a106;
    --err:       #c0392b;
    --support:   #d32f2f;
    --radius:    12px;
    --shadow:    0 6px 24px rgba(11, 39, 64, .08);
    --maxw:      1140px;
    --font:      system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

a { color: var(--accent-600); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
    padding: .6rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-block; background: var(--accent); color: #fff;
    padding: .8rem 1.4rem; border-radius: var(--radius); font-weight: 600;
    border: 2px solid var(--accent); cursor: pointer; text-align: center;
    transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--accent-600); border-color: var(--accent-600); text-decoration: none; color:#fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--navy); border-color: var(--accent); }
.btn-light { background:#fff; color: var(--navy); border-color:#fff; }
.btn-light:hover { background:#eef5fa; color: var(--navy); border-color:#eef5fa; }
/* Ghost-Button auf dunklem Hero-Hintergrund: helle Schrift/Rahmen */
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-small { padding: .5rem 1rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* ── Header / Nav ──────────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.1rem; color: var(--navy); }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }

.primary-nav ul { list-style: none; display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; }
.primary-nav a {
    display: block; padding: .55rem .85rem; color: var(--ink); border-radius: 8px; font-weight: 500;
}
.primary-nav a:hover { background: var(--bg-alt); text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--accent-600); }
.nav-cta a { color:#fff; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; background: none; border: 0;
    cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; transition: .2s; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 60%, #154265 100%); color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; padding: 4.5rem 1.25rem; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.18rem; color: #cfe0ee; max-width: 38ch; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; color: var(--accent); font-weight: 700; margin-bottom: .4rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }

.hero-card {
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
    border-radius: 16px; padding: 1.6rem; backdrop-filter: blur(4px);
}
.status-row { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; color: #e8f1f8; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .97rem; }
.status-row:last-child { border-bottom: 0; }
.dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dot.ok { background: #34d27b; box-shadow: 0 0 0 4px rgba(52,210,123,.18); }
.dot.warn { background: #f1c40f; box-shadow: 0 0 0 4px rgba(241,196,15,.18); }

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; margin: 0 0 .5rem; }
.section-intro { text-align: center; color: var(--muted); max-width: 60ch; margin: 0 auto 2.5rem; }
.center-cta { text-align: center; margin-top: 1.5rem; }

.page-head { background: var(--bg-alt); padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.page-head .lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.8rem; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(11,39,64,.12); }
.card-icon { font-size: 2rem; margin-bottom: .6rem; }
.card h3 { margin: 0 0 .5rem; }
.card p { color: var(--muted); margin-bottom: 1rem; }
.card-link { font-weight: 600; }

/* ── Split / Listen ────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: center; }
.split-aside blockquote {
    margin: 0; padding: 1.6rem; background: #fff; border-left: 4px solid var(--accent);
    border-radius: 8px; box-shadow: var(--shadow); font-size: 1.15rem; color: var(--navy); font-style: italic;
}
.check-list { list-style: none; padding: 0; margin: 1.2rem 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.check-list li::before {
    content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800;
    background: rgba(31,157,87,.12); width: 1.4rem; height: 1.4rem; border-radius: 50%;
    display: grid; place-items: center; font-size: .85rem;
}

/* ── Service-Blöcke ────────────────────────────────────────────────────── */
.service-block {
    display: grid; grid-template-columns: 72px 1fr; gap: 1.4rem; align-items: start;
    padding: 2rem 0; border-bottom: 1px solid var(--line);
}
.service-block:last-child { border-bottom: 0; }
.service-icon {
    width: 72px; height: 72px; display: grid; place-items: center; font-size: 2rem;
    background: var(--bg-alt); border-radius: 16px;
}
.service-block.highlight { background: var(--bg-alt); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); }
.service-block h2 { margin-top: 0; }

/* ── Referenzen ────────────────────────────────────────────────────────── */
.ref-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0; }
.ref-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.3rem; font-weight: 500; }
.muted-note { color: var(--muted); font-size: .95rem; margin-top: 1.5rem; }
.partner-grid { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; margin-top: 1.5rem; }
.partner-tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); width: 180px; height: 120px; display: flex; align-items: center; justify-content: center; padding: 1.2rem; transition: transform .15s, box-shadow .15s; }
.partner-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(11,39,64,.12); }
.partner-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ref-logo { max-height: 84px; max-width: 240px; object-fit: contain; display: block; margin-bottom: 1.3rem; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); margin: 0; }
.quote-card blockquote { margin: 0 0 1rem; padding-left: 1rem; border-left: 3px solid var(--accent); color: var(--ink); font-style: italic; line-height: 1.7; }
.quote-card figcaption { color: var(--muted); font-weight: 600; font-size: .9rem; }
.quote-card.is-clamped blockquote { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .5rem; }
.quote-more { background: none; border: 0; color: var(--accent-600); cursor: pointer; font: inherit; font-weight: 600; padding: 0 0 .8rem; }
.quote-more:hover { text-decoration: underline; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }

/* ── News ──────────────────────────────────────────────────────────────── */
.news-list { display: grid; gap: 1.5rem; max-width: 760px; }
.news-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow); }
.news-item time { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; }
.news-item h2 { font-size: 1.35rem; margin: .3rem 0 .6rem; }
.news-item p { color: var(--muted); margin-bottom: .8rem; }
.article-body { max-width: 760px; }
.article-body h2 { margin-top: 2rem; }
.article-date { color: var(--muted); }
.article-back { margin-top: 2.5rem; }

/* ── CTA-Band ──────────────────────────────────────────────────────────── */
.cta-band { background: var(--navy); color: #fff; }
.cta-inner { text-align: center; max-width: 620px; margin: 0 auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0ee; margin-bottom: 1.6rem; }

/* ── Kontakt ───────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 3rem; align-items: start; }
.field { margin-bottom: 1.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--navy); }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
    width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px;
    font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,155,214,.18);
}
.captcha-input { max-width: 160px; }
.field-check label { font-weight: 400; display: flex; gap: .6rem; align-items: flex-start; color: var(--ink); }
.field-check input { width: auto; margin-top: .25rem; }
.req { color: var(--err); }
.form-note { color: var(--muted); font-size: .85rem; margin-top: .8rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent-hint { font-size: .9rem; color: var(--muted); margin-top: .6rem; }
.link-btn { background: none; border: 0; color: var(--accent-600); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }

.contact-aside h2 { font-size: 1.3rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { display: flex; gap: .7rem; margin-bottom: 1rem; color: var(--ink); }
.contact-list .ci { flex: none; }
.aside-box { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.aside-box h3 { margin-top: 0; }

/* ── Alerts ────────────────────────────────────────────────────────────── */
.alert { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.5rem; }
.alert ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.alert-ok { background: rgba(31,157,87,.1); border: 1px solid rgba(31,157,87,.35); color: #14633a; }
.alert-error { background: rgba(192,57,43,.08); border: 1px solid rgba(192,57,43,.3); color: #8e2c22; }

/* ── Legal ─────────────────────────────────────────────────────────────── */
.legal { max-width: 800px; }
.legal h2 { margin-top: 2rem; font-size: 1.3rem; }
.legal .todo { background: #fff6da; border: 1px dashed var(--warn); padding: .2rem .4rem; border-radius: 4px; color: #6b5200; }
.legal code { background: var(--bg-alt); padding: .1rem .4rem; border-radius: 4px; font-size: .9em; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: #c4d4e2; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 1.25rem 2rem; }
.footer-col h3 { color: #fff; font-size: 1rem; margin: 0 0 .9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: #c4d4e2; }
.footer-col a:hover { color: #fff; }
.footer-about { color: #9fb4c6; font-size: .95rem; margin-top: .8rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 1.25rem; }
.footer-bottom p { margin: 0; font-size: .88rem; color: #8ca3b6; }

/* ── Consent-Banner ────────────────────────────────────────────────────── */
.consent-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
    background: #fff; border-top: 3px solid var(--accent); box-shadow: 0 -6px 30px rgba(11,39,64,.18);
}
.consent-inner { display: flex; align-items: center; gap: 2rem; padding: 1.3rem 1.25rem; }
.consent-text h2 { font-size: 1.05rem; margin: 0 0 .3rem; }
.consent-text p { margin: 0; font-size: .92rem; color: var(--muted); }
.consent-actions { display: flex; gap: .7rem; flex: none; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-inner, .split, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-card { order: -1; }
    .cards { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .consent-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 680px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: absolute; top: 72px; left: 0; right: 0; background: #fff;
        border-bottom: 1px solid var(--line); display: none; padding: .5rem 1.25rem 1rem;
    }
    .primary-nav.open { display: block; }
    .primary-nav ul { flex-direction: column; align-items: stretch; gap: .1rem; }
    .primary-nav a { padding: .8rem .5rem; border-bottom: 1px solid var(--line); }
    .nav-cta { margin-top: .5rem; }
    .nav-cta a { text-align: center; }
    .cards, .ref-grid, .field-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .service-block { grid-template-columns: 1fr; }
    .consent-actions { width: 100%; }
    .consent-actions .btn { flex: 1; }
}

/* =========================================================================
   Dezente Belebung — reduced-motion-sicher
   ========================================================================= */

/* Scroll-Reveal (Klasse wird nur für Off-Screen-Elemente per JS gesetzt) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.cards .card.reveal:nth-child(2) { transition-delay: .08s; }
.cards .card.reveal:nth-child(3) { transition-delay: .16s; }
.cards .card.reveal:nth-child(4) { transition-delay: .24s; }
.cards .card.reveal:nth-child(5) { transition-delay: .32s; }

/* Hover-Feinheiten */
.btn { transition: background .15s, border-color .15s, transform .08s, box-shadow .18s; }
.btn:hover { box-shadow: 0 6px 18px rgba(46,155,214,.28); }
.btn-ghost:hover, .btn-light:hover { box-shadow: none; }
.card-icon, .service-icon { transition: transform .2s ease; }
.card:hover .card-icon { transform: scale(1.12); }
.service-block:hover .service-icon { transform: translateY(-2px) scale(1.04); }
.primary-nav li:not(.nav-cta) a { position: relative; }
.primary-nav li:not(.nav-cta) a::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px;
    background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: left;
    transition: transform .25s ease;
}
.primary-nav li:not(.nav-cta) a:hover::after,
.primary-nav li:not(.nav-cta) a[aria-current="page"]::after { transform: scaleX(1); }

/* Fernwartungs-Button */
.btn-support { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; background: transparent; color: var(--support); border-color: var(--support); }
.btn-support:hover { background: var(--support); color: #fff; border-color: var(--support); box-shadow: 0 6px 18px rgba(211,47,47,.30); }
.btn-ico { flex: none; }
/* Im Header gewinnt sonst .nav-cta a (color:#fff) — hier gezielt überschreiben */
.nav-cta a.btn-support { color: var(--support); }
.nav-cta a.btn-support:hover { background: var(--support); color: #fff; }

/* Header-Schatten beim Scrollen */
.site-header { transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: 0 2px 16px rgba(11,39,64,.10); }
.header-inner { transition: min-height .2s ease; }
.site-header.scrolled .header-inner { min-height: 62px; }

/* Lebendiger Hero */
@keyframes pit-pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(52,210,123,.18); } 50% { box-shadow: 0 0 0 8px rgba(52,210,123,.04); } }
.hero-card .dot.ok { animation: pit-pulse 2.6s ease-in-out infinite; }
.hero-card .status-row:nth-child(2) .dot.ok { animation-delay: .35s; }
.hero-card .status-row:nth-child(3) .dot.ok { animation-delay: .7s; }
.hero-card .status-row:nth-child(4) .dot.ok { animation-delay: 1.05s; }
@keyframes pit-bg {
    0%   { background-position: 20% 18%, 0 0; }
    50%  { background-position: 86% 82%, 0 0; }
    100% { background-position: 20% 18%, 0 0; }
}
.hero {
    background:
        radial-gradient(circle at 50% 50%, rgba(120,200,245,.45) 0%, rgba(70,165,225,.18) 24%, rgba(46,155,214,0) 50%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 60%, #154265 100%);
    background-size: 210% 210%, 100% 100%;
    animation: pit-bg 15s ease-in-out infinite;
}

/* Bewegung reduzieren: alles ruhigstellen */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none; }
    .hero, .hero-card .dot.ok { animation: none; }
    .btn, .card-icon, .service-icon, .site-header, .header-inner { transition: none; }
    .primary-nav li:not(.nav-cta) a::after { transition: none; }
}
