/* ============================================================
   Frontdesk Dispatcher – Kreis Schleswig-Flensburg
   Corporate Design: Blau #175592, Gelb #ffdd00
   Mobile-First, WCAG AA konform
   ============================================================ */

/* --- Tokens --- */
:root {
  --fw-blau:        #175592;
  --fw-blau-dunkel: #0c447c;
  --fw-blau-hell:   #e8f0f9;
  --fw-gelb:        #ffdd00;
  --fw-text:        #202020;
  --fw-grau:        #f4f4f2;
  --fw-grau-rand:   #d8d8d6;
  --fw-radius:      8px;
  --fw-shadow:      0 2px 12px rgba(23,85,146,.12);
  --fw-transition:  0.18s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
  color: var(--fw-text);
  background: var(--fw-grau);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

a { color: var(--fw-blau); }
a:hover, a:focus { color: var(--fw-blau-dunkel); text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--fw-blau); outline-offset: 2px; border-radius: 2px; }

img, svg { max-width: 100%; height: auto; }

/* --- Header --- */
.sz-header {
  background: #fff;
  border-bottom: 4px solid var(--fw-gelb);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.sz-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 16px;
}

.sz-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.sz-brand:hover .sz-brand-kreis,
.sz-brand:focus .sz-brand-kreis { text-decoration: underline; }

.sz-crest {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  object-fit: contain;
}

.sz-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.sz-brand-kreis {
  color: var(--fw-blau);
  font-weight: 700;
  font-size: 1.1rem;
}

.sz-brand-sub {
  color: var(--fw-blau);
  font-weight: 400;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* --- Main --- */
.sz-main {
  flex: 1 0 auto;
  padding: 24px 16px 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* --- Card --- */
.sz-card {
  background: #fff;
  border-radius: var(--fw-radius);
  box-shadow: var(--fw-shadow);
  padding: 28px 20px;
  width: 100%;
  max-width: 560px;
}

.sz-card-title {
  color: var(--fw-blau);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.25;
}

.sz-card-desc {
  color: #444;
  font-size: 0.97rem;
  margin-bottom: 24px;
  line-height: 1.55;
}

/* Bild zwischen Beschreibung und Auswahlfeld:
   sorgt für sichtbaren Abstand, damit klar wird, dass sich der
   nachfolgende Absatz/Text auf das Dropdown-Feld bezieht. */
.sz-card img {
  display: block;
  margin: 0 0 28px;
}

/* --- Form --- */
.sz-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sz-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sz-label {
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--fw-text);
}

.sz-select {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--fw-grau-rand);
  border-radius: var(--fw-radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--fw-text);
  background: #fff;
  transition: border-color var(--fw-transition), box-shadow var(--fw-transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23175592' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.sz-select:focus {
  outline: none;
  border-color: var(--fw-blau);
  box-shadow: 0 0 0 3px rgba(23,85,146,.18);
}

.sz-select:disabled {
  background-color: var(--fw-grau);
  color: #888;
  cursor: not-allowed;
}

/* --- Buttons --- */
.sz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: var(--fw-radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--fw-transition), color var(--fw-transition), box-shadow var(--fw-transition);
  border: 2px solid transparent;
  line-height: 1.2;
}

.sz-btn--primary {
  background: var(--fw-blau);
  color: #fff;
  border-color: var(--fw-blau);
}
.sz-btn--primary:hover,
.sz-btn--primary:focus {
  background: var(--fw-blau-dunkel);
  border-color: var(--fw-blau-dunkel);
  box-shadow: 0 2px 8px rgba(23,85,146,.25);
  text-decoration: none;
  color: #fff;
}

/* Deaktivierter Zustand des Frontdesk-Buttons,
   solange noch kein Rechtsbereich ausgewählt wurde */
.sz-btn--disabled {
  background: #aac0d8;
  border-color: #aac0d8;
  color: #fff;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.7;
}
.sz-btn--disabled:hover,
.sz-btn--disabled:focus {
  background: #aac0d8;
  border-color: #aac0d8;
  box-shadow: none;
}

.sz-btn:focus-visible {
  outline: 3px solid var(--fw-blau);
  outline-offset: 2px;
}

/* --- Footer --- */
.sz-footer {
  background: var(--fw-blau);
  flex: 0 0 auto;
}

.sz-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.sz-footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.sz-footer-links a {
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
}
.sz-footer-links a:hover,
.sz-footer-links a:focus {
  color: var(--fw-gelb);
  text-decoration: underline;
}

.sz-footer-copy {
  color: #c8ddf0;
  font-size: 0.85rem;
  margin-left: auto;
}

/* ============================================================
   Responsive – Tablet & Desktop
   ============================================================ */
@media (min-width: 480px) {
  .sz-card {
    padding: 36px 32px;
  }
  .sz-card-title {
    font-size: 1.55rem;
  }
}

@media (min-width: 640px) {
  .sz-main {
    padding: 40px 24px 60px;
    align-items: center;
  }
  .sz-brand-kreis { font-size: 1.3rem; }
  .sz-brand-sub   { font-size: 1rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}