/* DAN Support-Portal – gemeinsame Gestaltung (Farben und Schriften wie dan-itsystems.de) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/sora-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/sora-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/sora-latin-800-normal.woff2') format('woff2'); }

:root {
  --pine-950: #0B0D0F;
  --pine-900: #121517;
  --pine-800: #1A1E21;
  --green: #61CE70;
  --green-700: #3FAE53;
  --lime: #7EDB8C;
  --mint: #F3F4F6;
  --ink: #111417;
  --grey: #62696E;
  --grey-2: #4A5156;
  --line: #E3E6E9;
  --field: #D5D9DD;
  --link: #26773A;
  --link-hover: #1C5A2C;
  --red: #B42318;
  --amber: #F5A623;
  --display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius: 22px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mint); color: var(--ink); font: 16px/1.5 var(--body); }
img { max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, label:focus-within > .focus-ring { outline: 3px solid var(--green); outline-offset: 2px; }
input:focus, textarea:focus { outline: none; border-color: var(--green-700) !important; box-shadow: 0 0 0 4px rgba(97,206,112,.22); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }

/* ---------------- Kopfleiste ---------------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; color: #fff; padding: 22px 0; border-bottom: 1px solid transparent; transition: padding .35s ease, background .35s ease, border-color .35s ease; }
.site-header.scrolled, .site-header.menu-open { background: rgba(10,12,14,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding: 12px 0; border-bottom-color: rgba(255,255,255,.12); }
.hdr-inner { display: flex; align-items: center; gap: 14px 40px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; flex: 0 0 auto; }
.brand img { display: block; height: 44px; width: auto; }
.support-tag { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.18); font-size: 13px; font-weight: 600; color: var(--lime); letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px 34px; white-space: nowrap; }
@media (max-width: 1120px) and (min-width: 861px) {
  .hdr-inner { gap: 14px 28px; }
  .nav-links { gap: 8px 24px; }
  .hotline strong { display: none; }
}
.nav-links a, .nav-links button { position: relative; padding: 6px 0; margin: 0; color: rgba(255,255,255,.85); font: 500 15.2px var(--body); text-decoration: none; background: none; border: 0; cursor: pointer; transition: color .3s; }
.nav-links a::after, .nav-links button::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--lime); transition: width .3s; }
.nav-links a:hover, .nav-links button:hover, .nav-links [aria-current="page"] { color: #fff; }
.nav-links a:hover::after, .nav-links button:hover::after, .nav-links [aria-current="page"]::after { width: 100%; }
.hdr-spacer { flex: 1 1 0; min-width: 0; }
.hotline { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; transition: .3s; }
.hotline .ic { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.12); display: grid; place-items: center; transition: .3s; }
.hotline strong { font-family: var(--display); font-size: 16px; white-space: nowrap; transition: .3s; }
.hotline:hover, .hotline:hover .ic, .hotline:hover strong { color: var(--green); }
.hotline:hover .ic { border-color: var(--green); }
.burger { display: none; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.12); background: none; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; }
.burger span { display: block; width: 20px; height: 2px; background: #fff; transition: .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .burger { display: inline-flex; }
  .hdr-inner { gap: 12px; }
  .brand img { height: 34px; }
  .support-tag { display: none; }
  .hotline strong { display: none; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; background: rgba(10,12,14,.97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links button { font-size: 17px; padding: 14px 0; text-align: left; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links a::after, .nav-links button::after { display: none; }
  .nav-links [aria-current="page"] { color: var(--lime); }
}

/* ---------------- Netzwerk-Animation ---------------- */
canvas.net { position: absolute; top: 0; height: 100%; display: block; pointer-events: none; }
canvas.net.full { left: 0; width: 100%; }
canvas.net.third { right: 0; width: 33.333%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%); mask-image: linear-gradient(90deg, transparent 0%, #000 40%); }

/* ---------------- Pfeile & Buttons ---------------- */
.arr { flex: 0 0 auto; transition: transform .25s ease; }
a:hover .arr, button:hover .arr { transform: translateX(3px); }
a:hover .arr-back { transform: translateX(-3px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 52px; padding: 0 26px; border: 0; border-radius: 999px; font: 600 16px var(--body); text-decoration: none; cursor: pointer; transition: background .2s ease, transform .2s ease, box-shadow .2s ease, color .2s ease; }
.btn-green { background: var(--green); color: var(--pine-950); box-shadow: 0 8px 24px rgba(97,206,112,.3); }
.btn-green:hover { background: var(--lime); color: var(--pine-950); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(97,206,112,.45); }
.btn-white { background: #fff; color: var(--pine-950); }
.btn-white:hover { background: var(--green); color: var(--pine-950); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(97,206,112,.35); }
.btn-dark { background: var(--pine-900); color: #fff; }
.btn-dark:hover { background: var(--pine-800); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--field); height: 44px; padding: 0 16px; font-size: 14px; font-weight: 500; }
.btn-outline:hover, .btn-outline:focus-within { background: var(--green); border-color: var(--green); color: var(--pine-950); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(97,206,112,.35); }
.btn .circle { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: rgba(11,13,15,.12); align-items: center; justify-content: center; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.link-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--lime); text-decoration: none; }
.link-back:hover { color: #fff; }

/* ---------------- Startseite ---------------- */
.hero { position: relative; overflow: hidden; background: var(--pine-950); color: #fff; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10,12,14,.62) 0%, rgba(10,12,14,.30) 45%, rgba(10,12,14,.88) 100%); }
.hero-inner { position: relative; z-index: 1; padding-block: 160px 80px; display: flex; flex-direction: column; gap: 40px; }
.hero-text { max-width: 720px; display: flex; flex-direction: column; gap: 20px; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); font-size: 14px; color: rgba(255,255,255,.9); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: livePulse 2s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(97,206,112,.6); } 70% { box-shadow: 0 0 0 10px rgba(97,206,112,0); } 100% { box-shadow: 0 0 0 0 rgba(97,206,112,0); } }
.hero h1 { margin: 0; font: 800 clamp(36px, 6vw, 52px)/1.1 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.hero h1 span { color: var(--green); }
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.72); }
.hero-cards { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.cta-card { position: relative; overflow: hidden; flex: 1 1 420px; display: flex; flex-direction: column; gap: 20px; padding: 32px; border-radius: 32px; background: var(--green); color: var(--pine-950); text-decoration: none; box-shadow: 0 16px 40px rgba(97,206,112,.25); transition: transform .3s ease, box-shadow .3s ease; }
.cta-card::before { content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%; background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 100%); transform: skewX(-18deg); pointer-events: none; }
.cta-card:hover { color: var(--pine-950); transform: translateY(-6px) scale(1.01); box-shadow: 0 26px 60px rgba(97,206,112,.45); }
.cta-card:hover::before { animation: ctaShine .9s ease-out; }
@keyframes ctaShine { from { left: -60%; } to { left: 120%; } }
.cta-icon { width: 56px; height: 56px; border-radius: 18px; background: rgba(11,13,15,.1); display: flex; align-items: center; justify-content: center; transition: transform .35s cubic-bezier(.34,1.56,.64,1); animation: iconPulse 2.6s ease-out infinite; }
@keyframes iconPulse { 0% { box-shadow: 0 0 0 0 rgba(11,13,15,.28); } 70% { box-shadow: 0 0 0 14px rgba(11,13,15,0); } 100% { box-shadow: 0 0 0 0 rgba(11,13,15,0); } }
.cta-card:hover .cta-icon { transform: rotate(90deg) scale(1.08); }
.cta-card h2 { margin: 0; font: 700 28px/1.2 var(--display); }
.cta-card p { margin: 0; font-size: 16px; line-height: 1.55; color: rgba(11,13,15,.78); }
.cta-list { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid rgba(11,13,15,.14); display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-weight: 500; }
.cta-list li { display: flex; align-items: center; gap: 10px; }
.cta-list .chk { flex: 0 0 26px; height: 26px; border-radius: 50%; background: rgba(11,13,15,.1); display: flex; align-items: center; justify-content: center; }
.cta-go { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.cta-go .circle { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--pine-950); color: var(--green); align-items: center; justify-content: center; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.cta-card:hover .cta-go .circle { transform: translateX(8px); }
.status-card { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 32px; background: rgba(26,30,33,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.1); transition: box-shadow .3s ease, border-color .3s ease; }
.status-card.flash { border-color: var(--green); box-shadow: 0 0 0 6px rgba(97,206,112,.25); }
.status-card h2 { margin: 0; font: 700 24px/1.25 var(--display); }
.status-card p { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.7); }
.dark-field { display: flex; flex-direction: column; gap: 8px; }
.dark-field label { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.9); }
.dark-field input { height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: var(--pine-950); font: 16px var(--body); color: #fff; }
.dark-field input[aria-invalid="true"] { border-color: #FF6B5E; }
.dark-err { font-size: 14px; font-weight: 500; color: #FF9B91; }

/* Meldungen */
.notices { border-radius: 18px; border: 1px solid rgba(255,255,255,.12); background: rgba(18,21,23,.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); overflow: hidden; }
.notices-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.notices-head strong { display: inline-flex; align-items: center; gap: 10px; font: 600 15px var(--display); }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 12px; }
.notices-head span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.6); }
.notices ul { list-style: none; margin: 0; padding: 0; }
.notices li { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 16px; padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.06); }
.sev { flex: 0 0 76px; display: inline-flex; align-items: center; justify-content: center; height: 24px; margin-top: 1px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.sev-ausfall { background: #E5484D; color: #fff; }
.sev-stoerung { background: var(--amber); color: var(--pine-950); }
.sev-wartung { background: #3E7BFA; color: #fff; }
.notice-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.notice-text b { color: #fff; }
.notice-text .meta { font-size: 13px; color: rgba(255,255,255,.6); }
.notices .more { width: 100%; padding: 12px 20px; border: 0; border-top: 1px solid rgba(255,255,255,.06); background: transparent; color: var(--lime); font: 600 14px var(--body); text-align: left; cursor: pointer; }

/* Hilfe-Kacheln */
.help-grid { padding-block: 48px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.help-card { background: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.help-card.dark { background: var(--pine-900); color: #fff; gap: 16px; }
.help-card h3 { margin: 0; font: 600 18px/1.3 var(--display); }
.help-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--grey); }
.help-card .ico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.help-card a { margin-top: auto; font-size: 15px; font-weight: 600; }
.icon-link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.steps .n { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--green); color: var(--pine-950); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.help-card.dark .steps li { color: rgba(255,255,255,.8); }
.site-footer { padding-block: 8px 40px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--grey); }
.site-footer a { color: var(--grey); }

/* ---------------- Unterseiten ---------------- */
.band { position: relative; overflow: hidden; background: var(--pine-900); color: #fff; }
.band-inner { position: relative; z-index: 1; padding-block: 124px 40px; display: flex; flex-direction: column; gap: 10px; }
.band h1 { margin: 0; font: 700 clamp(28px, 4.5vw, 36px)/1.2 var(--display); text-wrap: balance; }
.band p { margin: 0; color: rgba(255,255,255,.7); }
.layout { padding-block: 32px 64px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.main-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.aside-col { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 861px) { .aside-col { position: sticky; top: 96px; } }
.card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: 0 1px 2px rgba(15,18,20,.06), 0 10px 28px rgba(15,18,20,.05); }
@media (max-width: 600px) { .card { padding: 22px; } .container { padding-inline: 16px; } }

/* Formular */
form.ticket { position: relative; display: flex; flex-direction: column; gap: 32px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
legend { padding: 0; margin-bottom: 14px; font: 600 18px var(--display); }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.field { flex: 0 0 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
/* Nur nebeneinander stehende Felder teilen sich die Breite – in Spalten (fieldset) wäre 240px sonst die Höhe */
.row > .field { flex: 1 1 240px; }
.field > label, .label { font-size: 14px; font-weight: 600; }
.req { color: var(--red); }
.opt { font-weight: 400; color: var(--grey); }
.field input, .field textarea { width: 100%; padding: 0 16px; height: 50px; border-radius: 14px; border: 1px solid var(--field); background: #fff; font: 16px var(--body); color: var(--ink); }
.field textarea { height: auto; padding: 14px 16px; line-height: 1.55; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--red); background: #FFF8F7; }
.hint { font-size: 13px; color: var(--grey); }
.err { font-size: 14px; font-weight: 500; color: var(--red); }
.draft-note { position: absolute; top: 12px; right: 32px; margin: 0; font-size: 12px; color: #8A9095; }
.draft-note:empty { display: none; }
.draft-restored { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 18px; border-radius: 14px; background: #E6EEFB; color: #1F4E9A; font-size: 14px; }
.draft-restored span { flex: 1 1 260px; }
.linkish { border: 0; background: none; padding: 4px 0; font: 600 14px var(--body); color: inherit; text-decoration: underline; cursor: pointer; }

/* Standort-Suche */
.combo { position: relative; }
.combo input { padding-right: 44px; }
.combo .search-ico { position: absolute; right: 16px; top: 16px; pointer-events: none; }
.combo-list { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; max-height: 320px; overflow-y: auto; padding: 6px; border-radius: 14px; border: 1px solid var(--field); background: #fff; box-shadow: 0 16px 40px rgba(15,18,20,.14); }
.combo-group { padding: 10px 12px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8A9095; }
.combo-opt { padding: 10px 12px; border-radius: 10px; font-size: 15px; line-height: 1.4; cursor: pointer; }
.combo-opt.active { background: #E3F6E6; }
.combo-opt[aria-selected="true"] { font-weight: 600; }
.combo-empty { padding: 12px; font-size: 14px; color: var(--grey); }

/* Bereiche */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; min-height: 104px; border-radius: 16px; border: 2px solid var(--line); background: #fff; cursor: pointer; text-align: left; font: 600 15px var(--body); color: var(--ink); transition: border-color .2s, background .2s; }
.tile:hover { border-color: #C9CED3; }
.tile[aria-pressed="true"] { border-color: var(--green-700); background: rgba(97,206,112,.10); box-shadow: 0 0 0 4px rgba(97,206,112,.15); }
.tile svg { stroke: var(--link); }

/* Dringlichkeit */
.prios { display: flex; flex-wrap: wrap; gap: 8px; }
.prio { flex: 1 1 150px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 18px; border-radius: 16px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-align: left; font: 15px var(--body); }
.prio b { font-weight: 600; }
.prio small { font-size: 13px; opacity: .75; }
.prio[aria-pressed="true"][data-prio="low"] { border-color: var(--green-700); background: #E3F6E6; color: #1F6B2E; }
.prio[aria-pressed="true"][data-prio="normal"] { border-color: #D4A20A; background: #FFF6D1; color: #6B5200; }
.prio[aria-pressed="true"][data-prio="high"] { border-color: #E07B12; background: #FFEBD9; color: #8A3D00; }
.prio[aria-pressed="true"][data-prio="critical"] { border-color: var(--red); background: #FDECEA; color: #8A1C12; }
.critical-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; border-radius: 16px; background: var(--pine-950); color: #fff; }
.critical-hint span { flex: 1 1 280px; font-size: 15px; line-height: 1.5; }
.critical-hint a { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--green); color: var(--pine-950); font-weight: 600; text-decoration: none; }

/* Fernwartung, Anhänge, Datenschutz */
.remote-box { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: #FAFBFB; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; color: #26292C; cursor: pointer; }
.check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green-700); }
.remote-detail { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; padding-left: 32px; }
.remote-detail .note { flex: 1 1 100%; font-size: 13px; line-height: 1.5; color: var(--grey); }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 20px; border-radius: 16px; border: 2px dashed #C9CED3; background: #FAFBFB; text-align: center; cursor: pointer; }
.drop.over { border-color: var(--green-700); background: rgba(97,206,112,.08); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.files li { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 12px; background: var(--mint); font-size: 14px; }
.files .name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .size { color: var(--grey); white-space: nowrap; }
.x { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--grey); font-size: 18px; cursor: pointer; }
.x:hover { background: rgba(0,0,0,.06); }
.privacy { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: 16px; border: 2px solid var(--green); background: rgba(97,206,112,.10); font-size: 15px; line-height: 1.5; cursor: pointer; transition: background .3s, border-color .3s; }
.privacy.ok { border-color: var(--line); background: #FAFBFB; }
.privacy.bad { border-color: var(--red); background: #FDECEA; animation: shake .45s ease; }
.privacy .cb { flex: 0 0 auto; display: inline-flex; border-radius: 6px; margin-top: 2px; }
.privacy:not(.ok) .cb { animation: cbPulse 1.8s ease-out infinite; }
.privacy input { width: 20px; height: 20px; margin: 0; accent-color: var(--green-700); }
@keyframes cbPulse { 0% { box-shadow: 0 0 0 0 rgba(97,206,112,.7); } 70% { box-shadow: 0 0 0 10px rgba(97,206,112,0); } 100% { box-shadow: 0 0 0 0 rgba(97,206,112,0); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid #E8EAED; }
.form-foot .actions { display: flex; justify-content: flex-end; }
.form-error { padding: 14px 18px; border-radius: 14px; background: #FDECEA; color: #8A1C12; font-size: 15px; }

/* Erfolg */
.success { padding: 56px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.success .ok-ico { width: 72px; height: 72px; border-radius: 50%; background: rgba(97,206,112,.16); display: flex; align-items: center; justify-content: center; }
.success h2 { margin: 0; font: 700 28px/1.25 var(--display); }
.ticket-no { display: flex; flex-direction: column; gap: 4px; padding: 16px 28px; border-radius: 16px; background: var(--mint); }
.ticket-no small { font-size: 13px; color: var(--grey); }
.ticket-no b { font: 700 24px var(--display); letter-spacing: .02em; }
.success p { margin: 0; color: var(--grey); max-width: 540px; line-height: 1.6; }
.success .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Seitenspalte */
.sz-card { border-radius: var(--radius); padding: 24px; background: var(--green); color: var(--pine-950); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 12px 32px rgba(97,206,112,.28); }
.sz-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sz-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; font: 700 17px var(--display); }
.sz-state { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: rgba(11,13,15,.12); }
.sz-state i { width: 8px; height: 8px; border-radius: 50%; background: rgba(11,13,15,.45); }
.sz-state.open { background: var(--pine-950); color: var(--lime); }
.sz-state.open i { background: var(--green); animation: szPulse 2s ease-out infinite; }
@keyframes szPulse { 0% { box-shadow: 0 0 0 0 rgba(126,219,140,.85); transform: scale(1); } 50% { transform: scale(1.15); } 70% { box-shadow: 0 0 0 8px rgba(126,219,140,0); } 100% { box-shadow: 0 0 0 0 rgba(126,219,140,0); transform: scale(1); } }
.sz-time { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 800 28px var(--display); letter-spacing: -.01em; }
.sz-card p { margin: 0; padding-top: 12px; border-top: 1px solid rgba(11,13,15,.15); font-size: 14px; line-height: 1.55; color: rgba(11,13,15,.8); }
.sz-card a { color: var(--pine-950); font-weight: 700; white-space: nowrap; }
.side-card { background: #fff; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.side-card.dark { background: var(--pine-950); color: #fff; gap: 10px; }
.side-card h2 { margin: 0; font: 600 17px var(--display); }
.side-card.dark p { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.72); }
.side-card.dark a { color: var(--lime); font-weight: 600; }
.steps.dark-n .n { background: var(--pine-900); color: var(--lime); flex-basis: 30px; height: 30px; font-size: 14px; }
.steps.dark-n li { color: var(--grey-2); }

/* ---------------- Ticket-Status ---------------- */
.status-badge { display: inline-flex; align-items: center; height: 28px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #FDF1DC; color: #7A4F00; }
.status-badge.new { background: #E6EEFB; color: #1F4E9A; }
.status-badge.closed { background: #E3F6E6; color: #1F6B2E; }
.progress ol { list-style: none; margin: 0; padding: 0; display: flex; }
.progress li { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; text-align: center; font-size: 14px; font-weight: 600; color: #8A9095; }
.progress li.on { color: var(--ink); }
.progress .track { display: flex; align-items: center; }
.progress .ln { flex: 1 1 auto; height: 3px; border-radius: 2px; background: var(--line); }
.progress .ln.on { background: var(--green); }
.progress .ln.none { background: transparent; }
.progress .dot { flex: 0 0 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--mint); box-shadow: inset 0 0 0 2px var(--field); }
.progress .dot.done { background: var(--green); box-shadow: none; }
.progress .dot.cur { background: #FDF1DC; box-shadow: inset 0 0 0 2px #E0A21B; }
.progress .dot.cur i { width: 10px; height: 10px; border-radius: 50%; background: var(--pine-950); animation: stepPulse 1.8s ease-out infinite; }
@keyframes stepPulse { 0% { box-shadow: 0 0 0 0 rgba(11,13,15,.35); } 70% { box-shadow: 0 0 0 8px rgba(11,13,15,0); } 100% { box-shadow: 0 0 0 0 rgba(11,13,15,0); } }
.progress small { font-size: 13px; font-weight: 400; color: var(--grey); }
.info-note { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; border-radius: 16px; background: rgba(97,206,112,.12); font-size: 15px; line-height: 1.5; color: #1C3B24; }
.event { display: flex; align-items: center; gap: 12px; padding: 0 8px; font-size: 13px; color: var(--grey); }
.event::before, .event::after { content: ""; flex: 1 1 0; height: 1px; background: #DDE0E3; }
.msg { background: #fff; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 1px 2px rgba(15,18,20,.05); }
.msg.agent { outline: 2px solid rgba(97,206,112,.35); }
.msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.avatar { flex: 0 0 40px; height: 40px; border-radius: 50%; background: #E3E6E9; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.msg.agent .avatar { background: var(--pine-950); }
.avatar img { width: 28px; height: 28px; object-fit: contain; }
.msg-who { flex: 1 1 200px; display: flex; flex-direction: column; line-height: 1.3; }
.msg-who b { font-size: 15px; }
.msg-who small, .msg-time { font-size: 13px; color: var(--grey); }
.msg-body { margin: 0; font-size: 16px; line-height: 1.65; color: #26292C; white-space: pre-line; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 12px; background: var(--mint); font-size: 14px; color: var(--ink); }
.chip .x { width: 26px; height: 26px; font-size: 16px; }
.reply { display: flex; flex-direction: column; gap: 14px; }
.reply-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.reply .closed-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 14px; background: #E3F6E6; font-size: 14px; line-height: 1.5; color: #1F6B2E; }
dl.details { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; font-size: 14px; }
dl.details dt { color: var(--grey); }
dl.details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.empty-state { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty-state h2 { margin: 0; font: 700 24px var(--display); }
.empty-state p { margin: 0; color: var(--grey); max-width: 460px; }
.skeleton { height: 18px; border-radius: 8px; background: linear-gradient(90deg, #EEF0F2 0%, #F7F8F9 50%, #EEF0F2 100%); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
.tno-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.tno { font-size: 14px; color: rgba(255,255,255,.65); letter-spacing: .02em; }
.thread { display: flex; flex-direction: column; gap: 16px; }
.reply-h { font: 600 17px var(--display); }
.reply textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--field); font: 16px/1.55 var(--body); color: var(--ink); resize: vertical; }
.reply textarea[aria-invalid="true"] { border-color: var(--red); background: #FFF8F7; }
.attach { position: relative; }
.attach input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chips:empty { display: none; }
.msg .chip svg { flex: 0 0 auto; }
.side-card .muted { margin: 0; font-size: 15px; line-height: 1.55; color: var(--grey); }
.closed-ok { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #1F6B2E; }
.msg.fresh { animation: msgIn .5s ease-out; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-404 { min-height: 100vh; display: flex; flex-direction: column; background: var(--pine-900); color: #fff; position: relative; overflow: hidden; }
.page-404 .inner { width: 100%; position: relative; z-index: 1; flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding-block: 140px 80px; }
.page-404 .code { font: 800 clamp(72px, 14vw, 140px)/1 var(--display); color: var(--green); letter-spacing: -.03em; }
.page-404 h1 { margin: 0; font: 700 clamp(26px, 4vw, 36px)/1.2 var(--display); }
.page-404 p { margin: 0; color: rgba(255,255,255,.72); max-width: 520px; line-height: 1.6; }
.page-404 .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

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