:root {
  --bg: #f7fbff;
  --surface: rgba(255, 255, 255, .82);
  --surface-solid: #ffffff;
  --text: #172238;
  --muted: #64758b;
  --line: rgba(23, 34, 56, .10);
  --primary: #1f6fff;
  --primary-dark: #164fbd;
  --blue-soft: #eaf3ff;
  --green: #28c76f;
  --yellow: #f4b740;
  --red: #ef4444;
  --shadow: 0 24px 70px rgba(25, 55, 112, .12);
  --shadow-soft: 0 10px 34px rgba(25, 55, 112, .08);
  --radius: 28px;
  --radius-sm: 16px;
  --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(circle at 15% 15%, rgba(31,111,255,.10), transparent 24%), radial-gradient(circle at 85% 20%, rgba(52, 211, 153, .07), transparent 22%), linear-gradient(180deg, #fff 0%, var(--bg) 58%, #fff 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.cursor-glow {
  position: fixed; width: 440px; height: 440px; pointer-events: none; z-index: -2;
  background: radial-gradient(circle, rgba(31,111,255,.10), transparent 60%);
  filter: blur(8px); opacity: .9;
}
.particle-field { position: fixed; inset: 0; z-index: -3; opacity: .8; pointer-events: none; }
.container { width: min(var(--container), calc(100% - 44px)); margin: 0 auto; }
.narrow { width: min(860px, calc(100% - 44px)); }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(23,34,56,.07);
}
.nav-wrap { min-height: 86px; display: flex; align-items: center; gap: 28px; }
.brand img { width: 238px; height: auto; }
.main-nav {
  margin-left: auto; display: flex; align-items: center; gap: 6px; padding: 8px;
  background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-soft);
}
.main-nav a { padding: 13px 19px; border-radius: 999px; font-weight: 800; font-size: 14px; color: #334155; }
.main-nav a:hover, .main-nav a.is-active { background: #edf5ff; color: #102141; box-shadow: inset 0 -2px 0 var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta, .btn {
  border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 14px 22px; font-weight: 900; transition: .18s ease; white-space: nowrap;
}
.nav-cta, .btn-primary { background: var(--primary); color: #fff; box-shadow: 0 14px 34px rgba(31,111,255,.25); }
.nav-cta:hover, .btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-cta.subtle, .btn-secondary { background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.nav-link-soft { font-weight: 800; color: var(--text); }
.nav-profile { width: 42px; height: 42px; border-radius: 50%; background: #f2f6ff; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 900; color: var(--primary); }
.inline-form { margin: 0; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 0; background: transparent; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 7px; border-radius: 99px; }
.page-shell { min-height: calc(100vh - 180px); }
.hero { padding: 118px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-weight: 900; margin: 0 0 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; box-shadow: var(--shadow-soft); }
.eyebrow span { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 7px rgba(40,199,111,.12); }
h1 { font-size: clamp(42px, 6vw, 86px); line-height: .98; letter-spacing: -.055em; margin: 0 0 26px; }
.gradient-text { background: linear-gradient(135deg, #12459e, #1f6fff 70%); -webkit-background-clip: text; color: transparent; }
.lead, .section-lead { color: var(--muted); font-size: 20px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-metrics { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-metrics div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow-soft); min-width: 128px; }
.hero-metrics strong { display: block; font-size: 22px; }
.hero-metrics span { color: var(--muted); font-size: 13px; font-weight: 700; }
.hero-visual { min-height: 520px; display: flex; align-items: center; justify-content: center; }
.orb-card { position: relative; width: 480px; height: 480px; display: grid; place-items: center; }
.system-glow { position: absolute; width: 260px; height: 260px; background: radial-gradient(circle, rgba(31,111,255,.18), transparent 67%); filter: blur(16px); }
.system-ring { position: absolute; border: 1px solid rgba(31,111,255,.15); border-radius: 50%; animation: spin 20s linear infinite; }
.ring-one { width: 420px; height: 420px; }
.ring-two { width: 310px; height: 310px; animation-direction: reverse; }
.ring-three { width: 210px; height: 210px; }
.logo-core { width: 158px; height: 158px; border-radius: 35px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; place-items: center; position: relative; z-index: 2; }
.logo-core img { width: 78px; }
.tech-chip { position: absolute; padding: 12px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); font-weight: 900; font-size: 14px; }
.tech-chip::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 8px; }
.chip-software { top: 76px; left: 38px; }
.chip-automation { top: 112px; right: 24px; }
.chip-web { bottom: 92px; left: 36px; }
.chip-hosting { bottom: 74px; right: 46px; }
.system-lines .line { position: absolute; background: rgba(31,111,255,.18); height: 1px; width: 180px; top: 50%; left: 50%; transform-origin: left; }
.line-a { transform: rotate(20deg); } .line-b { transform: rotate(115deg); } .line-c { transform: rotate(205deg); } .line-d { transform: rotate(300deg); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-slim { padding: 108px 0 42px; }
.hero-slim .lead { max-width: 640px; }
.compact-metrics div { min-width: 118px; padding: 13px 16px; }
.compact-metrics strong { font-size: 18px; }
.quick-section { padding: 24px 0 70px; }
.quick-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 26px;
  align-items: center;
  background: rgba(255,255,255,.76);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  backdrop-filter: blur(18px);
}
.quick-panel h2 { font-size: clamp(28px, 3vw, 42px); margin-bottom: 0; }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quick-card {
  min-height: 122px;
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: .18s ease;
}
.quick-card:hover { transform: translateY(-2px); border-color: rgba(31,111,255,.28); }
.quick-card span { color: var(--primary); font-weight: 1000; font-size: 13px; letter-spacing: .1em; }
.quick-card strong { font-size: 18px; color: var(--text); }

.section { padding: 70px 0; }
.section-tight { padding-top: 25px; }
.section-head { display: grid; grid-template-columns: 1fr .85fr; gap: 40px; align-items: end; margin-bottom: 30px; }
.section-head.compact { display: block; margin-bottom: 22px; }
.section-kicker { color: var(--primary); text-transform: uppercase; letter-spacing: .15em; font-size: 13px; font-weight: 1000; margin: 0 0 10px; }
h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.05; letter-spacing: -.04em; margin: 0 0 12px; }
h3 { margin-top: 0; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card, .glass-card { background: var(--surface); backdrop-filter: blur(18px); border: 1px solid var(--line); box-shadow: var(--shadow-soft); border-radius: var(--radius); }
.card { padding: 28px; min-height: 250px; }
.card-icon { width: 54px; height: 54px; border-radius: 17px; background: #edf5ff; color: var(--primary); display: grid; place-items: center; font-weight: 1000; margin-bottom: 18px; }
.card h3 { font-size: 22px; }
.card p, .process-panel p, .step p, .footer-grid p { color: var(--muted); line-height: 1.7; }
.process-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
.process-panel, .step { padding: 30px; }
.steps { display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-soft); }
.step-number { width: 48px; height: 48px; border-radius: 15px; background: var(--primary); color: white; display: grid; place-items: center; font-weight: 1000; }
.flash-wrap { padding-top: 18px; }
.flash { border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; font-weight: 800; border: 1px solid var(--line); background: #fff; }
.flash-success { color: #146c43; background: #ecfdf3; } .flash-error { color: #b42318; background: #fff1f0; }
.auth-section { padding: 72px 0; }
.auth-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: start; }
.auth-copy, .auth-card, .form-card, .table-card, .reply-card, .conversation, .ticket-side, .event-card, .filter-bar { padding: 28px; }
.auth-copy h1 { font-size: clamp(38px, 5vw, 64px); }
.auth-card, .form-card { display: grid; gap: 18px; }
label { display: grid; gap: 8px; font-weight: 800; color: #243348; }
input, textarea, select {
  width: 100%; border: 1px solid rgba(23,34,56,.14); border-radius: 16px; background: rgba(255,255,255,.92); color: var(--text); padding: 14px 15px; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: rgba(31,111,255,.65); box-shadow: 0 0 0 4px rgba(31,111,255,.10); }
textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.form-note { color: var(--muted); }
.form-note a { color: var(--primary); font-weight: 900; }
.contact-summary { background: #f5f9ff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 5px; }
.contact-summary span { color: var(--muted); }
.contact-summary a { color: var(--primary); font-weight: 900; }
.dashboard-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.dashboard-head h1 { font-size: clamp(38px, 5vw, 66px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.stat-card { padding: 22px; }
.stat-card span { color: var(--muted); font-weight: 800; }
.stat-card strong { display: block; font-size: 42px; line-height: 1; margin-top: 8px; }
.table-card { overflow-x: auto; }
.table-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.table-head a, .ticket-link { color: var(--primary); font-weight: 1000; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.data-table th, .data-table td { padding: 14px 12px; border-bottom: 1px solid rgba(23,34,56,.08); vertical-align: middle; }
.data-table tr:hover td { background: rgba(237,245,255,.45); }
.status-pill, .priority { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 1000; white-space: nowrap; }
.status-open { background: #fff7ed; color: #b45309; }
.status-in_progress { background: #edf5ff; color: #1f5fbf; }
.status-waiting_customer { background: #fef9c3; color: #854d0e; }
.status-resolved { background: #ecfdf3; color: #15803d; }
.status-closed { background: #f1f5f9; color: #475569; }
.priority-low { color: #475569; } .priority-normal { color: #1f5fbf; } .priority-high { color: #b45309; } .priority-urgent { color: #b42318; }
.empty-state { text-align: center; padding: 46px 20px; }
.empty-state p { color: var(--muted); }
.ticket-layout { display: grid; grid-template-columns: 330px 1fr; gap: 24px; align-items: start; }
.ticket-side { position: sticky; top: 110px; }
.ticket-side h2 { font-size: 30px; }
.back-link { color: var(--primary); font-weight: 1000; display: inline-block; margin-bottom: 18px; }
.meta-list { display: grid; gap: 12px; margin-top: 18px; }
.meta-list div { padding: 12px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 16px; }
.meta-list span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.ticket-main { display: grid; gap: 18px; }
.conversation { display: grid; gap: 14px; }
.message { border: 1px solid var(--line); border-radius: 20px; padding: 18px; background: #fff; }
.message header { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); margin-bottom: 10px; }
.message header strong { color: var(--text); }
.message-body { line-height: 1.7; }
.from-staff { border-color: rgba(31,111,255,.25); background: #f6faff; }
.is-internal { border-color: rgba(244,183,64,.35); background: #fffbeb; }
.attachment-list { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.attachment-list a { padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--primary); font-weight: 800; }
.side-form { display: grid; gap: 14px; margin-top: 20px; }
.full-width { width: 100%; }
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input { width: auto; }
.event-card h3 { margin-bottom: 14px; }
.event-line { display: grid; grid-template-columns: 150px 1fr 120px; gap: 10px; border-top: 1px solid var(--line); padding: 12px 0; color: var(--muted); }
.event-line strong { color: var(--text); }
.event-line small { grid-column: 2 / -1; }
.filter-bar { display: grid; grid-template-columns: 1fr 220px auto; gap: 14px; margin-bottom: 18px; }
.btn-small { padding: 9px 13px; font-size: 13px; background: #fff; border: 1px solid var(--line); color: var(--text); box-shadow: none; }
.error-panel { text-align: center; padding: 48px; }
.site-footer { padding: 70px 0 26px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); padding-top: 32px; }
.footer-logo { width: 230px; height: auto; display: block; object-fit: contain; margin-bottom: 12px; }
.footer-links { display: flex; gap: 18px; align-items: start; flex-wrap: wrap; font-weight: 900; }
.footer-bottom { margin-top: 30px; color: var(--muted); font-size: 14px; }
@media (max-width: 1000px) {
  .hero-grid, .section-head, .process-grid, .auth-grid, .ticket-layout, .quick-panel { grid-template-columns: 1fr; }
  .card-grid, .stats-grid, .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .ticket-side { position: static; }
  .filter-bar { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .container, .narrow { width: min(100% - 26px, var(--container)); }
  .nav-wrap { min-height: 76px; }
  .brand img { width: 205px; }
  .main-nav { position: absolute; top: 78px; left: 13px; right: 13px; display: none; flex-direction: column; border-radius: 24px; align-items: stretch; }
  .main-nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .nav-actions { margin-left: auto; }
  .nav-link-soft, .nav-cta.subtle { display: none; }
  .hero { padding-top: 64px; }
  .hero-slim { padding-bottom: 22px; }
  h1 { font-size: 48px; }
  .lead, .section-lead { font-size: 17px; }
  .hero-visual { min-height: 360px; }
  .orb-card { width: 330px; height: 330px; }
  .ring-one { width: 310px; height: 310px; } .ring-two { width: 230px; height: 230px; } .ring-three { width: 160px; height: 160px; }
  .logo-core { width: 126px; height: 126px; }
  .tech-chip { font-size: 12px; padding: 9px 11px; }
  .chip-software { top: 35px; left: 8px; } .chip-automation { top: 56px; right: 0; } .chip-web { bottom: 45px; left: 2px; } .chip-hosting { bottom: 30px; right: 12px; }
  .card-grid, .stats-grid, .quick-actions { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .dashboard-head { align-items: start; flex-direction: column; }
  .footer-grid { flex-direction: column; }
}

/* ReBu Helpdesk: rechte Hero-Grafik ausblenden */
.hero-visual {
  display: none !important;
}

.hero-grid {
  grid-template-columns: 1fr !important;
  max-width: 960px;
}

.hero-copy {
  max-width: 860px;
}

.hero {
  padding-top: 95px;
  padding-bottom: 95px;
}
