/*
  Radeln gegen Blutkrebs
  SPDX-FileCopyrightText: (c) 2026 Radeln gegen Blutkrebs
  Webpraesenz: Benjamin Bruhn
*/
:root {
  --bg:            #fbfaf6;
  --surface:       #ffffff;
  --ink:           #1c2b23;
  --ink-soft:      #55635b;

  --ink-faint:     #6b766f;
  --accent:        #1f6b45;
  --accent-bright: #2d8a5c;
  --warm:          #c05f2c;
  --line:          #e4e1d7;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans",
               "Helvetica Neue", Arial, sans-serif;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
               "Liberation Serif", "DejaVu Serif", serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

svg, img { display: block; }

.mark {
  width: auto;
  height: clamp(52px, 11vw, 78px);
}

.donate {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .5rem;
  padding: .72rem 1.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: .97rem;
  text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}

.donate:hover,
.donate:focus-visible {
  background: var(--accent-bright);
  transform: translateY(-1px);
}

.donate svg {
  width: 15px;
  height: 15px;
}

.social {
  display: flex;
  gap: .7rem;
  margin-top: .6rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-soft);
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}

.social a:hover,
.social a:focus-visible {
  color: var(--accent);
  border-color: var(--accent-bright);
  transform: translateY(-2px);
}

.social svg {
  width: 21px;
  height: 21px;
}

:focus-visible {
  background: var(--accent-bright);
  transform: translateY(-1px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

footer {
  text-align: center;
  font-size: .82rem;
  color: var(--ink-faint);
}

footer .credit {
  margin-top: .2rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
  }
}

.bar { display: none; }

html[data-area="internal"] .bar,
html[data-signed-in] .bar {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1rem;
  padding: .6rem clamp(1rem, 4vw, 2rem);
  background: var(--ink);
  color: #fff;
  font-size: .85rem;
}

.bar__tag {
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .72rem;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}

.bar__who {
  color: rgba(255, 255, 255, .62);
}

.bar__nav {
  margin-inline-start: auto;
  display: flex;
  gap: .35rem;
  background: rgba(255, 255, 255, .12);
  border-radius: 999px;
  padding: .18rem;
}

.bar__nav a {
  padding: .3rem .8rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  white-space: nowrap;
}

.bar__nav a:hover { color: #fff; }

.bar__nav a[aria-current="page"] {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}

.bar__out {
  color: rgba(255, 255, 255, .62);
  text-decoration: none;
}
.bar__out:hover { color: #fff; }
