/* =========================================================================
   IT-Service Castner – Design-System (Redesign 2026)
   Dark & edel, Leitfarbe Grün #00b000. Eigenständig, ohne Bootstrap/jQuery.
   ========================================================================= */

:root {
    --green:        #00b000;
    --green-bright: #19c819;
    --green-soft:   #3fd23f;
    --green-deep:   #008a00;
    --green-glow:   rgba(0, 176, 0, .30);

    --bg:        #0d0e10;   /* Seitenhintergrund (fast schwarz) */
    --bg-2:      #121417;   /* abwechselnde Sektion */
    --surface:   #16181c;   /* Karten */
    --surface-2: #1c1f24;   /* Karten-Hover / erhabene Elemente */
    --border:    #2a2e35;
    --border-2:  #363b44;

    --text:        #e9ebee;
    --text-soft:   #b9bfc7;
    --text-muted:  #868d97;

    --radius:    14px;
    --radius-sm: 10px;
    --maxw:      1140px;
    --gap:       clamp(1rem, 2vw, 1.5rem);

    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;

    --shadow:     0 10px 30px rgba(0, 0, 0, .45);
    --shadow-lg:  0 24px 60px rgba(0, 0, 0, .55);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a { color: var(--green-soft); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--green-bright); }

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; color: var(--text-soft); }

::selection { background: var(--green); color: #04150a; }

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

/* Skip-Link (nur bei Tastatur-Fokus sichtbar) */
.skip-link {
    position: absolute; left: 8px; top: -56px; z-index: 100;
    background: var(--green); color: #04150a; font-weight: 600;
    padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    transition: top .15s ease;
}
.skip-link:focus { top: 0; }
main[tabindex="-1"]:focus { outline: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--border); }

.section-head { max-width: 720px; margin: 0 0 clamp(2rem, 5vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--green-soft);
    margin-bottom: .9rem;
}
.eyebrow::before { content: "// "; opacity: .7; }

.lead { font-size: 1.12rem; color: var(--text-soft); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .55em;
    font: inherit; font-weight: 600;
    padding: .8em 1.5em;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #04150a; box-shadow: 0 6px 22px var(--green-glow); }
.btn-primary:hover { background: var(--green-bright); color: #04150a; box-shadow: 0 8px 28px var(--green-glow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-soft); background: rgba(0,176,0,.06); }
.btn svg { width: 1.05em; height: 1.05em; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(13, 14, 16, .8);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 1rem; min-height: 70px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--text); font-size: 1.05rem; }
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.brand b { color: var(--green-soft); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: .35rem; margin-left: auto; list-style: none; padding: 0; }
.nav-links a {
    color: var(--text-soft); font-weight: 500; padding: .5rem .8rem; border-radius: 8px;
    transition: color .15s ease, background .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--green-soft); background: rgba(0,176,0,.08); }
.nav-cta { margin-left: .4rem; }

.nav-toggle {
    display: none; margin-left: auto;
    background: transparent; border: 1px solid var(--border-2); border-radius: 8px;
    width: 44px; height: 40px; cursor: pointer; color: var(--text);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; position: relative; width: 20px; height: 2px; margin: 0 auto;
    background: currentColor; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute; top: 70px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: .2rem;
        background: var(--bg); border-bottom: 1px solid var(--border);
        padding: .8rem clamp(1rem, 4vw, 2rem) 1.2rem;
        margin: 0; display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: .75rem .6rem; }
    .nav-cta { margin: .4rem 0 0; }
    .nav[aria-expanded="true"] .nav-toggle span { transform: rotate(45deg); }
    .nav[aria-expanded="true"] .nav-toggle span::before { top: 0; transform: rotate(90deg); }
    .nav[aria-expanded="true"] .nav-toggle span::after { opacity: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 9vw, 7rem); }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60% 80% at 75% -10%, rgba(0,176,0,.16), transparent 60%),
        radial-gradient(50% 60% at 0% 0%, rgba(0,176,0,.08), transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero h1 .accent { color: var(--green-soft); }
.hero .lead { max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.2rem; color: var(--text-muted); font-size: .92rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-meta svg { width: 1.05em; height: 1.05em; color: var(--green-soft); }

.hero-card {
    background: linear-gradient(180deg, var(--surface), var(--bg));
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.4rem; box-shadow: var(--shadow-lg);
    font-family: var(--font-mono); font-size: .9rem; color: var(--text-soft);
}
.hero-card .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; }
.hero-card .bar { color: var(--text-muted); padding-bottom: .9rem; margin-bottom: .9rem; border-bottom: 1px solid var(--border); }
.hero-card .ln { display: block; white-space: nowrap; overflow: hidden; }
.hero-card .k { color: var(--green-soft); }
.hero-card .v { color: var(--text); }
.hero-card .c { color: var(--text-muted); }

@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-card { display: none; }
}

