/* Base style aligned with maxsutter.de aesthetics: clean, neutral, typographic-first */

:root {
  --bg: #ffffff;
  --text: #0b0b0b;
  --muted: #6b7280;
  --border: #e5e7eb;
  --link-underline: rgba(0, 0, 0, 0.25);

  --container-max: 1000px;
  --content-max: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --text: #f5f5f5;
    --muted: #9ca3af;
    --border: #222;
    --link-underline: rgba(255, 255, 255, 0.35);
  }
}

/* Reset & base */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: inherit; }

html { color-scheme: light dark; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.7;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Layout helpers */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Top navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo a {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.9;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.hamburger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}

.hamburger span:nth-child(1) { top: 12px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 26px; }

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .hamburger { display: inline-block; }
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 20px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
}

/* Main content */
main.agb { padding: clamp(32px, 6vw, 80px) 0; }

.content-box {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 24px;
}

h1, h2, h3 { color: var(--text); }

h1 {
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-size: clamp(32px, 6vw, 52px);
  margin: 0 0 8px;
}

h2 {
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(22px, 3.2vw, 28px);
  margin: 40px 0 8px;
}

h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(18px, 2.4vw, 22px);
  margin: 24px 0 6px;
}

p { margin: 12px 0 0; }

b, strong { font-weight: 800; }

/* Links styled subtly */
 a { color: inherit; text-decoration-color: var(--link-underline); }

 a:hover { text-decoration-color: currentColor; }

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin: 6px 0 20px;
}

.lang-switcher .lang-label {
  font-size: 14px;
  color: var(--muted);
  user-select: none;
  cursor: pointer;
}

.lang-switcher .lang-label[data-active="true"] {
  color: var(--text);
  font-weight: 700;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.switch .slider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  width: 24px;
  height: 24px;
  background: var(--bg);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 50%;
  transform: translate(0, -50%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  transition: transform .22s cubic-bezier(.4,0,.2,1), background .2s ease, border-color .2s ease;
}

.switch input:checked + .slider {
  background: var(--text);
  border-color: var(--text);
}

.switch input:checked + .slider::before {
  transform: translate(20px, -50%);
  border-color: rgba(0,0,0,0.12);
}

.switch:focus-within .slider {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 24px 0;
}

.footer-content {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.8;
}

.footer-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
