/* Serafe – Rechnungsdaten aktualisieren */

@font-face {
  font-family: "Gothic A1";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/gothic-a1-v4-latin-300-a2b7e01d04a9b2dbc270e8a3e56837bc.woff2") format("woff2");
}
@font-face {
  font-family: "Gothic A1";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/gothic-a1-v4-latin-regular-fbc49c84a53c33d97d60d32ff94cfad1.woff2") format("woff2");
}
@font-face {
  font-family: "Gothic A1";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/gothic-a1-v4-latin-700-3858ca83ab67c90f8afaec3c37ce995b.woff2") format("woff2");
}

:root {
  --serafe: #016871;
  --serafe-dunkel: #01393e;
  --text: #222222;
  --muted: #6c757d;
  --linie: #dee2e6;
  --hell: #f8f9fa;
  --fehler: #dc3545;
  --ok: #28a745;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "HelveticaNeue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Kopfzeile (dunkelgruen, wie serafe.ch) ---------- */
.top {
  background: var(--serafe);
  padding: 14px 0;
  box-shadow: 0 2px 7px -2px rgba(0, 0, 0, 0.75);
}

.top-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top img {
  height: 29px;
  width: auto;
  display: block;
}

.top .lang {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  letter-spacing: 0.2px;
}

/* ---------- Meta-Zeile (hellgrau) ---------- */
.meta {
  background: var(--hell);
  border-bottom: 1px solid var(--linie);
  font-size: 12.5px;
  color: var(--muted);
}

.meta-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 8px 15px;
}

/* ---------- Inhalt ---------- */
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

h1 {
  font-family: "Gothic A1", "Helvetica Neue", Arial, sans-serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--serafe);
}

.lead {
  font-size: 15.5px;
  color: var(--muted);
  margin: 0 0 26px;
  line-height: 1.6;
}

hr {
  border: 0;
  border-top: 1px solid var(--linie);
  margin: 26px 0;
}

/* ---------- Karte ---------- */
.card {
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 6px;
  padding: 26px 26px 22px;
  margin-bottom: 22px;
}

.card h2 {
  font-family: "Gothic A1", Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
}

.card .sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
}

/* ---------- Formular ---------- */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.row.one { grid-template-columns: 1fr; }

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.field label {
  font-size: 13.5px;
  font-weight: 400;
  color: #495057;
  margin-bottom: 6px;
}

.field .req { color: var(--fehler); }

input, select {
  font-family: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}

input:focus, select:focus {
  border-color: var(--serafe);
  box-shadow: 0 0 0 3px rgba(1, 104, 113, 0.12);
}

.field.invalid input, .field.invalid select {
  border-color: var(--fehler);
}

.field .err {
  font-size: 12.5px;
  color: var(--fehler);
  min-height: 0;
  margin-top: 5px;
  display: none;
}

.field.invalid .err { display: block; }

/* ---------- Button ---------- */
.btn {
  font-family: "Gothic A1", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--serafe);
  border: 1px solid var(--serafe);
  border-radius: 4px;
  padding: 13px 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}

.btn:hover { background: var(--serafe-dunkel); border-color: var(--serafe-dunkel); }
.btn:disabled { opacity: .7; cursor: default; }

.btn-row { display: flex; justify-content: flex-end; gap: 12px; margin-top: 6px; }

/* ---------- Hinweise ---------- */
.hint {
  background: #e7f1f2;
  border-left: 3px solid var(--serafe);
  padding: 13px 16px;
  font-size: 13.5px;
  color: #014d54;
  margin-bottom: 22px;
  border-radius: 0 4px 4px 0;
}

.step {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* ---------- Spinner ---------- */
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Fusszeile ---------- */
.foot {
  border-top: 1px solid var(--linie);
  background: var(--hell);
  padding: 24px 15px 30px;
  font-size: 12.5px;
  color: var(--muted);
}

.foot-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.foot a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 14px;
}

.foot a:hover { text-decoration: underline; color: var(--serafe); }

/* ---------- Abschluss ---------- */
.done {
  text-align: center;
  padding: 34px 10px 12px;
}

.done .mark {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--ok);
  display: flex;
  align-items: center;
  justify-content: center;
}

.done .mark svg { width: 34px; height: 34px; }

.done h2 {
  font-family: "Gothic A1", Arial, sans-serif;
  font-size: 21px;
  margin: 0 0 10px;
  color: var(--serafe);
}

.done p {
  font-size: 15px;
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* ---------- Screens ---------- */
.screen { display: none; }
.screen.on { display: block; animation: fade .25s ease; }

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Mobil ---------- */
@media (max-width: 620px) {
  .wrap { padding: 26px 16px 48px; }
  h1 { font-size: 22px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .card { padding: 20px 16px 16px; }
  .top img { height: 24px; }
  .top .lang { display: none; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column-reverse; }
}
