@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("marke/ibm-plex-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("marke/ibm-plex-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #1E2227;
  --petrol: #2586A7;
  --flaeche: #A0C1CD;
  --soft: #EEF4F6;
  --line: #DCE3E6;
  --muted: #5A646D;
  --bg: #FFFFFF;
  --danger: #B3261E;
  --radius: 10px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
/* Room for the scroll bar is always kept, so a page does not shift sideways when it gets long enough to scroll. */
html { scrollbar-gutter: stable; }
body { font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--petrol); }
h1 { font-size: 1.55rem; line-height: 1.25; margin: 0 0 .5rem; font-weight: 600; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; font-weight: 600; }
h3 { font-size: .95rem; margin: 0 0 .4rem; font-weight: 600; }
p { margin: 0 0 .9rem; }
code, pre, .mono { font-family: var(--mono); font-size: .86em; }
pre { background: var(--soft); border-radius: 8px; padding: .75rem .9rem; overflow-x: auto; white-space: pre-wrap; word-break: break-word; margin: .4rem 0 .9rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.bar { background: var(--ink); color: #fff; display: flex; align-items: center; gap: 1.25rem; padding: 0 1.25rem; height: 56px; }
.bar .brand { display: flex; align-items: center; }
/* On a narrow screen the links scroll sideways instead of pushing the page wider. */
.bar nav { display: flex; gap: .25rem; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.bar nav::-webkit-scrollbar { display: none; }
.bar nav a { flex: none; white-space: nowrap; color: #fff; opacity: .75; text-decoration: none; padding: .45rem .7rem; border-radius: 8px; font-weight: 500; }
.bar nav a:hover { opacity: 1; }
.bar nav a.active { opacity: 1; background: rgba(255,255,255,.1); }
.bar .who { font-size: .85rem; opacity: .8; display: flex; gap: .75rem; align-items: center; }
.bar .who button { background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; padding: .3rem .7rem; border-radius: 8px; font: inherit; cursor: pointer; }
/* The address leads to the account page; on a phone it says "Account" instead. */
.bar .who a { color: #fff; text-decoration: none; white-space: nowrap; }
.bar .who a:hover, .bar .who a.active { text-decoration: underline; }
.bar .who .who-short { display: none; }

main { max-width: 980px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.narrow main, main.card-page { max-width: 460px; margin: 8vh auto; padding: 2rem; border: 1px solid var(--line); border-radius: 14px; }
.narrow main form { margin: 1rem 0; }

button, .button { font: inherit; font-weight: 600; border-radius: 9px; padding: .55rem 1rem; cursor: pointer; border: 1px solid var(--petrol); background: #fff; color: var(--petrol); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
button.primary, .button.primary { background: var(--petrol); color: #fff; }
button.ghost { border-color: var(--line); color: var(--ink); }
button.danger { border-color: var(--danger); color: var(--danger); }
button:disabled { opacity: .5; cursor: default; }
button.small, .button.small { padding: .3rem .65rem; font-size: .85rem; }
input, textarea, select { font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; padding: .55rem .75rem; width: 100%; background: #fff; }
input:focus, textarea:focus { outline: 2px solid var(--petrol); outline-offset: -1px; border-color: var(--petrol); }
/* A checkbox with its text on one line (accepting the terms on the plan page). */
label.check { display: flex; gap: .55rem; align-items: center; cursor: pointer; }
label.check input { width: auto; margin: 0; padding: 0; flex: none; }
label { display: block; font-weight: 500; margin: .8rem 0 .3rem; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.row > input { flex: 1; min-width: 12rem; }
.stack > * + * { margin-top: .6rem; }

.section { margin: 2rem 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; background: #fff; }
a.card { color: inherit; text-decoration: none; display: block; }
a.card:hover { border-color: var(--petrol); }
.card .url { color: var(--muted); font-size: .85rem; word-break: break-all; }
.badges { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; }
.badge { font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: 99px; background: var(--soft); color: var(--ink); }
.badge.work { background: var(--flaeche); }
.badge.live { background: #E3F1F6; color: var(--petrol); }
.chip { display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 99px; padding: .25rem .4rem .25rem .75rem; font-size: .88rem; }
.chip button { border: none; padding: 0 .35rem; color: var(--muted); font-size: 1rem; line-height: 1; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .7rem; }
.chip .warn { color: #8A5A00; }
.share-link { display: inline-block; max-width: 100%; overflow-wrap: anywhere; background: var(--soft, #EEF4F6); border-radius: 8px; padding: .45rem .7rem; font-size: 1rem; user-select: all; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.5rem; color: var(--muted); }

.request { border: 1px solid var(--line); border-left: 4px solid var(--flaeche); border-radius: 0 var(--radius) var(--radius) 0; padding: .85rem 1rem; }
.request.accepted { border-left-color: var(--petrol); }
.request.done, .request.declined { border-left-color: var(--line); opacity: .75; }
.request .text { font-size: 1rem; margin: .2rem 0 .4rem; white-space: pre-wrap; }
.request .meta { color: var(--muted); font-size: .82rem; }
.request .actions { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.filters { display: flex; gap: .35rem; flex-wrap: wrap; }
.filters button { border-color: var(--line); color: var(--ink); font-weight: 500; }
.filters button.on { border-color: var(--petrol); background: var(--soft); color: var(--petrol); }

table.versions, table.problems { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.versions td, table.problems td { border-top: 1px solid var(--line); padding: .5rem .3rem; vertical-align: top; }
table.problems td:first-child { width: 1%; white-space: nowrap; }
/* Server code of an app (Stufe 2): usage of the month, secrets, webhooks, schedules, "talks to". */
.server h3 { margin: 1.3rem 0 .2rem; font-size: 1rem; }
.server form.row { margin-top: .7rem; }
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: .5rem 1.6rem; margin-top: .6rem; }
.use-head { display: flex; justify-content: space-between; gap: .6rem; font-size: .88rem; white-space: nowrap; }
.use-head span:last-child { overflow: hidden; text-overflow: ellipsis; }
table.server-table { width: 100%; border-collapse: collapse; font-size: .9rem; table-layout: fixed; margin-top: .4rem; }
table.server-table td { border-top: 1px solid var(--line); padding: .45rem .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.server-table td:first-child { width: 28%; }
table.server-table .clip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The two DNS records of an own address: type, name, value, copy. */
table.server-table.domain-records td:first-child { width: 4.5rem; }
table.server-table.domain-records td:last-child { width: 5rem; }
@media (max-width: 640px) {
  /* On a phone each row becomes a small block: nothing is cut off. */
  table.server-table, table.server-table tbody, table.server-table tr, table.server-table td { display: block; width: auto !important; }
  table.server-table tr { border-top: 1px solid var(--line); padding: .35rem 0; }
  table.server-table td { border: 0; padding: .1rem .3rem; text-align: left !important; }
}
.notice { background: var(--soft); border-radius: var(--radius); padding: .8rem 1rem; }
.error { color: var(--danger); }
.toast { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 9px; font-size: .9rem; }
.mail { border-bottom: 1px solid var(--line); padding: .8rem 0; }
.code-input { font-family: var(--mono); font-size: 1.4rem; letter-spacing: .35em; text-align: center; }
.big-code { font-family: var(--mono); font-size: 1.6rem; letter-spacing: .15em; text-align: center; background: var(--soft); border-radius: 10px; padding: .8rem; margin: 1rem 0; }
input.big-code { margin: .2rem 0 1rem; text-transform: uppercase; }
input.big-code::placeholder { color: var(--muted); opacity: .55; }
.divider { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .85rem; margin: 1.2rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.google { width: 100%; justify-content: center; gap: .6rem; border-color: var(--line); color: var(--ink); }
.google::before { content: ""; flex: none; width: 18px; height: 18px; background: url("marke/google-g.svg") center / contain no-repeat; }
.full { width: 100%; justify-content: center; }

@media (max-width: 640px) {
  .bar { gap: .6rem; padding: 0 .8rem; }
  .bar .who .who-mail { display: none; }
  .bar .who .who-short { display: inline; }
  .bar nav a { padding: .4rem .45rem; }
  main { padding: 1.25rem 1rem 3rem; }
  .narrow main, main.card-page { margin: 4vh 1rem; padding: 1.4rem; }
}

/* Imprint and privacy */
.legal h2 { margin: 1.6rem 0 .4rem; }
.legal p, .legal li { line-height: 1.6; }

/* Admin overview */
.admin-tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin: .2rem 0 1.2rem; border-bottom: 1px solid var(--line); }
.admin-tabs a { padding: .5rem .8rem; color: var(--muted, #5A646D); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; font-size: .92rem; }
.admin-tabs a.active { color: var(--petrol); border-bottom-color: var(--petrol); }
.stat .big { font-size: 1.6rem; font-weight: 600; margin: .15rem 0; }
/* A small progress bar (not .bar: that is the dark header of every page). */
.meter { display: block; height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; margin: .3rem 0; }
.meter i { display: block; height: 100%; background: var(--petrol); }
.meter.high i { background: #C77C02; }
.meter.full i { background: #B42318; }
.scroll { overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
table.admin-table th { text-align: left; font-size: .78rem; color: var(--muted, #5A646D); padding: .45rem .4rem; border-bottom: 1px solid var(--line); cursor: pointer; white-space: nowrap; user-select: none; }
table.admin-table th[data-dir="asc"]::after { content: " \25B2"; }
table.admin-table th[data-dir="desc"]::after { content: " \25BC"; }
table.admin-table td { border-top: 1px solid var(--line); padding: .45rem .4rem; vertical-align: top; }
input.filter { margin: 0 0 .6rem; max-width: 320px; }
.days { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.days .day { position: relative; flex: 1; height: 100%; min-width: 4px; }
.days .day span { position: absolute; bottom: 0; left: 0; right: 0; border-radius: 3px 3px 0 0; }
.days .day .all { background: var(--flaeche); }
.days .day .ok { background: var(--petrol); }