/* ---------- Service-Grid (Kernthemen) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
    position: relative; scroll-margin-top: 90px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.6rem; transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.svc-card:hover { transform: translateY(-4px); border-color: var(--green-deep); background: var(--surface-2); }
.svc-ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 12px; margin-bottom: 1.1rem;
    background: rgba(0,176,0,.12); color: var(--green-soft); border: 1px solid rgba(0,176,0,.25);
}
.svc-ic svg { width: 26px; height: 26px; }
.svc-card h3 { margin-bottom: .5rem; }
.svc-card p { margin-bottom: .9rem; font-size: .98rem; }
.svc-card .tag { font-family: var(--font-mono); font-size: .76rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: .8rem; }

/* ---------- Über mich / Teaser ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 2rem; margin-top: 1.4rem; }
@media (max-width: 520px) { .skills { grid-template-columns: 1fr; } }
.skill h4 { margin: 0 0 .25rem; font-size: 1.02rem; color: var(--text); }
.skill h4 span { color: var(--green-soft); font-family: var(--font-mono); font-size: .8rem; margin-left: .35rem; }
.skill p { margin: 0; font-size: .92rem; color: var(--text-muted); }

/* ---------- Preise ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.price-card {
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem;
}
.price-card.featured { border-color: var(--green); box-shadow: 0 0 0 1px var(--green-deep), var(--shadow); }
.price-card .pc-name { font-family: var(--font-mono); color: var(--green-soft); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.price-card .pc-price { font-size: 2.4rem; font-weight: 700; margin: .6rem 0 .2rem; }
.price-card .pc-price small { font-size: .9rem; font-weight: 500; color: var(--text-muted); }
.price-card .pc-note { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.2rem; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .6rem; }
.price-card li { display: flex; gap: .6rem; align-items: flex-start; color: var(--text-soft); font-size: .96rem; }
.price-card li svg { flex: 0 0 auto; width: 1.1em; height: 1.1em; color: var(--green-soft); margin-top: .25em; }
.price-card .btn { margin-top: auto; justify-content: center; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; color: #04150a; background: var(--green); padding: .15em .6em; border-radius: 999px; margin-left: .5rem; vertical-align: middle; }

/* ---------- Kontakt / Formular ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 1.2rem; }
.contact-row { display: flex; gap: .9rem; align-items: flex-start; }
.contact-row .ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(0,176,0,.12); border: 1px solid rgba(0,176,0,.25); color: var(--green-soft); }
.contact-row .ic svg { width: 20px; height: 20px; }
.contact-row .lbl { font-family: var(--font-mono); font-size: .76rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2rem); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .9rem; color: var(--text-soft); margin-bottom: .4rem; }
.field label .req { color: var(--green-soft); }
.field input, .field textarea {
    width: 100%; font: inherit; color: var(--text);
    background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
    padding: .75em .9em; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus { outline: 2px solid transparent; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-glow); }
.field textarea { resize: vertical; min-height: 130px; }
.field-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--text-soft); }
.field-check input { width: 1.1em; height: 1.1em; margin-top: .3em; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; justify-content: center; margin-top: .4rem; }
.form .btn:disabled { opacity: .6; cursor: progress; }

.alert { border-radius: var(--radius-sm); padding: .9em 1.1em; margin-bottom: 1.1rem; font-size: .96rem; border: 1px solid transparent; }
.alert-success { background: rgba(0,176,0,.12); border-color: var(--green-deep); color: var(--green-soft); }
.alert-danger  { background: rgba(220,53,69,.12); border-color: #a02834; color: #ff8a93; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem; color: var(--text-muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin-bottom: 1rem; font-family: var(--font-mono); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-grid a { color: var(--text-soft); }
.footer-grid a:hover { color: var(--green-soft); }
.footer-brand p { font-size: .94rem; max-width: 30ch; }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; font-size: .86rem; }

/* ---------- Legal-Prosa ---------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4rem); }
.legal .container { max-width: 820px; }
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.legal p, .legal li { color: var(--text-soft); overflow-wrap: anywhere; hyphens: auto; }
.legal h1, .legal h2, .legal h3 { overflow-wrap: break-word; hyphens: auto; }
.legal a { word-break: break-word; }
.legal hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mt-1 { margin-top: 1rem; }
[hidden] { display: none !important; }

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