/* Lokal gehostete Schriftart Spinnaker (DSGVO-konform, keine Verbindung zu Google Fonts) */
@font-face {
  font-family: 'Spinnaker';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/spinnaker-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spinnaker';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/spinnaker-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --zid-blue: #1272b8;
  --zid-blue-dark: #0d568c;
  --zid-navy: #1a2b6d;
  --zid-navy-deep: #0d1637;
  --zid-orange: #ffa41c;
  --zid-orange-hover: #e58e09;
  --zid-cyan: #00adef;
  --zid-gray-bg: #f4f6f9;
  --zid-gray-light: #e5e9f0;
  --zid-gray-text: #555e6d;
  --zid-dark: #111827;
  --zid-white: #ffffff;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-card: 0 12px 32px -4px rgba(13, 22, 55, 0.08), 0 4px 12px -2px rgba(13, 22, 55, 0.04);
  --shadow-hover: 0 18px 38px -6px rgba(18, 114, 184, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--zid-gray-bg);
  color: var(--zid-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Bar */
.top-bar {
  background-color: var(--zid-navy-deep);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.top-link:hover {
  color: var(--zid-orange);
}

/* Site Header */
.site-header {
  background-color: var(--zid-white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}

.brand-logo img {
  height: 58px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--zid-dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  color: var(--zid-blue);
}

.nav-link.active {
  color: var(--zid-blue);
  border-bottom-color: var(--zid-orange);
  font-weight: 600;
}

.trust-badge img {
  height: 52px;
  width: auto;
  display: block;
}

/* Main Portal Area */
.portal-main {
  position: relative;
  flex: 1;
  padding: 42px 0 64px;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 290px;
  background: linear-gradient(135deg, var(--zid-navy-deep) 0%, var(--zid-navy) 55%, var(--zid-blue) 100%);
  z-index: 0;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.portal-container {
  position: relative;
  z-index: 1;
}

/* Mode Switcher */
.mode-switcher {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 26px;
  gap: 6px;
  flex-wrap: wrap;
}

.mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.mode-tab:hover {
  color: var(--zid-white);
  background: rgba(255, 255, 255, 0.1);
}

.mode-tab.active {
  background: var(--zid-white);
  color: var(--zid-navy-deep);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

/* Grid Layout */
.portal-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Primary Card */
.portal-card {
  background: var(--zid-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px;
  border: 1px solid rgba(18, 114, 184, 0.1);
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(18, 114, 184, 0.1);
  color: var(--zid-blue);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.portal-title {
  font-family: 'Spinnaker', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--zid-dark);
  line-height: 1.2;
  margin-bottom: 14px;
}

.accent-divider {
  width: 64px;
  height: 4px;
  background: var(--zid-orange);
  border-radius: 2px;
  margin-bottom: 20px;
}

.portal-subtitle {
  font-size: 16px;
  color: var(--zid-gray-text);
  margin-bottom: 28px;
}

/* Redirect / Action Box */
.redirect-box {
  background: linear-gradient(180deg, #f8fafd 0%, #f0f5fa 100%);
  border: 1px solid #d5e3f0;
  border-radius: var(--radius-md);
  padding: 26px;
  margin-bottom: 32px;
}

.redirect-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.redirect-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--zid-blue);
  color: var(--zid-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(18, 114, 184, 0.25);
}

.redirect-info strong {
  display: block;
  font-size: 17px;
  color: var(--zid-dark);
  margin-bottom: 3px;
}

.redirect-info p {
  font-size: 14px;
  color: var(--zid-gray-text);
}

.redirect-info code, .privacy-notice code, .consent-note code {
  background: rgba(18, 114, 184, 0.1);
  color: var(--zid-blue-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12.5px;
}

/* DSGVO / Redirect Notice Box */
.privacy-notice {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--zid-orange);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: #334155;
}

.privacy-notice-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--zid-navy-deep);
  margin-bottom: 6px;
  font-size: 14px;
}

.privacy-notice-title svg {
  color: var(--zid-orange-hover);
  flex-shrink: 0;
}

.privacy-notice p {
  line-height: 1.55;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: var(--zid-blue);
  color: var(--zid-white);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  padding: 18px 28px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(18, 114, 184, 0.28);
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-align: center;
}

.cta-button:hover {
  background: var(--zid-orange);
  color: var(--zid-white);
  box-shadow: 0 10px 24px rgba(255, 164, 28, 0.35);
  transform: translateY(-1px);
}

.consent-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: #4b5563;
  text-align: center;
}

/* Steps */
.steps-section {
  border-top: 1px solid var(--zid-gray-light);
  padding-top: 26px;
}

.steps-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--zid-dark);
  margin-bottom: 18px;
}

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

.step-item {
  background: var(--zid-gray-bg);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--zid-navy);
  color: var(--zid-white);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-text strong {
  display: block;
  font-size: 14px;
  color: var(--zid-dark);
  margin-bottom: 4px;
}

.step-text span {
  font-size: 13px;
  color: var(--zid-gray-text);
  display: block;
}

/* Sidebar */
.portal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-card {
  background: var(--zid-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  border: 1px solid rgba(13, 22, 55, 0.07);
}

.side-card-header {
  margin-bottom: 10px;
}

.side-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--zid-orange-hover);
  margin-bottom: 4px;
}

.side-card h3 {
  font-family: 'Spinnaker', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 20px;
  color: var(--zid-dark);
}

.side-desc {
  font-size: 14px;
  color: var(--zid-gray-text);
  margin-bottom: 16px;
}

.side-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--zid-orange);
  color: var(--zid-dark);
  background: rgba(255, 164, 28, 0.08);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.secondary-button:hover {
  background: var(--zid-orange);
  color: var(--zid-white);
}

.switch-link {
  font-size: 13px;
  color: var(--zid-blue);
  text-decoration: none;
  font-weight: 500;
  text-align: center;
}

.switch-link:hover {
  text-decoration: underline;
}

/* System Info Card */
.sysinfo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.sysinfo-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--zid-gray-light);
}

.sysinfo-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sys-label {
  color: var(--zid-gray-text);
}

.sys-val {
  font-weight: 600;
  color: var(--zid-dark);
}

.sys-badge-ok {
  color: #15803d;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

code.sys-val {
  background: var(--zid-gray-bg);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--zid-blue-dark);
}

/* Contact Card */
.contact-sub {
  font-size: 13.5px;
  color: var(--zid-gray-text);
  margin-top: 4px;
  margin-bottom: 16px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13.5px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--zid-gray-text);
}

.contact-row svg {
  color: var(--zid-blue);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-row strong {
  color: var(--zid-dark);
}

.contact-row a {
  color: var(--zid-blue);
  text-decoration: none;
  font-weight: 500;
}

.contact-row a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background-color: var(--zid-navy-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 28px 0;
  font-size: 13.5px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-left strong {
  color: var(--zid-white);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--zid-orange);
}

.footer-copy {
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
}

/* Responsive */
@media (max-width: 960px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }
  .main-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .portal-card {
    padding: 24px 20px;
  }
  .portal-title {
    font-size: 28px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .trust-badge img {
    height: 40px;
  }
  .brand-logo img {
    height: 44px;
  }
}
