/* ==========================================================
   swalther.de — Designsystem
   Papierkonzept: ein durchgehendes weißes Blatt auf grauem Grund
   ========================================================== */

:root{
  --canvas-bg: #8c8c8c;
  --paper-bg: #fdfdfc;
  --text-primary: #1a1a1a;
  --text-muted: #8c8c8c;
  --hairline: rgba(0, 0, 0, 0.12);
  --paper-max-width: 760px;
  --content-padding: clamp(1.25rem, 5vw, 4rem);
  --paper-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.22),
    0 10px 24px -12px rgba(0, 0, 0, 0.12);
}

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

html{
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

body{
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: var(--canvas-bg);
  padding: clamp(0.75rem, 4vw, 3rem) clamp(0.6rem, 4vw, 1.5rem);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.paper{
  position: relative;
  width: 100%;
  max-width: var(--paper-max-width);
  background: var(--paper-bg);
  box-shadow: var(--paper-shadow);
}

@media (max-width: 480px){
  body{ padding: 0.5rem; }
  .paper{
    box-shadow:
      0 14px 28px -16px rgba(0, 0, 0, 0.25),
      0 4px 10px -4px rgba(0, 0, 0, 0.1);
  }
}

/* ---------- Header ---------- */

.site-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.5rem, 5vw, 2.75rem) var(--content-padding) 0;
}

.logo{
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
}

.menu-toggle{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  margin: -10px;
  cursor: pointer;
}

.menu-line{
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
}

.menu-toggle:focus-visible,
a:focus-visible,
.scroll-hint:focus-visible{
  outline: 2px solid var(--text-primary);
  outline-offset: 4px;
}

.site-menu[hidden]{ display: none; }

.site-menu{
  position: absolute;
  top: clamp(4.25rem, 11vw, 5.5rem);
  right: var(--content-padding);
  z-index: 10;
  background: var(--paper-bg);
  box-shadow:
    0 20px 40px -16px rgba(0, 0, 0, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1rem 1.5rem;
}

.site-menu ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-menu a{
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-menu a:hover,
.site-menu a:focus-visible{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Hero ---------- */

.hero{
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--content-padding) clamp(1.5rem, 5vh, 3rem);
}

.hero-text{
  margin-top: clamp(3rem, 15vh, 8.5rem);
}

h1{
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.claim{
  margin: 0.5rem 0 0;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 400;
  color: var(--text-muted);
}

.house{
  display: block;
  width: min(52%, 300px);
  height: auto;
  color: var(--text-primary);
  margin: clamp(2.5rem, 11vh, 6.5rem) auto 0;
}

.scroll-hint{
  margin: clamp(2.5rem, 12vh, 7rem) auto 0;
  display: flex;
  color: var(--text-muted);
  text-decoration: none;
}

.scroll-hint:hover,
.scroll-hint:focus-visible{
  color: var(--text-primary);
}

/* ---------- Whitespace ---------- */

.whitespace{
  height: clamp(22rem, 72vh, 48rem);
}

/* ---------- Projects ---------- */

.projects{
  padding: 0 var(--content-padding) clamp(3rem, 8vh, 5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 8vh, 4rem);
}

.project-group h2{
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.project-group h2 a{
  color: inherit;
  text-decoration: none;
}

.project-group h2 a:hover,
.project-group h2 a:focus-visible{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reg{
  font-size: 0.7em;
  vertical-align: super;
}

.project-sub{
  margin: 0.4rem 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.project-links{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-links a{
  font-size: 0.95rem;
  color: var(--text-primary);
  text-decoration: none;
}

.project-links a:hover,
.project-links a:focus-visible{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */

.site-footer{
  border-top: 1px solid var(--hairline);
  margin: clamp(3rem, 10vh, 6rem) var(--content-padding) 0;
  padding: clamp(1.25rem, 4vh, 2rem) 0 clamp(2rem, 6vh, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.site-footer p{ margin: 0; }

.site-footer nav{
  display: flex;
  gap: 1rem;
}

.site-footer a{
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible{
  color: var(--text-primary);
  text-decoration: underline;
}

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */

.legal-main{
  padding: clamp(2rem, 8vh, 4rem) var(--content-padding) clamp(2rem, 6vh, 3rem);
}

.legal-main h1{
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin: 0 0 1.5rem;
}

.legal-main h2{
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 2rem 0 0.75rem;
}

.legal-main p,
.legal-main li{
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 60ch;
}

.legal-main .todo{
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.8rem;
  color: #a05a00;
  background: #fff4e5;
}

.back-link{
  display: inline-block;
  margin: clamp(1.5rem, 5vh, 2.5rem) var(--content-padding) 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible{
  color: var(--text-primary);
  text-decoration: underline;
}
