:root{
  --topGap: 0px;
  --bg:#f4f7fb;
  --paper:#ffffff;
  --text:#0b1324;
  --muted:#42526b;

  --line: rgba(11,19,36,.10);

  --blue:#1f5fbf;
  --blueDeep:#123b86;

  --blueWash: rgba(31,95,191,.10);
  --blueWash2: rgba(31,95,191,.16);

  --shadow: 0 14px 40px rgba(2,6,23,.08);

  --radius:18px;
  --max:980px;
}

*{ box-sizing:border-box; }

/* FIX 1: Verhindert das "Springen", indem Platz für Scrollbar reserviert wird */
html {
  scrollbar-gutter: stable;
}

html, body{ min-height:100%; }

body{
  margin:0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);

  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(31,95,191,.14), transparent 55%),
    radial-gradient(900px 650px at 110% 12%, rgba(18,59,134,.10), transparent 60%),
    linear-gradient(180deg, #f7f9fd, var(--bg));
  background-attachment: fixed;

  line-height:1.55;
  letter-spacing:.01em;
  padding-top: var(--topGap);
}

/* short pages: keep footer at bottom without forcing scrollbars */
body.short-page{
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

body.short-page main.wrap{
  flex: 1;
}

body.short-page footer.wrap{
  margin-top: auto;
}

main.wrap{ flex: 1; }
footer.wrap{ margin-top: auto; }

a{ color:var(--blueDeep); text-decoration:none; }
a:hover{ text-decoration:underline; }

/* === GLOBAL PAGE WRAP (HOME = MASTER) === */
.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:28px 18px 80px;
  width: 100%;
}

/* === HEADER === */
header.wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;

  padding:16px 18px;
  background: rgba(255,255,255,.76);

  border:1px solid var(--line);
  border-radius:var(--radius);

  box-shadow: var(--shadow);
-webkit-backdrop-filter: blur(10px); /* Für Safari */
backdrop-filter: blur(10px);         /* Standard */

  position: static;
}

.brand{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:260px;
}
.brand strong{
  font-size:16px;
  font-weight:700;
  letter-spacing:.02em;
}
.brand span{
  font-size:13px;
  color:var(--muted);
}

/* === NAV === */
nav{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.tab{
  display:inline-block;
  border:1px solid transparent;
  padding:9px 12px;
  border-radius:14px;

  font-size:13px;
  color:var(--muted);
  background:transparent;

  cursor:pointer;
  transition: all .15s ease;
  user-select:none;
}

.tab:hover{
  background: var(--blueWash);
  color: var(--text);
  border-color: rgba(31,95,191,.18);
}

.tab[aria-current="page"],
.tab[aria-selected="true"]{
  background: var(--blueWash2);
  border-color: rgba(31,95,191,.28);
  color: var(--text);
}

/* === MAIN === */
main{ margin-top:22px; }

.panel{
  background: rgba(255,255,255,.84);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  padding:28px 24px;
-webkit-backdrop-filter: blur(8px);  /* Für Safari */
  backdrop-filter: blur(8px);   /* Für Standard  */
}

h1{
  margin:0;
  font-size:34px;
  line-height:1.08;
  letter-spacing:-.02em;
}

.lead{
  margin:0;
  color:var(--muted);
  font-size:16px;
  max-width:76ch;
}

p{ max-width:68ch; }

/* === HOME CARDS === */
.cardrow{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:14px;
}

.card{
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  background: rgba(255,255,255,.94);
}

.card h3{
  margin:0 0 6px;
  font-size:14px;
  font-weight:700;
}

.card p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

/* === DIVIDER === */
.divider{
  height:1px;
  background: linear-gradient(to right, transparent, rgba(11,19,36,.14), transparent);
  margin:18px 0;
}

/* === WORKSHOPS / BOXES === */
.boxgrid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  margin-top:14px;
}

.panel .panel{
  margin:0;
}

/* === NOTES / MICRO === */
.micro{
  margin-top:10px;
  font-size:12px;
  color:var(--muted);
}

.note{
  border-left:3px solid rgba(31,95,191,.55);
  padding-left:12px;
  color:var(--muted);
  font-size:13px;
  margin-top:14px;
  max-width:92ch;
}

/* === FOOTER === */
footer.wrap{
  padding-top:18px;
  padding-bottom:28px;

  margin-top:18px;
  color: rgba(66,82,107,.85);
  font-size:12px;
  text-align:center;

  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

footer.wrap a{ color: rgba(66,82,107,.85); }
footer.wrap a:hover{ color: var(--text); }

/* === RESPONSIVE === */
@media (max-width:740px){
  h1{ font-size:28px; }
  .cardrow{ grid-template-columns:1fr; }
}

@media (min-width: 741px){
  :root{ --topGap: 12px; }
}

/* FIX 2: Der "body.short-page header.wrap" Block wurde hier gelöscht */

/* === PROFILE IMAGE === */
.profile-pic {
  display: block;
  margin: 0 0 18px;
  /* Wir löschen width, height und border, damit es exakt wie vorher ist */
}

@media (max-width:740px){
  .profile-pic{
    width: 140px;
    height: 140px;
  }
}