/* Neher IT – Website. Farben kommen aus /theme.css (Admin → Logo & Farben). */
@font-face { font-family: "DM Sans"; src: url("fonts/dmsans.woff") format("woff"); font-weight: 100 1000; font-style: normal; font-display: swap; }

:root {
  --primary: #2f5bea; --accent: #12c2b0; --dark: #0a1020; --bg: #f6f7fb; --surface: #fff; --text: #131a2b;
  --on-primary: #fff; --on-dark: #fff;
  --muted: color-mix(in srgb, var(--text) 62%, var(--bg));
  --line: color-mix(in srgb, var(--text) 10%, transparent);
  --soft: color-mix(in srgb, var(--primary) 9%, var(--surface));
  --grad: linear-gradient(120deg, var(--primary), var(--accent));
  --radius: 20px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(10 16 32 / .04), 0 8px 24px -12px rgb(10 16 32 / .12);
  --shadow-lg: 0 24px 60px -24px rgb(10 16 32 / .35);
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font: 400 17px/1.65 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.sr, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Schaltflächen */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .72em 1.25em; border-radius: 999px; border: 1px solid transparent; background: var(--primary); color: var(--on-primary);
  font-family: inherit; font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn .ico { transition: transform .2s; }
.btn:hover .ico { transform: translateX(2px); }
.btn-lg { padding: .95em 1.6em; font-size: 1.05rem; }
.btn-sm { padding: .45em .9em; font-size: .86rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); box-shadow: none; }
.btn-light { background: #fff; color: var(--dark); }
.btn-ghost-light { background: rgb(255 255 255 / .06); color: #fff; border-color: rgb(255 255 255 / .22); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgb(255 255 255 / .14); box-shadow: none; }
.btn-danger { background: transparent; color: #c2312f; border-color: color-mix(in srgb, #c2312f 35%, transparent); }
.btn-danger:hover { background: #c2312f; color: #fff; box-shadow: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.brand img { height: 44px; width: auto; max-width: 220px; object-fit: contain; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.3rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.02rem; letter-spacing: -.01em; }
.brand-text small { color: var(--muted); font-size: .78rem; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; padding: .5em .85em; border-radius: 999px; font-size: .96rem; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { background: var(--soft); color: var(--primary); }
.site-nav .btn { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 12px; padding: 9px; color: var(--text); cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; inset: 72px 0 auto; flex-direction: column; align-items: stretch; padding: 12px 20px 22px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .8em 1em; }
  .site-nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* Startbereich */
.hero { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.orb-1 { width: 620px; height: 620px; background: var(--primary); top: -260px; right: -120px; animation: float 16s ease-in-out infinite; }
.orb-2 { width: 460px; height: 460px; background: var(--accent); bottom: -260px; left: -140px; opacity: .38; animation: float 20s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(-40px, 30px) scale(1.06); } }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; padding: clamp(72px, 11vw, 140px) 0 clamp(72px, 10vw, 128px); }
.hero h1 { margin-bottom: .35em; text-wrap: balance; }
.hero-lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: rgb(255 255 255 / .78); max-width: 34em; margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: .6em; padding: .4em .9em; border-radius: 999px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); font-size: .88rem; font-weight: 600; margin-bottom: 1.6em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-tile { display: flex; flex-direction: column; gap: 22px; padding: 22px; border-radius: var(--radius); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12);
  backdrop-filter: blur(10px); font-weight: 600; transition: transform .3s, background .3s; }
.hero-tile:nth-child(2) { transform: translateY(28px); }
.hero-tile:nth-child(4) { transform: translateY(28px); }
.hero-tile .ico { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--grad); color: #fff; stroke-width: 1.7; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } .hero-panel { display: none; } }

/* Abschnitte */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-tint { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head h2 { text-wrap: balance; }
.kicker { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.page-hero { background: var(--dark); color: var(--on-dark); padding: clamp(64px, 9vw, 112px) 0 clamp(48px, 6vw, 80px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; background: var(--primary); filter: blur(90px); opacity: .45; top: -300px; right: -100px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 18em; }
.page-hero .lead { color: rgb(255 255 255 / .75); max-width: 40em; margin: 0; }
.page-hero.tall { min-height: 70vh; display: grid; align-items: center; }

/* Karten */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); }
.card + .card { margin-top: 20px; }
.empty { text-align: center; color: var(--muted); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.service { position: relative; transition: transform .25s, box-shadow .25s, border-color .25s; margin: 0 !important; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.service p { color: var(--muted); margin: 0; }
.service-wide { grid-column: span 2; background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%), var(--surface); }
.service-wide h3 { font-size: 1.5rem; }
.icon-badge { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--soft); color: var(--primary); margin-bottom: 22px; }
.icon-badge .ico { width: 26px; height: 26px; }
.service .prose { margin-top: 1em; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .service-wide { grid-column: auto; } }

/* Newsfeed */
.tab-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.tab-list button { display: inline-flex; align-items: center; gap: .5em; font-family: inherit; font-weight: 600; font-size: .95rem; padding: .65em 1.15em; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; }
.tab-list button[aria-selected="true"] { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-grid[hidden] { display: none; }
.news-item { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 48px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.section:not(.section-tint) .news-item { background: var(--surface); }
.news-item:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 35%, transparent); box-shadow: var(--shadow); }
.news-meta { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.chip { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .25em .7em; border-radius: 999px; background: var(--soft); color: var(--primary); }
.cat-sicherheit .chip { background: color-mix(in srgb, #e5484d 12%, var(--surface)); color: #c2312f; }
.cat-boerse .chip { background: color-mix(in srgb, #12a150 12%, var(--surface)); color: #0d7d3d; }
.cat-software .chip { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: color-mix(in srgb, var(--accent) 60%, var(--text)); }
.news-title { font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-go { position: absolute; right: 18px; bottom: 16px; color: var(--muted); }
.news-item:hover .news-go { color: var(--primary); }
.source-note { text-align: center; font-size: .82rem; color: var(--muted); margin: 22px 0 0; }
@media (max-width: 960px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; } }

/* Partner */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.partner { display: flex; flex-direction: column; margin: 0 !important; }
.partner-top { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.partner-top h3 { margin: 0; font-size: 1.45rem; }
.partner-top p { margin: 0; }
.partner-mark { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.5rem; }
.tags { list-style: none; padding: 0; margin: 4px 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .84rem; padding: .35em .8em; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.partner .link-arrow { margin-top: auto; }

/* Abschluss */
.cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding: clamp(32px, 5vw, 56px); border-radius: calc(var(--radius) + 8px);
  background: radial-gradient(circle at 0 0, color-mix(in srgb, var(--accent) 55%, transparent), transparent 50%), var(--grad); color: #fff; box-shadow: var(--shadow-lg); }
.cta h2 { margin-bottom: .25em; font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.cta p { margin: 0; opacity: .88; font-size: 1.08rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Inhaltsseiten */
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose.small { font-size: .95rem; color: var(--muted); }
ul.checks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.checks li { position: relative; padding-left: 1.7em; margin: .35em 0; }
ul.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .95em; height: .55em; border: solid var(--accent); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translateY(-2px); }

/* Formulare */
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 7px; font-weight: 600; font-size: .92rem; }
input, select, textarea { font: inherit; font-weight: 400; font-size: 1rem; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75em .95em; width: 100%; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); background: var(--surface); }
textarea { resize: vertical; }
.form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .btn { justify-self: start; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid; font-weight: 500; margin: 0 0 18px; }
.notice-ok { background: color-mix(in srgb, #12a150 9%, var(--surface)); border-color: color-mix(in srgb, #12a150 30%, transparent); color: #0d6b35; }
.notice-error { background: color-mix(in srgb, #e5484d 9%, var(--surface)); border-color: color-mix(in srgb, #e5484d 30%, transparent); color: #a52a28; }
.notice-warn { background: color-mix(in srgb, #f5a524 12%, var(--surface)); border-color: color-mix(in srgb, #f5a524 35%, transparent); color: #7a4c00; }
.notice-info { background: var(--soft); border-color: var(--line); }
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--dark); color: var(--on-dark); border: 0; }
.contact-card .muted { color: rgb(255 255 255 / .65); }
.contact-card a { color: #fff; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .ico { margin-top: .2em; color: var(--accent); }
.contact-list.big { font-size: 1.1rem; gap: 18px; }

/* Fußzeile */
.site-footer { background: var(--dark); color: rgb(255 255 255 / .72); padding: 72px 0 28px; margin-top: 0; }
.site-footer a { color: rgb(255 255 255 / .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand-text small, .site-footer .muted { color: rgb(255 255 255 / .55); }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer .brand img { filter: none; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-h { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 1.2em; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .1); margin-top: 56px; padding-top: 24px; font-size: .88rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
