:root {
  --ink: #484848;
  --link: #005e73;
  --brand: #00c1d4;
  --brand-dark: #006a81;
  --bg-soft: #f7f7f7;
  --line: #d0d0ce;
  --muted: #5c5c5c;
  --radius: 2px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 1rem/1.6 "Public Sans", Arial, Helvetica, sans-serif;
}

a { color: var(--link); }
a:hover { color: var(--brand-dark); text-decoration: none; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--brand);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header img { display: block; width: 7.5rem; height: auto; }

/* Language selector (header, right-aligned, TUHH style) */
.lang { color: var(--link); }
.lang a { font-weight: 400; text-decoration: none; }
.lang a:hover { color: var(--brand-dark); }
/* Current language: clearly highlighted */
.lang strong { font-weight: 700; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .5rem;
  justify-content: space-between;
  padding: .5rem 1rem;
  font-size: .875rem;
}

.breadcrumb {
  text-transform: uppercase;
  letter-spacing: .125rem;
  line-height: 1.4;
  color: var(--link);
}
.breadcrumb a { color: var(--link); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-dark); }

body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 42rem; margin: 0 auto; padding: 0rem 1rem 1rem 1rem; }
h1 { font-size: 1.5rem; line-height: 1.3; color: var(--link); display:none;}
h2 { font-size: 1.1rem; margin-top: 1.5rem; color: var(--link); }

footer {
  background: var(--link);
  color: #fff;
  border-top: 0px solid var(--brand);
  padding: 1rem;
  text-align: center;
  font-size: .875rem;
}

/* Terms */
.terms table.clauses { border-collapse: collapse; }
.terms td { vertical-align: top; padding: .15rem .5rem .15rem 0; }
.terms ol { margin: 0; padding-left: 1.25rem; }

/* Agreement */
.agree {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .75rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.agree input { width: 1.5rem; height: 1.5rem; flex: none; margin-top: .1rem; }

/* Form */
fieldset { border: 0; padding: 0; margin: 1.5rem 0 0; }
fieldset:disabled { opacity: .45; }

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .25rem; }
.field input {
  width: 100%;
  padding: .7rem;
  font-size: 1rem; /* >=16px prevents iOS zoom on focus */
  border: 1px solid #bababa;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.field input:focus, .agree input:focus, .btn:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 1px;
}

.rules {
  margin: 0 0 1.5rem;
  background: var(--bg-soft);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: .5rem 1rem;
}
.rules summary { cursor: pointer; font-weight: 700; padding: .5rem 0; }
.rules tt { word-break: break-all; }

.btn {
  display: block;
  width: 100%;
  padding: .85rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--link);
  border: 0;
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn.secondary { background: var(--brand); color: #000; display: inline-block; width: auto; }
.btn:disabled { background: #999; cursor: not-allowed; }

@media (min-width: 40rem) {
  .btn { width: auto; min-width: 14rem; }
  h1 { display: block; }
}

/* Menu cards (start page) */
.menu { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .75rem; }
.menu a {
  display: block;
  padding: 1rem;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  text-decoration: none;
  background: #fff;
}
.menu a:hover { background: var(--bg-soft); border-left-color: var(--brand-dark); }
.menu a strong { display: block; text-decoration: underline; }
.menu a span { color: var(--muted); font-size: .9rem; }

/* Step tabs (TAN request / set) */
.steps { display: flex; gap: .5rem; margin: 1rem 0; padding: 0; list-style: none; }
.steps li { flex: 1; }
.steps a, .steps span {
  display: block;
  padding: .75rem .5rem;
  text-align: center;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: .9rem;
}
.steps span { border-color: var(--brand); border-bottom-width: 4px; color: var(--link); font-weight: 700; }
.steps a { color: var(--muted); }

.field small { display: block; font-weight: 400; color: var(--muted); }
.notes { background: var(--bg-soft); border-radius: var(--radius); padding: .5rem 1rem; margin-top: 1.5rem; font-size: .9rem; }
.notes ul { padding-left: 1.25rem; }
.note-box { border-left: 4px solid var(--brand); background: var(--bg-soft); padding: .5rem 1rem; border-radius: var(--radius); }

footer a { color: #fff; }
footer a:hover { color: var(--brand); }

.btn-row { display: grid; gap: .75rem; }
.btn.danger { background: #fff; color: #b00; border: 2px solid #b00; }
.btn.danger:hover { background: #b00; color: #fff; }
.btn:disabled, .field input:disabled { cursor: not-allowed; }
.field input:disabled { background: var(--bg-soft); }
@media (min-width: 40rem) { .btn-row { grid-template-columns: auto auto; justify-content: space-between; } }

/* Password status */
.status-message { margin: 1rem 0; padding: 1.25rem; border: 1px solid; border-top-width: .3rem; border-radius: var(--radius); }
.status-message--error { border-color: #b42318; background: #fff1f0; }
.status-message--success { border-color: #167447; background: #edf8f1; }
.status-message--neutral { border-color: #f2db23;; background: #fdfdfd; }
.status-message__label { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; font-size: .875rem; font-weight: 700; text-transform: uppercase; }
.status-message--error .status-message__label { color: #9f1d16; }
.status-message--success .status-message__label { color: #12633d; }
.status-message--neutral .status-message__label { color: #12633d; }
.status-message__icon { display: block; flex: none; width: 1.5rem; height: 1.5rem; }
.status-message h2 { margin: 0 0 .5rem; color: var(--ink); font-size: 1.1rem; line-height: 1.3; }
.status-message--neutral h2 { margin: 0 0 0rem; color: var(--ink); font-size: 1.25rem; line-height: 1.3; }
.status-message > p:not(.status-message__label) { margin: 0 0 1rem; }
.status-message .btn { width: 100%; }
.status-message--success .btn { background: #12633d; }
.status-message--success .btn:hover { background: #0d4f30; }
@media (min-width: 40rem) { .status-message { padding: 1.5rem; } }

/* Imprint */
.imprint dt { font-weight: 700; color: var(--link); margin-top: 1.25rem; }
.imprint dd { margin: .25rem 0 0; }
.imprint dd + dd { margin-top: .75rem; }

/* Maintenance message */
#maintenance {
  background-color: yellow;
  text-align: center;
  font-weight: normal;
  font-size: x-large;
  padding: 10px;
}