:root {
  --bg: #f4f6fa;
  --text: #1c2a3f;
  --muted: #5a6a82;
  --glass-solid: #ffffff;
  --glass: rgba(255, 255, 255, .72);
  --glass-border: rgba(255, 255, 255, .9);
  --shadow: 0 20px 50px -22px rgba(25, 45, 80, .35);
  --c1: #1f3a68;
  --c2: #3f6aa8;
  --c3: #b08d57;
  --grad: linear-gradient(135deg, var(--c1), var(--c2));
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1724;
    --text: #e9eef7;
    --muted: #9aa9c0;
    --glass-solid: #17233a;
    --glass: rgba(26, 40, 66, .6);
    --glass-border: rgba(255, 255, 255, .08);
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
    --c1: #6f9be0;
    --c2: #4b78bd;
    --c3: #c9a66b;
    --grad: linear-gradient(135deg, #5d8bd0, #3b64a3);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 1.08rem/1.75 system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

/* weich schwebende Farbflächen im Hintergrund */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blobs span {
  position: absolute;
  width: 40rem; height: 40rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .22;
  animation: float 22s ease-in-out infinite alternate;
}
.blobs span:nth-child(1) { background: var(--c1); top: -12rem; left: -10rem; }
.blobs span:nth-child(2) { background: var(--c3); bottom: -14rem; right: -8rem; animation-delay: -8s; }
.blobs span:nth-child(3) { background: var(--c2); top: 40%; left: 45%; width: 28rem; height: 28rem; animation-delay: -14s; opacity: .15; }
@keyframes float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6rem, 4rem) scale(1.18); }
}

/* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 28rem);
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  padding: 3rem 1.5rem 5rem;
  position: relative;
}
.portrait {
  margin: 0; position: relative; justify-self: end;
  width: 100%;
  padding-top: 2.5rem;           /* Kopf darf leicht über die Karte ragen */
}
.portrait::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 6rem; bottom: 0;
  border-radius: 1.5rem;
  background: var(--grad);
  box-shadow: var(--shadow);
}
.portrait::after {
  content: "";
  position: absolute; left: -.9rem; bottom: -.9rem;
  width: 4.5rem; height: 4.5rem;
  border-left: 3px solid var(--c3); border-bottom: 3px solid var(--c3);
  border-radius: 0 0 0 1.5rem;
}
.portrait img {
  position: relative; z-index: 1;
  display: block; width: 100%; height: auto;
  /* Beine laufen sanft aus, kein harter Bildschnitt */
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  animation: rise 1s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(1.5rem); } }
.intro { animation: rise 1s .15s ease both; }
.hello {
  margin: 0 0 .4rem; color: var(--c3);
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem;
}
h1 {
  margin: 0;
  font: 700 clamp(2.8rem, 7vw, 4.6rem)/1.05 var(--serif);
  color: var(--text);
}
.lead { max-width: 28rem; margin: 1.2rem 0 2rem; color: var(--muted); font-size: 1.15rem; }
@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; padding-top: 2rem; }
  .portrait { justify-self: center; width: min(15rem, 70%); padding-top: 2rem; }
  .lead { margin-inline: auto; }
}

.btn {
  display: inline-block;
  letter-spacing: .02em;
  padding: .85rem 1.8rem;
  border-radius: 3rem;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 25px -12px var(--c1);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover, .btn:focus-visible { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 30px -12px var(--c1); }

.scroll {
  position: absolute; bottom: 1.5rem;
  color: var(--muted); text-decoration: none; font-size: 1.6rem;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(.5rem); } }

/* Inhaltsblöcke */
main { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem 2rem; display: grid; gap: 1.75rem; }
.panel, .card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 1.75rem;
  padding: 2rem 2rem 1.6rem;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  transition: transform .3s, box-shadow .3s;
}
.panel:hover { transform: translateY(-4px); }
.panel h2 {
  margin: 0 0 1rem;
  font: 600 1.7rem var(--serif);
  display: flex; align-items: baseline; gap: .8rem;
}
.panel h2 span {
  font: 600 .85rem system-ui, sans-serif;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.panel p { margin: 0 0 1rem; }
.panel strong { font-weight: 600; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1rem; }
.chips li {
  padding: .3rem .95rem;
  border-radius: 2rem;
  font-size: .95rem;
  border: 1px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box;
}

.contact { text-align: center; }
.contact h2 { justify-content: center; }

footer { text-align: center; padding: 1rem 1rem 2.5rem; }
footer a { color: var(--muted); font-size: .9rem; }

/* Einblend-Animation beim Scrollen */
.js .reveal { opacity: 0; transform: translateY(2rem); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Impressum */
.card { max-width: 36rem; margin: 3rem auto; }
.card h1 { font-size: 2.4rem; }
.card a { color: var(--c2); }
.card h1 { background: none; -webkit-text-fill-color: currentColor; animation: none; }

@media (max-width: 34rem) {
  .panel { padding: 1.5rem 1.25rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
