:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --ring:rgba(15,23,42,.10);
  --line:rgba(15,23,42,.10);
  --shadow: 0 12px 30px rgba(2,6,23,.10);
  --radius: 18px;
  --pad: clamp(18px, 2.2vw, 28px);
  --max: 1100px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(59,130,246,.12), transparent 60%),
    radial-gradient(900px 600px at 80% 20%, rgba(16,185,129,.10), transparent 60%),
    var(--bg);
}

a{color:inherit; text-decoration:none}
a:hover{text-decoration:underline}

/* Wrapper für Profile */
.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding: clamp(22px, 3.2vw, 44px) 16px 60px;
}

/* Optional: Landing zentriert */
.landing-wrap{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}

header{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  margin-bottom:18px;
}

.title h1{
  margin:0;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing:-.02em;
}
.title p{
  margin:8px 0 0 0;
  color:var(--muted);
  font-size:14px;
}

/* Grid – bewährtes Layout (wie im funktionierenden Pete-Backup) */
.grid{
  margin-top:16px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  align-items:start;
}

@media (max-width: 860px){
  .grid{
    grid-template-columns:1fr;
  }
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  color:inherit;
  position:relative;
  display:flex;
  flex-direction:column;
}

.card .inner{ padding: var(--pad); }

h1,h2{ letter-spacing:-.01em; }

h2{
  margin:0 0 14px;
  font-size:14px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#374151;
}

p{margin:0 0 12px; line-height:1.55}
ul{margin:0; padding-left:18px}
li{margin:6px 0}

.muted{color:var(--muted)}

.divider{
  height:1px;
  background:var(--line);
  margin:14px 0;
}

.pillbar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.pill{
  font-size:12px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(15,23,42,.03);
  color: rgba(15,23,42,.85);
  white-space:nowrap;
}

footer{
  margin-top:14px;
  color:var(--muted);
  font-size:12px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* ---------- Profile-Layout ---------- */

.hero{
  display:grid;
  grid-template-columns: 1.35fr .9fr;
  gap:16px;
  align-items:stretch;
}

.profile{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap:14px;
  align-items:center;
}

.avatar{
  width:120px;
  height:120px;
  border-radius:18px;
  border:1px solid var(--line);
  background:#e5e7eb;
  overflow:hidden;
  box-shadow: 0 6px 18px rgba(17,24,39,.10);
}

.avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.kv{
  margin:0;
  display:grid;
  grid-template-columns: 160px 1fr;
  gap:8px 12px;
  font-size:14px;
}

.k{color:var(--muted)}
.v{color:var(--text); font-weight:600}

.crumbs{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
}

.crumbs a{ text-decoration:none; }
.crumbs a:hover{ text-decoration:underline; }

.brandmark{
  width:22px;
  height:22px;
  border-radius:6px;
  display:block;
}

/* Bilder grundsätzlich responsiv */
img{
  max-width:100%;
  height:auto;
  display:block;
}

/* Video / Intro (ohne Cropping, begrenzte Höhe) */
.introvid{
  width:100%;
  max-height: 420px;
  object-fit: contain;
  display:block;
  border-radius:16px;
  background:#000;
  outline:none;
}

/* Gallery: gleich hohe Kacheln */
.gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
.gallery img{
  width:100%;
  height: 220px;
  object-fit: cover;
  border-radius:14px;
  border:1px solid var(--line);
}
@media (max-width: 860px){
  .hero{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: 1fr; }
  .gallery img{ height: 240px; }
}