:root {
  --pink: #FB8EAB;
  --yellow: #FEF8B0;
  --blue: #315A88;
  --ink: #1b2c3d;
  --muted: #4b5b68;
  --bg: #fbfaf8;
  --line: #cbd6df;
  --white: #fff;
  font: 18px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; }
a { color: #244b79; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #ad355d; outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; background: white; padding: .5rem; z-index: 30; }
.skip:focus { left: 8px; }
.shell { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.site-header { background: var(--blue); color: white; }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; flex: none; }
.brand img { display: block; width: 142px; height: auto; max-height: 70px; object-fit: contain; border-radius: 10px; background: #fff7ed; }
.top-nav { display: flex; align-items: center; gap: .55rem; }
.top-nav > a, .top-nav summary { display: inline-block; color: white; border-radius: 9px; padding: .48rem .7rem; text-decoration: none; font-weight: 650; }
.top-nav > a:hover, .top-nav summary:hover { background: #ffffff25; }
.top-nav .header-register { background: white; color: var(--blue); }
.menu-dropdown { position: relative; }
.menu-dropdown summary { list-style: none; cursor: pointer; user-select: none; }
.menu-dropdown summary::-webkit-details-marker { display: none; }
.menu-dropdown summary::after { content: " ▾"; font-size: .85em; }
.menu-panel { position: absolute; right: 0; top: calc(100% + .35rem); z-index: 20; width: max-content; min-width: 215px; max-width: min(90vw, 330px); padding: .4rem; background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 28px #142b4030; }
.menu-panel a, .menu-panel button { display: block; width: 100%; padding: .65rem .75rem; border: 0; border-radius: 8px; color: var(--ink); background: transparent; text-align: left; text-decoration: none; font-weight: 600; }
.menu-panel a:hover, .menu-panel button:hover { background: #eef3f8; }
.menu-panel form { margin: 0; }
.workspace-bar { background: #eff3f7; border-bottom: 1px solid var(--line); }
.workspace-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; padding-block: .45rem; }
.workspace-nav > a, .workspace-nav summary { display: inline-block; padding: .55rem .75rem; color: var(--blue); text-decoration: none; border-radius: 9px; font-weight: 700; }
.workspace-nav > a:hover, .workspace-nav summary:hover { background: white; }
.workspace-nav [aria-current="page"] { background: white; box-shadow: inset 0 -3px var(--pink); }
.workspace-nav .more-menu { margin-left: auto; }
.workspace-nav .menu-panel { top: calc(100% + .2rem); }

main { min-height: 66vh; padding-block: 2rem 4rem; }
h1, h2, h3 { line-height: 1.22; margin: .1em 0 .55em; }
h1 { font: normal clamp(2rem, 4vw, 3.35rem)/1.13 Georgia, serif; letter-spacing: -.02em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: .5rem 0 1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; font-weight: 800; color: var(--blue); }
.pagehead { max-width: 780px; margin-bottom: 1.4rem; }
.pagehead p { max-width: 65ch; }
.pagehead .button { margin-top: .4rem; }
.lead { font-size: 1.08rem; color: #314457; }
.hint, small { font-size: .86rem; color: var(--muted); }
.muted { color: var(--muted); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .62rem 1.05rem; border: 2px solid var(--blue); border-radius: 10px; background: var(--blue); color: white; text-decoration: none; font-weight: 750; text-align: center; line-height: 1.3; }
.button:hover { background: #234569; color: white; }
.button.secondary { background: var(--pink); border-color: #a23c60; color: #142b40; }
.button.secondary:hover { background: #f77b9c; color: #142b40; }
.button.plain { background: white; color: var(--blue); }
.button.plain:hover { background: #eef3f8; }
.button.small { min-height: 42px; padding: .4rem .8rem; }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-block: 1rem; }
.text-link { font-weight: 700; }
.hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; padding: 2.4rem; background: var(--yellow); border-radius: 20px; }
.hero p { max-width: 60ch; }
.hero img { width: 100%; border-radius: 18px; }

.card { display: block; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem; margin-block: 1rem; overflow-wrap: anywhere; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-block: 1.4rem; }
.cards .card { margin: 0; }
.cards a.card, a.card { color: inherit; text-decoration: none; }
.cards a.card:hover, a.card:hover { border-color: var(--blue); box-shadow: 0 3px 12px #315a881c; }
a.card h2, a.card h3 { color: var(--blue); }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.columns > .card { margin: 0; }
.stack { display: grid; gap: .8rem; }
.stack > .card { margin: 0; }
.feature-card { border-left: 6px solid var(--pink); }
.next-step { background: var(--yellow); border-color: #d4c97d; }
.next-step h2 { margin-top: 0; }
.section-spaced { margin-top: 2.5rem; }
.soft-card { background: #fffdf5; border-color: #e7ddb0; }
.cost-note { background: var(--yellow); border-left: 5px solid var(--blue); border-radius: 8px; padding: .8rem 1rem; margin: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 1.8rem 0 .5rem; }
.section-head h2 { margin: 0; }
.simple-list { list-style: none; padding: 0; margin: 0; }
.simple-list li { padding: .72rem 0; border-bottom: 1px solid #e4e9ee; }
.simple-list li:last-child { border-bottom: 0; }
.simple-list a { font-weight: 650; }
.meta { color: var(--muted); font-size: .9rem; }
.pill { display: inline-block; padding: .12rem .6rem; margin-right: .3rem; border-radius: 999px; background: #eaf1f9; color: #26496e; font-size: .82rem; font-weight: 700; }
.pill.pink { background: #ffe4ec; color: #6c2240; }
.pill.yellow { background: var(--yellow); color: #4d4422; }
.empty-state { background: #fffdf5; border: 1px dashed #d6c98b; border-radius: 14px; padding: 1.2rem; }

.formpage { max-width: 700px; }
.form { display: grid; gap: 1rem; }
label { display: grid; gap: .35rem; font-weight: 650; }
.choice { display: flex; align-items: center; gap: .55rem; }
fieldset { border: 1px solid var(--line); border-radius: 10px; display: grid; gap: .5rem; }
legend { font-weight: 750; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { width: 100%; min-height: 48px; padding: .58rem .7rem; border: 1px solid #8699aa; border-radius: 8px; background: white; color: var(--ink); }
textarea { min-height: 125px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--blue); }
.search-row { display: flex; gap: .6rem; align-items: end; flex-wrap: wrap; }
.search-row label { flex: 1 1 250px; }
.search-row .button { flex: none; }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: end; }
.filters .button { justify-self: start; }
.disclosure { border: 1px solid var(--line); background: white; border-radius: 12px; padding: .8rem 1rem; margin-block: .8rem 1rem; }
.disclosure > summary { cursor: pointer; color: var(--blue); font-weight: 750; }
.disclosure[open] > summary { margin-bottom: 1rem; }
.disclosure .filters { padding-block: .5rem; }
.stage > summary { display: flex; align-items: center; gap: .8rem; list-style: none; min-height: 48px; }
.stage > summary::-webkit-details-marker { display: none; }
.stage > summary::after { content: 'Öffnen'; margin-left: auto; font-size: .84rem; }
.stage[open] > summary::after { content: 'Schließen'; }
.stage > summary small { display: block; margin-top: .2rem; font-weight: 500; }
.stage-number { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--blue); color: white; font-weight: 800; }
.view-tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-block: 1rem; }
.view-tabs a { display: inline-block; padding: .45rem .8rem; border-radius: 8px; font-weight: 700; text-decoration: none; }
.view-tabs a[aria-current="page"] { background: var(--blue); color: white; }
.record-card p:last-child { margin-bottom: 0; }
.record-card h2 { font-size: 1.18rem; margin-bottom: .35rem; }
.record-card .summary { color: var(--ink); }
.board-section { margin-top: 2rem; }
.comment { border-bottom: 1px solid var(--line); padding: .8rem 0; }
.inlineform { display: inline-block; margin: .4rem .3rem .4rem 0; }
.secret { font: 1rem/1.4 monospace; overflow-wrap: anywhere; }
.message { border-left: 5px solid var(--blue); background: #e7f0fa; padding: .7rem 1rem; border-radius: 6px; }
.message.error { border-color: #b54268; background: #fff0f4; }
.pagination { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-block: 1.5rem; }
.pagination span { color: var(--muted); }
.tablescroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 700px; }
th, td { border-bottom: 1px solid var(--line); padding: .6rem; text-align: left; }
th { background: #e8f0f9; }
footer { background: #e9f0f7; padding: 1.4rem 0; color: var(--muted); }
footer .shell { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer a { margin-right: 1rem; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; }
  .hero img { max-width: 320px; }
  .cards, .columns { grid-template-columns: 1fr; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 550px) {
  :root { font-size: 17px; }
  .shell { width: min(100% - 1.5rem, 1120px); }
  .header-inner { min-height: 70px; }
  .brand img { width: 104px; max-height: 54px; }
  .top-nav { gap: .15rem; }
  .top-nav > a, .top-nav summary { padding: .42rem .5rem; font-size: .9rem; }
  .workspace-nav { gap: .1rem; }
  .workspace-nav > a, .workspace-nav summary { padding: .42rem .48rem; font-size: .88rem; }
  .workspace-nav .more-menu { margin-left: 0; }
  .workspace-nav .menu-panel { right: 0; }
  main { padding-block: 1.5rem 3rem; }
  .hero { padding: 1.35rem; }
  .hero img { display: none; }
  .card { padding: 1.05rem; }
  .filters { grid-template-columns: 1fr; }
  .stage > summary { align-items: flex-start; }
  .search-row .button { width: 100%; }
}
