/* hamcloud-Portal */
:root {
  --paper: #eef2f5; --surface: #fff; --ink: #16212b; --muted: #586673; --line: #d3dae0;
  --primary: #0b5c8c; --primary-dk: #084a71; --accent: #e9a200; --bar: #16212b; --bar-ink: #eef2f5;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #10161c; --surface: #18212a; --ink: #e7ecf0; --muted: #9ba8b4; --line: #2b3743; --primary: #6fb7e9; --primary-dk: #4e9fd6; --bar: #0b1015; }
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px 3rem; }
a { color: var(--primary); }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .8rem; }
h2 { font-size: 1.15rem; margin: 0 0 .4rem; }
.muted { color: var(--muted); }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 16px; background: var(--bar); color: var(--bar-ink); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: inherit; text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.brand img { background: #fff; border-radius: 8px; padding: 3px; }
.brand b { color: var(--accent); }
.bar nav { display: flex; align-items: center; gap: .9rem; }
.bar form { margin: 0; }
.who { font-weight: 600; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.lnk { color: var(--bar-ink); background: none; border: 0; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }

.btn { display: inline-block; background: var(--primary); color: #fff; border: 0; border-radius: 8px; padding: .65rem 1.2rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--primary-dk); }
.btn.small { padding: .4rem .9rem; }
.btn.ghost { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.bar .btn.small { background: var(--accent); color: #16212b; }

.hero { margin: 0 calc(50% - 50vw); padding: 3.5rem max(16px, calc(50vw - 534px)) 4.5rem; background: radial-gradient(900px 380px at 70% -20%, rgba(11,92,140,.55), transparent 70%), var(--bar); color: var(--bar-ink); }
.hero-in { max-width: 1100px; margin: 0 auto; }
.hero h1 { max-width: 20ch; }
.lead { font-size: 1.15rem; max-width: 60ch; color: #c6d2dc; }
.cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero .btn.ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.note { display: inline-block; background: rgba(233,162,0,.18); color: #f6d58a; border-radius: 6px; padding: .3rem .7rem; }

.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: -2.2rem; }
.welcome + .tools, .tools:first-child { margin-top: 1rem; }
.tool { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem; color: inherit; text-decoration: none; box-shadow: 0 8px 24px rgba(15,23,42,.07); transition: transform .12s, box-shadow .12s, border-color .12s; }
.tool p { color: var(--muted); flex: 1; margin: 0 0 .8rem; }
.tool.open:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15,23,42,.12); border-color: var(--primary); }
.tool.hl { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(233,162,0,.35); }
.ico { width: 46px; height: 46px; border-radius: 10px; background: rgba(11,92,140,.1); color: var(--primary); display: grid; place-items: center; margin-bottom: .8rem; }
.ico svg { width: 26px; height: 26px; }
.more { font-weight: 600; color: var(--primary); text-decoration: none; }

.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.how div { display: flex; gap: .8rem; align-items: center; }
.how b { flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: #16212b; display: grid; place-items: center; }

.welcome { padding: 2.5rem 0 .5rem; }
.welcome.narrow { max-width: 40rem; }
.call { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .7em; background: var(--accent); color: #16212b; border-radius: 6px; padding: .1em .45em; vertical-align: middle; }
.account { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; padding: 1.2rem 1.3rem; border: 1px dashed var(--line); border-radius: 12px; }
.account p { margin: 0; max-width: 60ch; }

.foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 16px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }

/* Rechtstexte */
.legal { max-width: 48rem; padding: 2.5rem 0 1rem; }
.legal h1 { font-size: 2rem; }
.legal h2 { margin-top: 1.8rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .45rem; }
.legal code { font-size: .85em; }
