/* ADD Service Kundeportal - clean reset */

:root {
  --navy: #101820;
  --navy-2: #17243a;
  --blue: #0b63ce;
  --red: #e31b2f;
  --text: #172033;
  --muted: #607086;
  --bg: #f4f7fb;
  --card: #ffffff;
  --line: #d8e1ec;
  --soft: #edf4fc;
  --success: #147a4b;
  --danger: #c9182b;
  --warning: #806000;
  --shadow: 0 18px 48px rgba(16, 24, 32, 0.10);
  --radius: 24px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(227, 27, 47, 0.08), transparent 28rem),
    radial-gradient(circle at 90% 0%, rgba(11, 99, 206, 0.12), transparent 32rem),
    linear-gradient(135deg, #fbfdff, var(--bg));
}

a { color: var(--blue); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 46px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.08);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: max-content;
  text-decoration: none;
  color: var(--navy);
}

.brand-icon,
.login-logo,
.logo-big,
.brand span {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: contain;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: #fff;
  font-weight: 900;
}

.brand strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar nav a {
  color: #42536a;
  text-decoration: none;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 999px;
}

.topbar nav a:hover {
  color: var(--blue);
  background: var(--soft);
}

.container {
  width: min(1120px, calc(100% - 28px));
  margin: 28px auto 80px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  margin-bottom: 24px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 30px;
  background: linear-gradient(135deg, var(--navy), #173050);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow);
}

.hero.compact { padding: 28px; }

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  font-weight: 900;
  color: #83c6ff;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #fff;
}

.hero p {
  margin: 0;
  color: #d7e5f5;
  line-height: 1.6;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.stats div,
.card,
.login-card,
.admin-action,
.doc-card,
.event-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  color: var(--text);
  box-shadow: var(--shadow);
}

.stats strong {
  display: block;
  font-size: 42px;
  color: var(--navy);
}

.stats span,
.muted,
.card p,
.login-card p,
.doc-card p,
.event-card p {
  color: var(--muted);
  line-height: 1.6;
}

.card { margin-bottom: 24px; }

.narrow {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.login-card {
  max-width: 520px;
  margin: 70px auto;
  text-align: center;
}

.login-logo {
  display: block;
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  background: transparent;
}

.login-card h1,
.card h1,
.card h2,
.doc-card h3,
.event-card h3 {
  margin-top: 0;
  color: var(--navy);
}

.form {
  display: grid;
  gap: 16px;
  text-align: left;
}

.form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd9e6;
  border-radius: 14px;
  padding: 13px 14px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(11, 99, 206, 0.85);
  box-shadow: 0 0 0 4px rgba(11, 99, 206, 0.14);
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(11, 99, 206, 0.16);
}

.button.light {
  background: #fff;
  color: var(--blue);
  border: 1px solid #bfd4ef;
  box-shadow: none;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
}

th,
td {
  text-align: left;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
}

th {
  color: #65768c;
  font-size: 14px;
}

td { color: var(--text); }

.status,
.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--blue);
  border: 1px solid #c8ddf7;
  font-weight: 900;
  font-size: 13px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.admin-action {
  color: var(--navy);
  text-decoration: none;
  font-weight: 900;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.doc-card h3 { margin-top: 0; }

.doc-card small {
  display: block;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 16px;
}

.event-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
}

.event-date {
  color: var(--blue);
  font-weight: 900;
}

.error,
.warning,
.success {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
}

.error {
  background: #fff1f3;
  color: var(--danger);
  border: 1px solid #ffc9d0;
}

.warning {
  background: #fff7df;
  color: var(--warning);
  border: 1px solid #ffe29b;
}

.success {
  background: #e4f7ed;
  color: var(--success);
  border: 1px solid #bfe8d1;
}

.footer {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 900px) {
  .topbar,
  .hero,
  .section-head {
    display: grid;
    justify-items: start;
  }

  .stats,
  .admin-grid,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    grid-template-columns: 1fr;
  }
}
