/* =====================================================================
   MG4IT – Stylesheet
   Modern, aufgeräumt. Farben zentral als CSS-Variablen (leicht anpassbar).
   ===================================================================== */

:root {
    /* Markenfarben aus dem MG4IT-Logo */
    --navy:        #13245e;   /* dunkles Marken-Blau (Wortmarke "MG") */
    --blue:        #1f63c4;   /* Primärfarbe (Buttons, Links) */
    --blue-dark:   #16245a;   /* dunkle Variante / Hover */
    --cyan:        #1c9dd8;   /* helles Akzent-Blau (die "4") */
    --gray-it:     #6b7280;   /* Grau (die Buchstaben "IT") */
    --ink:         #13213f;   /* Haupttext */
    --slate:       #475467;   /* Sekundärtext */
    --muted:       #667085;
    --line:        #e4e7ec;
    --bg:          #ffffff;
    --bg-soft:     #f5f8fc;
    --bg-dark:     #0f1f52;   /* Navy für dunkle Sektionen */
    --white:       #ffffff;
    --green:       #25d366;   /* WhatsApp */
    --radius:      14px;
    --radius-sm:   10px;
    --shadow-xs:   0 1px 2px rgba(16,24,40,.06);
    --shadow:      0 6px 24px rgba(16,24,40,.08);
    --shadow-lg:   0 24px 60px rgba(16,36,94,.16);
    --maxw:        1160px;
    --font:        'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --font-head:   'Space Grotesk', 'Inter', system-ui, Segoe UI, Arial, sans-serif;
    --ease:        cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.12; color: var(--ink); margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; color: var(--slate); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #c9d4e8; }
.section-dark h1,.section-dark h2,.section-dark h3 { color: #fff; }
.section-dark p { color: #aebbd4; }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff;
    padding: 10px 16px; z-index: 2000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head);
    font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--blue); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--cyan); border-radius: 2px; }
.center .eyebrow::before { display: none; }
.lead { font-size: 1.15rem; color: var(--slate); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
    border: 2px solid transparent; transition: .2s ease; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(11,99,214,.3); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-light { background: #fff; color: var(--blue); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.9);
    backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img { height: 42px; width: auto; display: block; }
.logo-mark { font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; color: var(--navy); }
.logo-mark .lm-4 { color: var(--cyan); }
.logo-mark .lm-it { color: var(--gray-it); }
.main-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
    color: var(--slate); font-weight: 600; padding: 10px 14px; border-radius: 8px;
    font-size: .98rem; transition: .15s;
}
.main-nav a:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.main-nav a.active { color: var(--blue); }
.main-nav a.nav-cta {
    background: var(--blue); color: #fff; padding: 10px 20px;
}
.main-nav a.nav-cta:hover { background: var(--blue-dark); }
.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(--ink); border-radius: 3px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background:
        radial-gradient(1100px 520px at 82% -12%, rgba(28,157,216,.18), transparent 60%),
        radial-gradient(900px 520px at -5% 0%, rgba(31,99,196,.14), transparent 55%),
        var(--bg); }
/* Subtiles Punktraster (Platinen-Knoten aus dem Logo) */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: radial-gradient(rgba(19,36,94,.10) 1.4px, transparent 1.4px);
    background-size: 28px 28px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 78%); }
.hero > .container { position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center;
    padding: clamp(48px, 8vw, 96px) 0; }
.hero h1 span { color: var(--blue); }
.hero .lead { margin-bottom: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-soft);
    border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-size: .9rem;
    font-weight: 600; color: var(--slate); }
.badge svg { width: 18px; height: 18px; color: var(--blue); }

.hero-card {
    background: var(--bg-dark); color: #cfe; border-radius: 20px; padding: 30px;
    box-shadow: var(--shadow-lg); position: relative;
}
.hero-card h3 { color: #fff; margin-bottom: 18px; }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hero-card li { display: flex; gap: 12px; align-items: flex-start; color: #aebbd4; }
.hero-card li strong { color: #fff; display: block; }
.hero-card .dot { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--cyan)); display: grid; place-items: center; }
.hero-card .dot svg { width: 13px; height: 13px; color: #fff; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; transition: .2s ease; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d2e0f5; }
.card .icon {
    width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(11,99,214,.12), rgba(27,197,214,.16));
    color: var(--blue); margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: .97rem; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--slate); font-size: .95rem; }
