:root{
  --bg: #fafafa;
  --fg: #222;
  --muted: #6b6b6b;
  --accent: #FF7262;     /* CV-Orange */
  --accent-hover:#e05b4c;
  --card:#ffffff;
  --ring: rgba(255,114,98,.35);
}

@media (prefers-color-scheme: dark){
  :root{
    --bg:#111;
    --fg:#eaeaea;
    --muted:#b7b7b7;
    --card:#161616;
    --ring: rgba(255,114,98,.5);
  }
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Poppins",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--fg);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* Layout */
.wrap{
  min-height:100dvh;
  display:grid;
  place-items:center;
  padding: clamp(24px, 4vw, 56px);
}

.header{ text-align:center; margin-bottom:8px; }
h1{
  font-size:clamp(28px, 5vw, 44px);
  line-height:1.1;
  margin:0 0 6px;
  font-weight:700;
}
.tagline{
  margin:0;
  color:var(--muted);
  font-weight:600;
  letter-spacing:.2px;
  font-size:clamp(16px, 2.8vw, 20px);
}

/* About-Text auf der Startseite */
.about{
  max-width: 720px;
  margin: 18px auto 26px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--fg);
  text-align: center;
}

/* CTA-Buttons */
.actions{
  margin-top:22px;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
}
.btn{
  --pad: 14px 18px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:var(--pad);
  border-radius:12px;
  text-decoration:none;
  font-weight:600;
  font-size:16px;
  border:2px solid transparent;
  transition: transform .04s ease, background .15s ease, border-color .15s ease;
  box-shadow: 0 0 0 0 var(--ring);
}
.btn:active{ transform: translateY(1px); }
.btn:focus-visible{
  outline:none;
  box-shadow: 0 0 0 6px var(--ring);
}
.btn-primary{ background:var(--accent); color:#fff; }
.btn-primary:hover{ background:var(--accent-hover); }
.btn-ghost{
  background:transparent;
  border-color:var(--accent);
  color:var(--accent);
}
.btn-ghost:hover{
  background: color-mix(in oklab, var(--accent) 9%, transparent);
}

/* Kontakt-/Meta-Zeile */
.meta{
  margin-top:18px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}
.link{
  color:inherit;
  text-decoration: none;
  border-bottom:1px solid color-mix(in oklab, var(--muted) 35%, transparent);
}
.link:hover{ color:var(--fg); border-bottom-color:var(--fg); }
.dot{ opacity:.6 }

.foot{
  margin-top:26px;
  color:var(--muted);
  text-align:center;
  font-size:13px;
}

/* ---------- Portfolio-Seite ---------- */

/* Subheadline dezenter */
.subtag{
  margin:6px 0 0;
  color:var(--muted);
  font-weight:400;
  font-size:clamp(14px, 2.4vw, 16px);
}

/* Vertikale Liste der Cases mit Luft */
.stack{
  display:flex;
  flex-direction:column;
  gap:36px;
  width:min(980px, 100%);
  margin-top:22px;
}

/* Case-Karte */
.case{
  background:var(--card);
  border:1px solid color-mix(in oklab, var(--muted) 18%, transparent);
  border-radius:16px;
  padding:20px;
  box-shadow: 0 6px 26px rgba(0,0,0,.04);
}
.case h2{ margin:0 0 6px; font-size: clamp(18px, 3.6vw, 24px); }
.case-meta{ margin:0 0 14px; color:var(--muted); }

/* Aktionen: Primary + Link */
.case-actions{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.btn-narrow{
  max-width:280px;
  justify-content:center;
}
.link-accent{
  color: var(--accent);
  font-weight:600;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
}
.link-accent:hover{
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

/* Footer zentriert auf Portfolio */
.foot-center{ text-align:center; margin-top:32px; }

/* Mobile: Buttons blockig */
@media (max-width:480px){
  .actions{ flex-direction:column }
  .btn{ justify-content:center; width:100% }
}