.card ul li { margin-bottom: 6px; }

/* Zielgruppen-Split */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.audience .card { border-top: 4px solid var(--blue); }
.audience .card.biz { border-top-color: var(--cyan); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step::before {
    counter-increment: step; content: counter(step);
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
    background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center;
}

/* ---------- CTA Band ---------- */
.cta-band { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; border-radius: 20px;
    padding: clamp(32px, 5vw, 56px); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d8e6ff; max-width: 560px; margin-inline: auto; }

/* ---------- Pricing ---------- */
.price-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.price { width: 100%; border-collapse: collapse; min-width: 520px; background: #fff; }
table.price caption { text-align: left; font-weight: 700; padding: 16px 18px; font-size: 1.1rem;
    background: var(--bg-soft); border-bottom: 1px solid var(--line); }
table.price th, table.price td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.price th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.price td.price-val { font-weight: 700; color: var(--ink); white-space: nowrap; }
table.price tbody tr:last-child td { border-bottom: 0; }
.price-note { font-size: .9rem; color: var(--muted); margin-top: 14px; }

/* Preis-Kategorien (Kartenraster) */
.price-cat { height: 100%; }
.price-cat .icon { margin-bottom: 14px; }
.price-cat h3 { margin-bottom: 4px; }
.price-cat .cat-desc { font-size: .92rem; color: var(--muted); margin-bottom: 6px; }
.plist { list-style: none; margin: 10px 0 0; padding: 0; }
.plist li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.plist li:last-child { border-bottom: 0; }
.plist .pname { color: var(--slate); font-size: .97rem; }
.plist .pprice { font-weight: 700; color: var(--ink); white-space: nowrap; font-size: .97rem; font-variant-numeric: tabular-nums; }
.plist .pprice.free { color: var(--cyan); }

.plan-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; }
.plan.featured { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--blue); color: #fff; font-size: .78rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.plan h3 { margin-bottom: 4px; }
.plan .amount { font-size: 2.2rem; font-weight: 800; color: var(--ink); margin: 8px 0; }
.plan .amount small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.plan ul li { padding-left: 26px; position: relative; color: var(--slate); font-size: .96rem; }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px,4vw,40px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field .req { color: #d92d20; }
.field input, .field textarea, .field select {
    width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; color: var(--ink); background: #fff; transition: .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,99,214,.12);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--slate); }
.checkbox input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }    /* Honeypot */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 600; }
.alert-ok { background: #ecfdf3; color: #027a48; border: 1px solid #a6f4c5; }
.alert-err { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info .info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info .info-item .ic { width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto;
    display: grid; place-items: center; background: var(--bg-soft); color: var(--blue); }
.contact-info .info-item .ic svg { width: 22px; height: 22px; }
.contact-info strong { display: block; color: var(--ink); }

/* ---------- Download box ---------- */
.dl-box { display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.dl-box .dl-ic { width: 64px; height: 64px; border-radius: 16px; flex: 0 0 auto; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; }
.dl-box .dl-ic svg { width: 32px; height: 32px; }

/* ---------- Partner / Technologien (Logo-Wall) ---------- */
.partner-logos {
    display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: stretch;
    max-width: 860px; margin-inline: auto;
}
.partner-card {
    flex: 1 1 0; min-width: 150px; max-width: 240px; height: 96px; padding: 18px 26px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-xs);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d2e0f5; }
/* Einheitliche optische Größe: Logo passt sich in eine feste Bounding-Box ein */
.partner-card img { width: auto; height: auto; max-width: 100%; max-height: 40px; object-fit: contain; display: block; }
.partner-card.is-icon img { max-height: 56px; }   /* quadratische Icons etwas größer */
.partner-more { flex-basis: 100%; text-align: center; color: var(--muted); font-weight: 600; font-size: .95rem; margin-top: 4px; }
/* Text-Fallback, falls eine Logo-Datei fehlt */
.partner { flex: 1 1 0; min-width: 150px; max-width: 240px; height: 96px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; font-weight: 700; color: var(--navy); }
.partner .pdot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); flex: 0 0 auto; }

@media (max-width: 560px) {
    .partner-logos { gap: 12px; }
    .partner-card, .partner { flex: 1 1 40%; min-width: 120px; height: 80px; padding: 14px 18px; }
    .partner-card img { max-height: 32px; }
    .partner-card.is-icon img { max-height: 44px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #aebbd4; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding: clamp(40px,6vw,64px) 22px; }
.footer-logo-img { height: 40px; width: auto; display: block; margin-bottom: 16px; filter: brightness(0) invert(1); }
.site-footer p { color: #93a2c2; }
.footer-addr { font-size: .95rem; line-height: 1.7; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #aebbd4; font-size: .95rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 20px 22px; font-size: .9rem; color: #93a2c2; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: #93a2c2; }
.footer-legal a:hover { color: #fff; text-decoration: none; }

/* ---------- Floating buttons ---------- */
.fab-stack { position: fixed; right: 18px; bottom: 18px; z-index: 1500; display: flex; flex-direction: column; gap: 12px; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    box-shadow: 0 8px 22px rgba(0,0,0,.22); transition: .2s ease; }
.fab:hover { transform: scale(1.08); text-decoration: none; }
.fab svg { width: 26px; height: 26px; }
.fab-whatsapp { background: var(--green); }
.fab-phone { background: var(--blue); }
.fab-mail { background: var(--ink); }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Fokus / A11y ---------- */
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 3px; }

/* Headline-Akzent (Hero) */
.hero h1 .accent { position: relative; white-space: nowrap; }
.hero h1 .accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em;
    background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 3px; opacity: .35; z-index: -1; }

.logo-mark { font-family: var(--font-head); }

/* ---------- Misc ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2em; }
.prose > :first-child { margin-top: 0; }   /* erste Überschrift bündig oben (z.B. "So funktioniert's") */
.prose ul { color: var(--slate); }
.muted { color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag-list span { background: var(--bg-soft); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: .88rem; color: var(--slate); }

/* ---------- Responsive ---------- */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .grid-4 { grid-template-columns: repeat(2,1fr); }
    .grid-3 { grid-template-columns: repeat(2,1fr); }
    .plan-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    /* Mobile-Navigation einblenden */
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; inset: 72px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
        transform: translateY(-130%); transition: transform .28s ease; box-shadow: var(--shadow);
        max-height: calc(100dvh - 72px); overflow-y: auto;
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav ul { flex-direction: column; align-items: stretch; padding: 14px 22px 22px; gap: 2px; }
    .main-nav a { padding: 14px; border-radius: 8px; font-size: 1.05rem; }
    .main-nav a.nav-cta { text-align: center; margin-top: 8px; }
}

/* Großes Handy / kleines Tablet (≤ 680px) */
@media (max-width: 680px) {
    .grid-2, .grid-3, .grid-4, .audience, .field-row, .contact-grid { grid-template-columns: 1fr; }
    .section { padding: clamp(40px, 9vw, 64px) 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 40px 22px; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
    .cta-band { padding: 28px 22px; }
    .btn-row { gap: 10px; }
    .btn-lg { padding: 14px 22px; }
    .dl-box { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* Kleines Handy (≤ 400px) – Buttons volle Breite, keine Engpässe */
@media (max-width: 400px) {
    .container { padding-inline: 16px; }
    .hero .btn-row .btn, .cta-band .btn-row .btn { width: 100%; justify-content: center; }
    .logo-img { height: 36px; }
}

body { font-size: 16px; }
@media (min-width: 681px) { body { font-size: 17px; } }

/* Bewegung reduzieren, wenn vom System gewünscht */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
