:root{
  --bg:#f4f7fb;
  --surface:#ffffff;
  --surface-2:#f8fbff;
  --text:#102033;
  --muted:#5e7188;
  --primary:#164a7a;
  --primary-2:#0f7c86;
  --accent:#ffc857;
  --line:#dbe6f0;
  --shadow:0 18px 45px rgba(17,42,77,.11);
  --shadow-soft:0 10px 30px rgba(17,42,77,.08);
  --radius:24px;
  --radius-sm:16px;
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left,rgba(22,74,122,.14),transparent 32rem),
    linear-gradient(180deg,#fff 0%,var(--bg) 34rem,var(--bg) 100%);
  line-height:1.65;
  overflow-x:hidden;
}
a{color:var(--primary-2);text-decoration:none;font-weight:650}
a:hover{text-decoration:underline}
img,video,iframe{max-width:100%;height:auto}
.skip-link{position:absolute;left:-999px;top:1rem;background:#fff;color:var(--primary);padding:.7rem 1rem;border-radius:999px;z-index:1000;box-shadow:var(--shadow)}
.skip-link:focus{left:1rem}
.site-header{
  position:sticky;top:0;z-index:50;
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  width:min(calc(100% - 24px),var(--max));
  margin:12px auto 0;
  padding:10px 12px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(219,230,240,.85);
  border-radius:999px;
  backdrop-filter:blur(18px);
  box-shadow:0 12px 36px rgba(17,42,77,.08);
}
.brand{display:flex;align-items:center;gap:.75rem;color:var(--text);text-decoration:none;min-width:0}
.brand:hover{text-decoration:none}
.brand-mark{
  width:44px;height:44px;display:grid;place-items:center;flex:0 0 auto;
  border-radius:15px;background:linear-gradient(135deg,var(--primary),var(--primary-2));
  color:#fff;font-weight:900;letter-spacing:-.05em;box-shadow:0 10px 22px rgba(15,124,134,.28)
}
.brand-text{display:grid;line-height:1.05}
.brand-text strong{font-size:1rem;white-space:nowrap}
.brand-text small{color:var(--muted);font-weight:650;font-size:.75rem;margin-top:.18rem;white-space:nowrap}
.site-nav{display:flex;align-items:center;gap:.2rem;flex-wrap:wrap;justify-content:flex-end}
.site-nav a{color:var(--text);padding:.62rem .82rem;border-radius:999px;font-size:.92rem;font-weight:760;text-decoration:none}
.site-nav a:hover{background:var(--surface-2);text-decoration:none}
.site-nav a.active{background:var(--primary);color:#fff;box-shadow:0 8px 22px rgba(22,74,122,.25)}
.nav-toggle{display:none;background:var(--primary);color:#fff;border:0;border-radius:999px;padding:.72rem .9rem;align-items:center;gap:.25rem;font-weight:800;cursor:pointer}
.nav-toggle span{display:block;width:16px;height:2px;background:#fff;border-radius:10px;margin:2px 0}.nav-toggle b{font-size:.85rem;margin-left:.25rem}
.hero{position:relative;padding:72px 18px 42px;overflow:hidden}
.hero-bg{position:absolute;inset:0;background:linear-gradient(120deg,rgba(22,74,122,.08),rgba(15,124,134,.1) 48%,rgba(255,200,87,.12));clip-path:polygon(0 0,100% 0,100% 78%,0 100%);z-index:-1}
.hero-inner{width:min(100%,var(--max));margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px;align-items:end}
.eyebrow{display:inline-flex;margin:0 0 .65rem;padding:.38rem .75rem;border:1px solid rgba(22,74,122,.18);border-radius:999px;background:rgba(255,255,255,.7);color:var(--primary);font-weight:850;font-size:.82rem;letter-spacing:.02em;text-transform:uppercase}
.hero h1{font-size:clamp(2.4rem,6vw,5.2rem);line-height:.95;letter-spacing:-.07em;margin:.1rem 0 .8rem;color:#0c2339}
.hero-copy>p:last-child{max-width:760px;margin:0;color:var(--muted);font-size:clamp(1.05rem,2vw,1.24rem);font-weight:560}
.hero-card{background:rgba(255,255,255,.78);border:1px solid rgba(255,255,255,.85);box-shadow:var(--shadow);border-radius:var(--radius);padding:1.2rem;backdrop-filter:blur(16px)}
.hero-card span{display:inline-flex;color:var(--primary-2);font-weight:850;font-size:.83rem;text-transform:uppercase;letter-spacing:.04em}.hero-card strong{display:block;font-size:1.1rem;margin:.2rem 0}.hero-card p{margin:.1rem 0 0;color:var(--muted)}
.page-shell{width:min(calc(100% - 28px),var(--max));margin:0 auto 64px}.content-page{display:grid;gap:22px}.content-tools{display:flex;gap:.6rem;justify-content:flex-end;margin:0 0 16px;flex-wrap:wrap}.content-tools button{border:1px solid var(--line);background:#fff;color:var(--primary);font-weight:800;border-radius:999px;padding:.7rem 1rem;box-shadow:var(--shadow-soft);cursor:pointer}.content-tools button:hover{transform:translateY(-1px)}
.frame,.modern-accordion,.content-page>.row,.content-page>div:not(.accordion-group):not(.row){background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-soft);padding:clamp(1rem,2.2vw,1.55rem);overflow:hidden}.frame+.frame{margin-top:18px}
.frame header h2,.frame header h3,.frame header h4,.ce-bodytext h2,.ce-bodytext h3,.ce-bodytext h4{margin:.1rem 0 .75rem;line-height:1.15;letter-spacing:-.025em;color:#102033}.frame h2,.ce-bodytext h2{font-size:clamp(1.6rem,3vw,2.2rem)}.frame h3,.ce-bodytext h3{font-size:1.45rem}.frame h4,.ce-bodytext h4{font-size:1.18rem}.ce-bodytext p{margin:.55rem 0;color:#26384d}.ce-bodytext ul,.ce-bodytext ol{padding-left:1.2rem;margin:.65rem 0}.ce-bodytext li{margin:.25rem 0}.ce-bodytext strong{color:#0f2439}.ce-bodytext em{font-style:italic}.ce-bodytext a{word-break:break-word}
.accordion-group{display:grid;gap:14px}.modern-accordion{padding:0}.modern-accordion summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.05rem 1.2rem;font-weight:900;font-size:1.03rem;color:#102033;background:linear-gradient(90deg,#fff,var(--surface-2));border-radius:var(--radius)}.modern-accordion summary::-webkit-details-marker{display:none}.modern-accordion summary::after{content:"+";width:32px;height:32px;border-radius:999px;display:grid;place-items:center;flex:0 0 auto;background:var(--primary);color:#fff;font-size:1.25rem;line-height:1}.modern-accordion[open]>summary{border-bottom:1px solid var(--line);border-radius:var(--radius) var(--radius) 0 0}.modern-accordion[open]>summary::after{content:"–"}.accordion-content{padding:1rem;display:grid;gap:16px}.modern-accordion>.accordion-content>.frame:first-child header:first-child h4:first-child{display:none}
.ce-textpic{display:grid;grid-template-columns:minmax(180px,32%) minmax(0,1fr);gap:1.2rem;align-items:start}.ce-textpic.ce-above,.ce-textpic.ce-below{grid-template-columns:1fr}.ce-gallery{display:grid;gap:.7rem}.ce-gallery .ce-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:.7rem}.ce-column{min-width:0}.image,.video{margin:0}.image a,.video a{display:block}.image img,.video video{display:block;width:100%;border-radius:18px;background:#eaf1f7;box-shadow:0 8px 22px rgba(17,42,77,.09);object-fit:cover}.figure,.image{position:relative}figcaption,.image-caption{display:block;color:var(--muted);font-size:.86rem;line-height:1.4;margin-top:.45rem}.video-embed{position:relative;width:100%}.video-embed video{width:100%}
.content-page>.row{display:grid;grid-template-columns:repeat(12,1fr);gap:18px}.content-page>.row>[class*="col-"]{grid-column:span 12}.col-sm-12{grid-column:span 12!important}.col-sm-9{grid-column:span 9!important}.col-sm-8{grid-column:span 8!important}.col-sm-6{grid-column:span 6!important}.col-sm-4{grid-column:span 4!important}.col-sm-3{grid-column:span 3!important}.col-sm-2{grid-column:span 2!important}.col-sm-1{grid-column:span 1!important}
.table-responsive{overflow-x:auto}table{width:100%;border-collapse:separate;border-spacing:0;margin:1rem 0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff}th,td{padding:.8rem;border-bottom:1px solid var(--line);vertical-align:top}tr:last-child td{border-bottom:0}th{background:var(--surface-2);text-align:left;color:#102033}
hr{border:0;border-top:1px solid var(--line);margin:1.4rem 0}.btn,.button,button{font-family:inherit}.site-footer{width:min(calc(100% - 28px),var(--max));margin:0 auto 24px;display:flex;justify-content:space-between;gap:1rem;align-items:center;background:#102033;color:#d9e7f3;border-radius:var(--radius);padding:1.2rem 1.4rem}.site-footer p{margin:.2rem 0 0;color:#a9bfd4}.site-footer a{color:#fff}.to-top{position:fixed;right:18px;bottom:18px;width:44px;height:44px;border:0;border-radius:999px;background:var(--primary);color:#fff;font-size:1.2rem;box-shadow:var(--shadow);cursor:pointer;opacity:0;pointer-events:none;transform:translateY(8px);transition:.2s}.to-top.visible{opacity:1;pointer-events:auto;transform:translateY(0)}
@media (max-width:980px){.site-header{border-radius:28px;align-items:flex-start}.nav-toggle{display:flex}.site-nav{position:absolute;top:66px;left:0;right:0;margin:0 auto;width:100%;display:none;background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:24px;padding:.65rem;box-shadow:var(--shadow);backdrop-filter:blur(18px)}.site-header.nav-open .site-nav{display:grid;grid-template-columns:1fr 1fr}.site-nav a{padding:.85rem 1rem}.hero-inner{grid-template-columns:1fr}.hero-card{max-width:520px}.ce-textpic{grid-template-columns:1fr}.col-sm-9,.col-sm-8,.col-sm-6,.col-sm-4,.col-sm-3,.col-sm-2,.col-sm-1{grid-column:span 12!important}}
@media (max-width:640px){body{line-height:1.58}.site-header{width:min(calc(100% - 18px),var(--max));margin-top:8px;padding:8px}.brand-text small{display:none}.brand-mark{width:40px;height:40px}.site-header.nav-open .site-nav{grid-template-columns:1fr;top:60px}.hero{padding:54px 14px 28px}.hero h1{letter-spacing:-.055em}.page-shell{width:min(calc(100% - 18px),var(--max));margin-bottom:36px}.frame,.modern-accordion,.content-page>.row,.content-page>div:not(.accordion-group):not(.row){border-radius:18px;padding:1rem}.modern-accordion summary{border-radius:18px;padding:.9rem 1rem}.accordion-content{padding:.85rem}.ce-gallery .ce-row{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}.site-footer{width:min(calc(100% - 18px),var(--max));border-radius:18px;display:grid}.content-tools{justify-content:stretch}.content-tools button{flex:1 1 auto}}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Kompakte Startseite: möglichst wenig Scrollen auf PC und Handy */
.home-compact{
  min-height:100svh;
  background:
    radial-gradient(circle at 10% 0%,rgba(15,124,134,.14),transparent 30rem),
    radial-gradient(circle at 90% 8%,rgba(255,200,87,.16),transparent 24rem),
    linear-gradient(180deg,#f7fbff 0%,#edf4fb 100%);
}
.home-main{width:min(calc(100% - 24px),var(--max));margin:18px auto 18px}
.home-overview{display:grid;gap:14px;min-height:calc(100svh - 128px)}
.home-topline{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:end;
  background:rgba(255,255,255,.78);border:1px solid rgba(219,230,240,.9);
  border-radius:var(--radius);padding:18px 20px;box-shadow:var(--shadow-soft);backdrop-filter:blur(18px)
}
.home-topline .eyebrow{margin-bottom:.35rem;padding:.3rem .65rem;font-size:.75rem}.home-topline h1{margin:0;font-size:clamp(2rem,4.5vw,4rem);line-height:.96;letter-spacing:-.065em;color:#0c2339}.home-subtitle{margin:.45rem 0 0;color:var(--muted);font-weight:560;max-width:760px}.home-actions{display:flex;gap:.45rem;flex-wrap:wrap;justify-content:flex-end;max-width:430px}.home-actions a{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:#fff;color:var(--primary);border-radius:999px;padding:.55rem .82rem;font-size:.88rem;font-weight:850;box-shadow:0 6px 18px rgba(17,42,77,.06);text-decoration:none}.home-actions a:hover{background:var(--primary);color:#fff;text-decoration:none}
.overview-grid{display:grid;grid-template-columns:1.15fr 1.1fr 1.2fr .9fr;gap:14px;align-items:stretch}.overview-card{background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow-soft);padding:18px;display:flex;flex-direction:column;min-height:0;overflow:hidden}.card-kicker{color:var(--primary-2);font-size:.76rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em;margin-bottom:.35rem}.overview-card h2{margin:0 0 .55rem;font-size:clamp(1.25rem,2vw,1.7rem);line-height:1.05;letter-spacing:-.035em}.overview-card p{margin:.15rem 0 .7rem;color:#26384d;line-height:1.45}.contact-lines{display:grid;gap:.38rem;margin-top:auto}.contact-lines span{display:grid;gap:.05rem;padding:.55rem .65rem;border-radius:14px;background:var(--surface-2);border:1px solid rgba(219,230,240,.75);font-size:.93rem;line-height:1.25}.contact-lines b{font-size:.76rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}.compact-list{list-style:none;margin:.2rem 0 0;padding:0;display:grid;gap:.55rem}.compact-list li{padding:.68rem .75rem;border-radius:16px;background:var(--surface-2);border:1px solid rgba(219,230,240,.75);line-height:1.32}.compact-list a,.compact-list b{display:block;color:#102033;font-weight:900;text-decoration:none}.compact-list a:hover{text-decoration:underline}.compact-list span{display:block;color:var(--muted);font-size:.92rem;margin-top:.18rem}.dated-list li{display:grid;grid-template-columns:70px 1fr;gap:.65rem;align-items:start}.dated-list time{color:var(--primary-2);font-size:.8rem;font-weight:900;padding-top:.1rem}.badge-grid{display:grid;grid-template-columns:1fr 1fr;gap:.55rem;margin-top:auto}.badge-grid a{display:grid;place-items:center;min-height:70px;border:1px solid rgba(219,230,240,.85);border-radius:16px;background:#fff;padding:.55rem}.badge-grid img{max-height:58px;width:100%;object-fit:contain;border-radius:10px;box-shadow:none}.quick-links{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.quick-links a{display:grid;gap:.08rem;padding:.8rem .95rem;border-radius:18px;background:#102033;color:#fff;text-decoration:none;box-shadow:var(--shadow-soft)}.quick-links a:hover{transform:translateY(-1px);text-decoration:none}.quick-links span{color:#b8cadb;font-size:.86rem;font-weight:600;line-height:1.25}.compact-footer{margin-top:0;margin-bottom:14px;padding:.85rem 1.1rem;border-radius:18px}.compact-footer p{display:none}
@media (min-width:981px){.home-compact .site-header{margin-top:10px}.home-compact .site-nav a{padding:.54rem .68rem;font-size:.86rem}.home-compact .brand-mark{width:40px;height:40px}.home-compact .brand-text strong{font-size:.95rem}.home-compact .brand-text small{font-size:.7rem}.home-compact .site-footer{font-size:.9rem}.home-compact .to-top{display:none}}
@media (max-width:1100px){.overview-grid{grid-template-columns:1fr 1fr}.profile-card{grid-column:span 2}.badge-grid{grid-template-columns:repeat(4,1fr)}.quick-links{grid-template-columns:1fr 1fr}.home-topline{grid-template-columns:1fr}.home-actions{justify-content:flex-start;max-width:none}}
@media (max-width:640px){.home-main{width:min(calc(100% - 18px),var(--max));margin:10px auto 14px}.home-overview{gap:10px;min-height:auto}.home-topline{padding:14px;border-radius:18px}.home-topline h1{font-size:2rem}.home-subtitle{font-size:.94rem;line-height:1.42}.home-actions{display:grid;grid-template-columns:1fr 1fr;gap:.4rem}.home-actions a{padding:.58rem .65rem;font-size:.82rem}.overview-grid{grid-template-columns:1fr;gap:10px}.overview-card{border-radius:18px;padding:14px}.overview-card h2{font-size:1.28rem}.overview-card p{font-size:.94rem;margin-bottom:.5rem}.contact-lines{grid-template-columns:1fr 1fr;gap:.4rem}.contact-lines span{padding:.5rem;font-size:.82rem}.compact-list{gap:.4rem}.compact-list li{padding:.56rem .62rem}.compact-list span{font-size:.82rem}.dated-list li{grid-template-columns:62px 1fr}.badge-grid{grid-template-columns:repeat(4,1fr);gap:.35rem}.badge-grid a{min-height:48px;padding:.35rem}.badge-grid img{max-height:38px}.quick-links{grid-template-columns:1fr 1fr;gap:8px}.quick-links a{padding:.65rem .72rem}.quick-links span{display:none}.compact-footer{display:none}}

/* Startseite im Screenshot-Stil: Hero links, Projekt-Kacheln rechts, alles möglichst above the fold */
.home-showcase{
  min-height:100svh;
  background:linear-gradient(180deg,#eef4f8 0%,#e6eef5 100%);
}
.home-showcase .site-header{
  margin-top:10px;
  padding:10px 14px;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(12px);
}
.home-showcase .site-nav a{
  padding:.72rem .92rem;
  font-size:.92rem;
}
.home-showcase .site-nav a.active{
  background:#124d86;
  color:#fff;
}
.showcase-main{
  width:min(calc(100% - 24px),1320px);
  margin:10px auto 14px;
}
.hero-dashboard{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(320px,.95fr);
  gap:18px;
  align-items:stretch;
}
.hero-visual-card,
.hero-side-card,
.mini-info-card{
  background:rgba(255,255,255,.88);
  border:1px solid #d9e4ee;
  box-shadow:0 14px 36px rgba(17,42,77,.08);
}
.hero-visual-card{
  position:relative;
  overflow:hidden;
  border-radius:24px;
  min-height:460px;
}
.hero-school-image{
  width:100%;
  height:100%;
  min-height:460px;
  object-fit:cover;
  display:block;
}
.hero-visual-card::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:42%;
  background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(10,24,39,.58) 100%);
  pointer-events:none;
}
.hero-image-caption{
  position:absolute;
  left:24px;
  right:24px;
  bottom:20px;
  z-index:1;
  color:#fff;
}
.hero-image-caption .eyebrow{background:rgba(255,255,255,.14);color:#fff;border-color:rgba(255,255,255,.24)}
.hero-image-caption h1{
  margin:0 0 .35rem;
  color:#fff;
  font-size:clamp(2rem,4vw,3.4rem);
  letter-spacing:-.055em;
  line-height:.95;
}
.hero-image-caption p{
  margin:0;
  max-width:640px;
  color:rgba(255,255,255,.9);
  font-size:1rem;
  line-height:1.4;
}
.hero-side-card{
  border-radius:24px;
  padding:20px;
  display:grid;
  gap:18px;
  align-content:start;
}
.side-copy h2{
  margin:0 0 .45rem;
  font-size:clamp(1.9rem,3vw,3.1rem);
  line-height:.94;
  letter-spacing:-.06em;
  color:#071522;
}
.side-copy p:last-child{
  margin:0;
  color:#506173;
  line-height:1.45;
}
.showcase-badges{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:0;
}
.showcase-badges a{
  min-height:134px;
  padding:16px;
  border-radius:22px;
  border:2px solid #deebf4;
  background:#fff;
  box-shadow:none;
}
.showcase-badges img{
  max-height:88px;
  width:100%;
  object-fit:contain;
}
.showcase-links{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.showcase-links a{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height:52px;
  padding:.8rem 1rem;
  border-radius:16px;
  background:#124d86;
  color:#fff;
  font-weight:850;
  text-decoration:none;
  box-shadow:0 10px 22px rgba(18,77,134,.18);
}
.showcase-links a:hover{
  background:#0f416f;
  text-decoration:none;
}
.showcase-info-row{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-top:14px;
}
.mini-info-card{
  border-radius:22px;
  padding:16px 18px;
  min-height:124px;
}
.mini-label{
  display:inline-flex;
  margin-bottom:.45rem;
  font-size:.73rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#124d86;
}
.mini-info-card strong{
  display:block;
  font-size:1.08rem;
  line-height:1.2;
  color:#071522;
}
.mini-info-card p{
  margin:.35rem 0 0;
  color:#5b6b7a;
  line-height:1.4;
}
.mini-info-card a{
  color:#124d86;
  text-decoration:none;
}
.mini-info-card a:hover{text-decoration:underline}
.mini-news-card ul{
  list-style:none;
  margin:.45rem 0 0;
  padding:0;
  display:grid;
  gap:.3rem;
}
.mini-news-card li a{
  font-weight:700;
}
.showcase-footer{
  width:min(calc(100% - 24px),1320px);
  margin-bottom:14px;
  border-radius:18px;
  padding:.9rem 1.1rem;
}
.showcase-footer p{margin-top:.2rem}

@media (max-width:1180px){
  .hero-dashboard{grid-template-columns:1fr}
  .hero-visual-card{min-height:420px}
  .hero-school-image{min-height:420px}
  .hero-side-card{padding:18px}
  .showcase-info-row{grid-template-columns:1fr 1fr}
}

@media (max-width:980px){
  .home-showcase .site-header{align-items:flex-start}
  .home-showcase .site-nav{top:66px}
}

@media (max-width:640px){
  .showcase-main{width:min(calc(100% - 18px),1320px);margin:8px auto 12px}
  .hero-dashboard{gap:10px}
  .hero-visual-card{border-radius:18px;min-height:260px}
  .hero-school-image{min-height:260px}
  .hero-image-caption{left:14px;right:14px;bottom:14px}
  .hero-image-caption h1{font-size:1.75rem}
  .hero-image-caption p{font-size:.92rem}
  .hero-side-card{border-radius:18px;padding:14px;gap:12px}
  .side-copy h2{font-size:1.7rem}
  .showcase-badges{gap:8px}
  .showcase-badges a{min-height:92px;border-radius:16px;padding:10px}
  .showcase-badges img{max-height:54px}
  .showcase-links{grid-template-columns:1fr 1fr;gap:8px}
  .showcase-links a{min-height:46px;padding:.68rem .75rem;font-size:.84rem}
  .showcase-info-row{grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
  .mini-info-card{border-radius:18px;padding:12px;min-height:auto}
  .mini-info-card strong{font-size:.96rem}
  .mini-info-card p,.mini-news-card li a{font-size:.85rem}
  .showcase-footer{width:min(calc(100% - 18px),1320px);display:grid;padding:.85rem 1rem}
}

/* Bessere Accordions + Dark/Light Mode Toggle */
.theme-toggle{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--text);
  border-radius:999px;
  padding:.62rem .88rem;
  font:inherit;
  font-weight:820;
  box-shadow:var(--shadow-soft);
  cursor:pointer;
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
}
.theme-toggle:hover{transform:translateY(-1px);text-decoration:none;background:var(--surface-2)}
.theme-toggle-icon{font-size:1rem;line-height:1}
.theme-toggle-label{font-size:.88rem;white-space:nowrap}

.accordion-group{gap:12px}
.modern-accordion{
  padding:0;
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
  overflow:hidden;
}
.modern-accordion summary{
  position:relative;
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:1rem;
  padding:1rem 1.2rem 1rem 4.2rem;
  font-weight:900;
  font-size:1.02rem;
  color:var(--text);
  background:linear-gradient(180deg,var(--surface),var(--surface-2));
  border-radius:var(--radius);
  transition:background .18s ease, color .18s ease;
}
.modern-accordion summary:hover{background:linear-gradient(180deg,var(--surface-2),rgba(15,124,134,.08))}
.modern-accordion summary::-webkit-details-marker{display:none}
.modern-accordion summary::before{
  content:"";
  position:absolute;
  left:1.15rem;
  top:50%;
  width:2.1rem;
  height:2.1rem;
  transform:translateY(-50%);
  border-radius:12px;
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  box-shadow:0 12px 24px rgba(15,124,134,.18);
}
.modern-accordion summary::after{
  content:"";
  width:.7rem;
  height:.7rem;
  margin-left:auto;
  border-right:2.5px solid var(--primary);
  border-bottom:2.5px solid var(--primary);
  transform:rotate(45deg);
  transition:transform .18s ease, border-color .18s ease;
}
.modern-accordion[open] > summary{
  border-bottom:1px solid var(--line);
  border-radius:var(--radius) var(--radius) 0 0;
}
.modern-accordion[open] > summary::after{
  transform:rotate(-135deg);
}
.modern-accordion[open] > summary::before{
  background:linear-gradient(135deg,var(--primary-2),var(--accent));
}
.accordion-content{
  padding:1rem;
  display:grid;
  gap:16px;
  background:color-mix(in srgb, var(--surface) 86%, transparent);
}
.modern-accordion .modern-accordion{
  margin-top:.2rem;
  border-radius:18px;
}
.modern-accordion .modern-accordion summary{
  border-radius:18px;
  font-size:.96rem;
  padding-left:3.9rem;
}
.modern-accordion .modern-accordion[open] > summary{
  border-radius:18px 18px 0 0;
}

html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#0d1721;
  --surface:#132130;
  --surface-2:#18293b;
  --text:#ebf3fb;
  --muted:#9fb2c9;
  --primary:#4b91d6;
  --primary-2:#55c6cf;
  --accent:#f2c35e;
  --line:#294055;
  --shadow:0 18px 45px rgba(0,0,0,.35);
  --shadow-soft:0 10px 28px rgba(0,0,0,.24);
}
html[data-theme="dark"] body{
  background:
    radial-gradient(circle at top left,rgba(75,145,214,.12),transparent 32rem),
    linear-gradient(180deg,#0a1119 0%,var(--bg) 34rem,var(--bg) 100%);
  color:var(--text);
}
html[data-theme="dark"] .skip-link{background:var(--surface);color:var(--text)}
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .home-showcase .site-header,
html[data-theme="dark"] .home-topline,
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .overview-card,
html[data-theme="dark"] .mini-info-card,
html[data-theme="dark"] .hero-side-card,
html[data-theme="dark"] .hero-visual-card,
html[data-theme="dark"] .frame,
html[data-theme="dark"] .modern-accordion,
html[data-theme="dark"] .content-page > .row,
html[data-theme="dark"] .content-page > div:not(.accordion-group):not(.row){
  background:rgba(19,33,48,.9);
  border-color:rgba(41,64,85,.88);
}
html[data-theme="dark"] .site-header{box-shadow:0 12px 36px rgba(0,0,0,.26)}
html[data-theme="dark"] .site-nav a,
html[data-theme="dark"] .brand,
html[data-theme="dark"] .theme-toggle{color:var(--text)}
html[data-theme="dark"] .theme-toggle{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .site-nav a:hover{background:rgba(255,255,255,.05)}
html[data-theme="dark"] .site-nav a.active,
html[data-theme="dark"] .home-showcase .site-nav a.active{background:var(--primary);color:#07121d}
html[data-theme="dark"] .nav-toggle{background:var(--primary);color:#07121d}
html[data-theme="dark"] .nav-toggle span{background:#07121d}
html[data-theme="dark"] .hero-bg{background:linear-gradient(120deg,rgba(75,145,214,.14),rgba(85,198,207,.13) 48%,rgba(242,195,94,.12))}
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .frame header h2,
html[data-theme="dark"] .frame header h3,
html[data-theme="dark"] .frame header h4,
html[data-theme="dark"] .ce-bodytext h2,
html[data-theme="dark"] .ce-bodytext h3,
html[data-theme="dark"] .ce-bodytext h4,
html[data-theme="dark"] .home-topline h1,
html[data-theme="dark"] .side-copy h2,
html[data-theme="dark"] .overview-card h2,
html[data-theme="dark"] .mini-info-card strong{color:var(--text)}
html[data-theme="dark"] .hero-copy > p:last-child,
html[data-theme="dark"] .hero-card p,
html[data-theme="dark"] .ce-bodytext p,
html[data-theme="dark"] .ce-bodytext li,
html[data-theme="dark"] .home-subtitle,
html[data-theme="dark"] .overview-card p,
html[data-theme="dark"] .mini-info-card p,
html[data-theme="dark"] .hero-image-caption p,
html[data-theme="dark"] .side-copy p:last-child,
html[data-theme="dark"] figcaption,
html[data-theme="dark"] .image-caption,
html[data-theme="dark"] .quick-links span,
html[data-theme="dark"] .compact-list span,
html[data-theme="dark"] .brand-text small,
html[data-theme="dark"] .site-footer p{color:var(--muted)}
html[data-theme="dark"] .ce-bodytext strong,
html[data-theme="dark"] .compact-list a,
html[data-theme="dark"] .compact-list b{color:var(--text)}
html[data-theme="dark"] .eyebrow{background:rgba(255,255,255,.04);border-color:rgba(85,198,207,.22);color:var(--primary-2)}
html[data-theme="dark"] .compact-list li,
html[data-theme="dark"] .contact-lines span,
html[data-theme="dark"] th,
html[data-theme="dark"] td,
html[data-theme="dark"] table,
html[data-theme="dark"] .badge-grid a,
html[data-theme="dark"] .showcase-badges a{background:rgba(255,255,255,.03);border-color:var(--line)}
html[data-theme="dark"] th{background:rgba(255,255,255,.04)}
html[data-theme="dark"] .image img,
html[data-theme="dark"] .video video{background:#0f1a26;box-shadow:0 8px 22px rgba(0,0,0,.28)}
html[data-theme="dark"] .modern-accordion summary{
  background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.05));
  color:var(--text);
}
html[data-theme="dark"] .modern-accordion summary:hover{background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(85,198,207,.08))}
html[data-theme="dark"] .modern-accordion summary::after{border-color:var(--primary-2)}
html[data-theme="dark"] .accordion-content{background:rgba(10,17,25,.22)}
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .quick-links a,
html[data-theme="dark"] .showcase-links a{background:#09131d;color:var(--text)}
html[data-theme="dark"] .showcase-links a:hover,
html[data-theme="dark"] .quick-links a:hover{background:#0d1926}
html[data-theme="dark"] .showcase-footer,
html[data-theme="dark"] .compact-footer{background:#09131d}
html[data-theme="dark"] .home-compact{
  background:
    radial-gradient(circle at 10% 0%,rgba(85,198,207,.12),transparent 30rem),
    radial-gradient(circle at 90% 8%,rgba(242,195,94,.1),transparent 24rem),
    linear-gradient(180deg,#0d1721 0%,#101c29 100%);
}
html[data-theme="dark"] .home-showcase{background:linear-gradient(180deg,#0c1520 0%,#111d2b 100%)}
html[data-theme="dark"] .hero-visual-card::after{background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(3,8,13,.78) 100%)}
html[data-theme="dark"] .showcase-links a{box-shadow:0 10px 22px rgba(0,0,0,.26)}
html[data-theme="dark"] .to-top{background:var(--primary);color:#07121d}

@media (max-width:980px){
  .theme-toggle{margin-left:auto}
  .theme-toggle-label{display:none}
}
@media (max-width:640px){
  .theme-toggle{padding:.7rem .8rem}
  .modern-accordion summary{padding:.9rem 1rem .9rem 3.6rem;border-radius:18px}
  .modern-accordion summary::before{left:.9rem;width:1.85rem;height:1.85rem;border-radius:10px}
}

html[data-theme="dark"] .site-nav{background:rgba(11,20,30,.96);border-color:var(--line)}

/* Schöne Tabellenansicht für Unterrichtszeiten */
.schedule-layout{
  display:grid;
  grid-template-columns:minmax(220px,290px) minmax(0,1fr);
  gap:1.2rem;
  align-items:start;
}
.schedule-media{
  display:grid;
  gap:.8rem;
  position:sticky;
  top:92px;
}
.schedule-media img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:20px;
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
  background:var(--surface-2);
}
.schedule-content{display:grid;gap:1rem}
.schedule-intro{
  background:linear-gradient(135deg,rgba(22,74,122,.08),rgba(15,124,134,.08));
  border:1px solid var(--line);
  border-radius:20px;
  padding:1rem 1.1rem;
}
.schedule-intro h3{
  margin:.15rem 0 .35rem;
  font-size:1.55rem;
  line-height:1.05;
  letter-spacing:-.04em;
}
.schedule-intro p{margin:0;color:var(--muted)}
.schedule-chip{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.35rem .65rem;
  border-radius:999px;
  background:var(--surface);
  border:1px solid var(--line);
  color:var(--primary);
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.schedule-cards{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
}
.schedule-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:22px;
  padding:1rem;
  box-shadow:var(--shadow-soft);
}
.schedule-card-head{margin-bottom:.8rem}
.schedule-card-head h4{
  margin:0 0 .25rem;
  font-size:1.2rem;
}
.schedule-card-head p{
  margin:.12rem 0;
  color:var(--muted);
  line-height:1.45;
}
.schedule-card-alt{
  background:linear-gradient(180deg,var(--surface),color-mix(in srgb,var(--surface) 80%, var(--surface-2)));
}
.schedule-table th{
  font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--primary);
}
.schedule-table td,
.schedule-table th{white-space:nowrap}
.schedule-table td:last-child,
.schedule-table th:last-child{white-space:normal}
.schedule-table tbody tr:hover td{background:rgba(22,74,122,.03)}

html[data-theme="dark"] .schedule-intro{
  background:linear-gradient(135deg,rgba(75,145,214,.12),rgba(85,198,207,.08));
  border-color:var(--line);
}
html[data-theme="dark"] .schedule-table tbody tr:hover td{background:rgba(255,255,255,.03)}

@media (max-width:1050px){
  .schedule-layout{grid-template-columns:1fr}
  .schedule-media{position:static;grid-template-columns:repeat(4,1fr)}
  .schedule-cards{grid-template-columns:1fr}
}
@media (max-width:640px){
  .schedule-media{grid-template-columns:1fr 1fr;gap:.55rem}
  .schedule-media img{border-radius:16px}
  .schedule-intro{padding:.9rem;border-radius:18px}
  .schedule-intro h3{font-size:1.28rem}
  .schedule-card{padding:.85rem;border-radius:18px}
  .schedule-table{font-size:.92rem}
  .schedule-table th,
  .schedule-table td{padding:.62rem .6rem}
}

/* Kompaktere Header-Leiste + Theme-Button unten links */
.site-header{
  padding:8px 12px;
  gap:.8rem;
}
.brand{gap:.65rem}
.brand-mark{
  width:40px;
  height:40px;
  border-radius:13px;
}
.brand-text strong{font-size:.98rem}
.brand-text small{font-size:.72rem}
.site-nav{gap:.1rem}
.site-nav a{
  padding:.54rem .72rem;
  font-size:.9rem;
}
.nav-toggle{
  padding:.62rem .82rem;
}
.home-showcase .site-header,
.home-compact .site-header{
  padding:8px 12px;
}
.home-showcase .site-nav a,
.home-compact .site-nav a{
  padding:.58rem .74rem;
  font-size:.89rem;
}
.theme-toggle{
  position:fixed;
  left:18px;
  bottom:18px;
  margin-left:0;
  z-index:80;
  padding:.72rem .95rem;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(14px);
  border:1px solid var(--line);
  box-shadow:0 14px 32px rgba(17,42,77,.18);
}
.theme-toggle:hover{background:var(--surface)}
html[data-theme="dark"] .theme-toggle{
  background:rgba(19,33,48,.95);
  box-shadow:0 14px 32px rgba(0,0,0,.34);
}
@media (max-width:980px){
  .site-header{padding:8px 10px}
}
@media (max-width:640px){
  .site-header{padding:7px 8px}
  .brand-mark{width:38px;height:38px}
  .brand-text strong{font-size:.94rem}
  .site-nav a{padding:.75rem .9rem}
  .theme-toggle{
    left:12px;
    bottom:12px;
    padding:.68rem .82rem;
    border-radius:18px;
  }
  .theme-toggle-label{display:none}
}

/* Feineres, cleaneres Tuning: weniger Rundung, weniger Verlauf, nur minimaler Blur */
:root{
  --radius:18px;
  --radius-sm:12px;
  --shadow:0 10px 26px rgba(17,42,77,.08);
  --shadow-soft:0 6px 18px rgba(17,42,77,.06);
}
body{
  background:
    radial-gradient(circle at top left,rgba(22,74,122,.06),transparent 28rem),
    linear-gradient(180deg,#fbfdff 0%,var(--bg) 28rem,var(--bg) 100%);
}
.site-header,
.home-showcase .site-header,
.home-compact .site-header{
  border-radius:22px;
  backdrop-filter:blur(8px);
  box-shadow:0 8px 22px rgba(17,42,77,.06);
}
.site-nav a,
.theme-toggle,
.nav-toggle,
.home-actions a,
.quick-links a,
.showcase-links a,
.badge-grid a,
.showcase-badges a,
.contact-lines span,
.compact-list li,
.mini-info-card,
.overview-card,
.hero-card,
.hero-side-card,
.hero-visual-card,
.schedule-card,
.schedule-intro,
.frame,
.modern-accordion,
.site-footer{
  border-radius:16px;
}
.brand-mark{border-radius:12px}
.site-nav a,
.home-showcase .site-nav a,
.home-compact .site-nav a{
  border-radius:12px;
}
.hero-bg{
  background:linear-gradient(120deg,rgba(22,74,122,.05),rgba(15,124,134,.04) 48%,rgba(255,200,87,.05));
}
.home-compact{
  background:
    radial-gradient(circle at 10% 0%,rgba(15,124,134,.07),transparent 26rem),
    radial-gradient(circle at 90% 8%,rgba(255,200,87,.07),transparent 20rem),
    linear-gradient(180deg,#f9fcff 0%,#f1f6fb 100%);
}
.home-showcase{
  background:linear-gradient(180deg,#f4f8fb 0%,#edf3f8 100%);
}
.home-topline,
.overview-card,
.hero-card,
.hero-side-card,
.hero-visual-card,
.mini-info-card,
.schedule-card,
.schedule-intro,
.frame,
.modern-accordion,
.content-page > .row,
.content-page > div:not(.accordion-group):not(.row){
  box-shadow:var(--shadow-soft);
}
.modern-accordion summary{
  background:linear-gradient(180deg,#ffffff,#f8fbfd);
}
.modern-accordion summary:hover{
  background:linear-gradient(180deg,#fbfdff,#f3f8fb);
}
.theme-toggle{
  backdrop-filter:blur(8px);
  box-shadow:0 10px 24px rgba(17,42,77,.10);
}
.showcase-links a,
.quick-links a{
  box-shadow:0 8px 18px rgba(17,42,77,.10);
}
.schedule-card-alt{
  background:linear-gradient(180deg,var(--surface),#fbfdff);
}
html[data-theme="dark"] body{
  background:
    radial-gradient(circle at top left,rgba(75,145,214,.07),transparent 28rem),
    linear-gradient(180deg,#0b131b 0%,var(--bg) 28rem,var(--bg) 100%);
}
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .home-showcase .site-header,
html[data-theme="dark"] .home-compact .site-header,
html[data-theme="dark"] .theme-toggle{
  backdrop-filter:blur(8px);
}
html[data-theme="dark"] .hero-bg{
  background:linear-gradient(120deg,rgba(75,145,214,.08),rgba(85,198,207,.06) 48%,rgba(242,195,94,.06));
}
html[data-theme="dark"] .home-compact{
  background:
    radial-gradient(circle at 10% 0%,rgba(85,198,207,.07),transparent 26rem),
    radial-gradient(circle at 90% 8%,rgba(242,195,94,.05),transparent 20rem),
    linear-gradient(180deg,#0f1822 0%,#101b27 100%);
}
html[data-theme="dark"] .home-showcase{
  background:linear-gradient(180deg,#0e1721 0%,#101a25 100%);
}
html[data-theme="dark"] .schedule-card-alt{
  background:linear-gradient(180deg,var(--surface),#162434);
}
@media (max-width:640px){
  .site-header,
  .home-showcase .site-header,
  .home-compact .site-header{
    border-radius:16px;
  }
}

/* Apple-ähnliche Micro-Animationen: subtil, weich, nicht überladen */
:root{
  --ease-apple:cubic-bezier(.2,.8,.2,1);
  --ease-spring:cubic-bezier(.16,1,.3,1);
}
.site-header,
.hero,
.hero-dashboard,
.page-shell,
.site-footer{
  animation:softPageIn .55s var(--ease-spring) both;
}
.hero-card,
.hero-side-card,
.hero-visual-card,
.home-topline,
.overview-card,
.mini-info-card,
.quick-links a,
.schedule-card,
.schedule-intro,
.frame,
.modern-accordion{
  transition:
    transform .32s var(--ease-apple),
    box-shadow .32s var(--ease-apple),
    border-color .32s var(--ease-apple),
    background-color .32s var(--ease-apple),
    opacity .32s var(--ease-apple),
    filter .32s var(--ease-apple);
}
.site-nav a,
.showcase-links a,
.home-actions a,
.theme-toggle,
.to-top,
.nav-toggle{
  transition:
    transform .22s var(--ease-apple),
    box-shadow .22s var(--ease-apple),
    background-color .22s var(--ease-apple),
    color .22s var(--ease-apple),
    border-color .22s var(--ease-apple);
}
.site-nav a:hover,
.home-actions a:hover,
.showcase-links a:hover,
.quick-links a:hover{
  transform:translateY(-1px);
}
.site-nav a:active,
.home-actions a:active,
.showcase-links a:active,
.quick-links a:active,
.theme-toggle:active,
.nav-toggle:active{
  transform:scale(.985);
}
.hero-card:hover,
.hero-side-card:hover,
.home-topline:hover,
.overview-card:hover,
.mini-info-card:hover,
.schedule-card:hover,
.frame:hover,
.modern-accordion:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(17,42,77,.09);
}
.hero-visual-card:hover .hero-school-image{
  transform:scale(1.012);
}
.hero-school-image,
.image img,
.schedule-media img,
.badge-grid img,
.showcase-badges img{
  transition:transform .55s var(--ease-spring), filter .35s var(--ease-apple);
}
.schedule-media img:hover,
.image img:hover{
  transform:scale(1.008);
}
.badge-grid a:hover img,
.showcase-badges a:hover img{
  transform:scale(1.025);
}
.modern-accordion summary::after{
  transition:transform .24s var(--ease-apple), border-color .24s var(--ease-apple);
}
.modern-accordion summary::before{
  transition:transform .24s var(--ease-apple), box-shadow .24s var(--ease-apple), background .24s var(--ease-apple);
}
.modern-accordion summary:hover::before{
  transform:translateY(-50%) scale(1.035);
}
.accordion-content{
  animation:accordionFade .28s var(--ease-apple) both;
}
.theme-toggle{
  animation:floatIn .55s .15s var(--ease-spring) both;
}
.scroll-reveal{
  opacity:0;
  transform:translateY(10px);
  filter:blur(1px);
}
.scroll-reveal.is-visible{
  opacity:1;
  transform:translateY(0);
  filter:blur(0);
}
.scroll-reveal:nth-child(2){transition-delay:.035s}
.scroll-reveal:nth-child(3){transition-delay:.07s}
.scroll-reveal:nth-child(4){transition-delay:.105s}
@keyframes softPageIn{
  from{opacity:0;transform:translateY(7px);filter:blur(1.5px)}
  to{opacity:1;transform:translateY(0);filter:blur(0)}
}
@keyframes floatIn{
  from{opacity:0;transform:translateY(8px) scale(.97);filter:blur(1.5px)}
  to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}
}
@keyframes accordionFade{
  from{opacity:0;transform:translateY(-3px)}
  to{opacity:1;transform:translateY(0)}
}
html[data-theme="dark"] .hero-card:hover,
html[data-theme="dark"] .hero-side-card:hover,
html[data-theme="dark"] .home-topline:hover,
html[data-theme="dark"] .overview-card:hover,
html[data-theme="dark"] .mini-info-card:hover,
html[data-theme="dark"] .schedule-card:hover,
html[data-theme="dark"] .frame:hover,
html[data-theme="dark"] .modern-accordion:hover{
  box-shadow:0 12px 28px rgba(0,0,0,.28);
}
@media (prefers-reduced-motion:reduce){
  *,
  *::before,
  *::after{
    animation:none!important;
    transition:none!important;
    transform:none!important;
    filter:none!important;
    scroll-behavior:auto!important;
  }
  .scroll-reveal{opacity:1!important}
}


/* Apple-artige Micro-Animationen auf aktueller Dateibasis */
:root{
  --ease-apple:cubic-bezier(.2,.8,.2,1);
  --ease-spring:cubic-bezier(.16,1,.3,1);
}

/* sanfter Einstieg */
.site-header,
.hero,
.hero-dashboard,
.page-shell,
.site-footer{
  animation:softPageIn .52s var(--ease-spring) both;
}

/* Karten, Buttons und Bilder fühlen sich minimal lebendig an */
.hero-card,
.hero-side-card,
.hero-visual-card,
.home-topline,
.overview-card,
.mini-info-card,
.quick-links a,
.schedule-card,
.schedule-intro,
.frame,
.modern-accordion{
  transition:
    transform .30s var(--ease-apple),
    box-shadow .30s var(--ease-apple),
    border-color .30s var(--ease-apple),
    background-color .30s var(--ease-apple),
    opacity .30s var(--ease-apple),
    filter .30s var(--ease-apple);
}

.site-nav a,
.showcase-links a,
.home-actions a,
.theme-toggle,
.to-top,
.nav-toggle{
  transition:
    transform .20s var(--ease-apple),
    box-shadow .20s var(--ease-apple),
    background-color .20s var(--ease-apple),
    color .20s var(--ease-apple),
    border-color .20s var(--ease-apple);
}

.site-nav a:hover,
.home-actions a:hover,
.showcase-links a:hover,
.quick-links a:hover{
  transform:translateY(-1px);
}

.site-nav a:active,
.home-actions a:active,
.showcase-links a:active,
.quick-links a:active,
.theme-toggle:active,
.nav-toggle:active{
  transform:scale(.985);
}

.hero-card:hover,
.hero-side-card:hover,
.home-topline:hover,
.overview-card:hover,
.mini-info-card:hover,
.schedule-card:hover,
.frame:hover,
.modern-accordion:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(17,42,77,.09);
}

.hero-school-image,
.image img,
.schedule-media img,
.badge-grid img,
.showcase-badges img{
  transition:transform .55s var(--ease-spring), filter .35s var(--ease-apple);
}

.hero-visual-card:hover .hero-school-image{
  transform:scale(1.015);
}

.schedule-media img:hover,
.image img:hover{
  transform:scale(1.01);
}

.badge-grid a:hover img,
.showcase-badges a:hover img{
  transform:scale(1.03);
}

.modern-accordion summary::before,
.modern-accordion summary::after{
  transition:transform .24s var(--ease-apple), border-color .24s var(--ease-apple), background .24s var(--ease-apple);
}

.modern-accordion summary:hover::before{
  transform:translateY(-50%) scale(1.035);
}

.accordion-content{
  animation:accordionFade .26s var(--ease-apple) both;
}

/* dezente Scroll-Reveals */
.scroll-reveal{
  opacity:0;
  transform:translateY(12px);
  filter:blur(1.5px);
}

.scroll-reveal.is-visible{
  opacity:1;
  transform:translateY(0);
  filter:blur(0);
}

@keyframes softPageIn{
  from{opacity:0;transform:translateY(8px);filter:blur(2px)}
  to{opacity:1;transform:translateY(0);filter:blur(0)}
}

@keyframes accordionFade{
  from{opacity:0;transform:translateY(-4px)}
  to{opacity:1;transform:translateY(0)}
}

html[data-theme="dark"] .hero-card:hover,
html[data-theme="dark"] .hero-side-card:hover,
html[data-theme="dark"] .home-topline:hover,
html[data-theme="dark"] .overview-card:hover,
html[data-theme="dark"] .mini-info-card:hover,
html[data-theme="dark"] .schedule-card:hover,
html[data-theme="dark"] .frame:hover,
html[data-theme="dark"] .modern-accordion:hover{
  box-shadow:0 12px 28px rgba(0,0,0,.28);
}

@media (prefers-reduced-motion:reduce){
  *,
  *::before,
  *::after{
    animation:none!important;
    transition:none!important;
    transform:none!important;
    filter:none!important;
    scroll-behavior:auto!important;
  }
  .scroll-reveal{opacity:1!important}
}


/* Feintuning: Micro-Animationen etwas langsamer, aber weiterhin direkt und flüssig */
.site-header,
.hero,
.hero-dashboard,
.page-shell,
.site-footer{
  animation-duration:.68s;
}

.hero-card,
.hero-side-card,
.hero-visual-card,
.home-topline,
.overview-card,
.mini-info-card,
.quick-links a,
.schedule-card,
.schedule-intro,
.frame,
.modern-accordion{
  transition-duration:.42s;
}

.site-nav a,
.showcase-links a,
.home-actions a,
.theme-toggle,
.to-top,
.nav-toggle{
  transition-duration:.28s;
}

.hero-school-image,
.image img,
.schedule-media img,
.badge-grid img,
.showcase-badges img{
  transition-duration:.72s,.45s;
}

.accordion-content{
  animation-duration:.36s;
}

.scroll-reveal{
  transition:
    opacity .55s var(--ease-apple),
    transform .55s var(--ease-apple),
    filter .55s var(--ease-apple);
}


/* Darkmode: automatisch über System + Button unten links */
.theme-toggle{
  position:fixed;
  left:18px;
  bottom:18px;
  z-index:100;
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  border:1px solid var(--line);
  background:rgba(255,255,255,.94);
  color:var(--text);
  border-radius:16px;
  padding:.72rem .95rem;
  font:inherit;
  font-weight:820;
  box-shadow:0 10px 24px rgba(17,42,77,.10);
  backdrop-filter:blur(8px);
  cursor:pointer;
}
.theme-toggle:hover{
  transform:translateY(-1px);
}
.theme-toggle:active{
  transform:scale(.985);
}
.theme-toggle-icon{
  font-size:1rem;
  line-height:1;
}
.theme-toggle-label{
  font-size:.88rem;
  white-space:nowrap;
}

html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#0d1721;
  --surface:#132130;
  --surface-2:#18293b;
  --text:#ebf3fb;
  --muted:#9fb2c9;
  --primary:#4b91d6;
  --primary-2:#55c6cf;
  --accent:#f2c35e;
  --line:#294055;
  --shadow:0 18px 45px rgba(0,0,0,.35);
  --shadow-soft:0 10px 28px rgba(0,0,0,.24);
}

html[data-theme="dark"] body{
  background:
    radial-gradient(circle at top left,rgba(75,145,214,.07),transparent 28rem),
    linear-gradient(180deg,#0b131b 0%,var(--bg) 28rem,var(--bg) 100%);
  color:var(--text);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .home-showcase .site-header,
html[data-theme="dark"] .home-compact .site-header,
html[data-theme="dark"] .home-topline,
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .hero-side-card,
html[data-theme="dark"] .hero-visual-card,
html[data-theme="dark"] .overview-card,
html[data-theme="dark"] .mini-info-card,
html[data-theme="dark"] .frame,
html[data-theme="dark"] .modern-accordion,
html[data-theme="dark"] .schedule-card,
html[data-theme="dark"] .schedule-intro,
html[data-theme="dark"] .content-page > .row,
html[data-theme="dark"] .content-page > div:not(.accordion-group):not(.row){
  background:rgba(19,33,48,.92);
  border-color:rgba(41,64,85,.9);
}

html[data-theme="dark"] .theme-toggle{
  background:rgba(19,33,48,.94);
  color:var(--text);
  border-color:var(--line);
  box-shadow:0 14px 32px rgba(0,0,0,.34);
}

html[data-theme="dark"] .site-nav a,
html[data-theme="dark"] .brand,
html[data-theme="dark"] .theme-toggle{
  color:var(--text);
}

html[data-theme="dark"] .site-nav a:hover{
  background:rgba(255,255,255,.05);
}

html[data-theme="dark"] .site-nav a.active,
html[data-theme="dark"] .home-showcase .site-nav a.active{
  background:var(--primary);
  color:#07121d;
}

html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .home-topline h1,
html[data-theme="dark"] .side-copy h2,
html[data-theme="dark"] .overview-card h2,
html[data-theme="dark"] .mini-info-card strong,
html[data-theme="dark"] .frame h2,
html[data-theme="dark"] .frame h3,
html[data-theme="dark"] .frame h4,
html[data-theme="dark"] .ce-bodytext h2,
html[data-theme="dark"] .ce-bodytext h3,
html[data-theme="dark"] .ce-bodytext h4,
html[data-theme="dark"] .modern-accordion summary{
  color:var(--text);
}

html[data-theme="dark"] .hero-copy > p:last-child,
html[data-theme="dark"] .hero-card p,
html[data-theme="dark"] .ce-bodytext p,
html[data-theme="dark"] .ce-bodytext li,
html[data-theme="dark"] .home-subtitle,
html[data-theme="dark"] .overview-card p,
html[data-theme="dark"] .mini-info-card p,
html[data-theme="dark"] .side-copy p:last-child,
html[data-theme="dark"] figcaption,
html[data-theme="dark"] .image-caption,
html[data-theme="dark"] .brand-text small{
  color:var(--muted);
}

html[data-theme="dark"] .ce-bodytext strong,
html[data-theme="dark"] .compact-list a,
html[data-theme="dark"] .compact-list b{
  color:var(--text);
}

html[data-theme="dark"] table,
html[data-theme="dark"] th,
html[data-theme="dark"] td,
html[data-theme="dark"] .compact-list li,
html[data-theme="dark"] .contact-lines span,
html[data-theme="dark"] .badge-grid a,
html[data-theme="dark"] .showcase-badges a{
  background:rgba(255,255,255,.03);
  border-color:var(--line);
}

html[data-theme="dark"] .modern-accordion summary{
  background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.05));
}

html[data-theme="dark"] .accordion-content{
  background:rgba(10,17,25,.22);
}

html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .quick-links a,
html[data-theme="dark"] .showcase-links a{
  background:#09131d;
  color:var(--text);
}

html[data-theme="dark"] .home-showcase{
  background:linear-gradient(180deg,#0e1721 0%,#101a25 100%);
}

html[data-theme="dark"] .hero-visual-card::after{
  background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(3,8,13,.78) 100%);
}

@media (max-width:640px){
  .theme-toggle{
    left:12px;
    bottom:12px;
    padding:.68rem .82rem;
    border-radius:14px;
  }
  .theme-toggle-label{
    display:none;
  }
}


/* Fix: Kein seitliches Verschieben beim Öffnen von Accordions */
html{
  overflow-y:scroll;
  scrollbar-gutter:stable;
}

body{
  min-width:0;
}

/* Scroll-Reveal darf die Breite nicht beeinflussen */
.scroll-reveal{
  will-change:opacity, transform, filter;
}

/* Accordions bleiben beim Öffnen stabil in der Breite */
.modern-accordion,
.accordion-content,
.page-shell,
.content-page{
  max-width:100%;
}

.modern-accordion[open]{
  overflow:clip;
}


/* Flüssige Accordion-Animationen */
.modern-accordion{
  overflow:hidden;
}

.modern-accordion > summary{
  user-select:none;
}

.modern-accordion > .accordion-content{
  overflow:hidden;
  transform-origin:top;
  transition:
    height .46s var(--ease-spring),
    opacity .36s var(--ease-apple),
    transform .36s var(--ease-apple),
    padding-top .36s var(--ease-apple),
    padding-bottom .36s var(--ease-apple);
  will-change:height, opacity, transform;
}

.modern-accordion:not([open]) > .accordion-content{
  height:0;
  opacity:0;
  transform:translateY(-6px);
  padding-top:0;
  padding-bottom:0;
}

.modern-accordion.is-opening > .accordion-content{
  opacity:1;
  transform:translateY(0);
}

.modern-accordion.is-closing > .accordion-content{
  opacity:0;
  transform:translateY(-6px);
}

.modern-accordion > summary::after{
  transition:transform .34s var(--ease-spring), border-color .24s var(--ease-apple);
}

.modern-accordion[open] > summary::after{
  transform:rotate(-135deg);
}

@media (prefers-reduced-motion:reduce){
  .modern-accordion > .accordion-content{
    transition:none!important;
    height:auto!important;
    transform:none!important;
    opacity:1!important;
  }
}


/* Hotfix: Darkmode-Button sicher sichtbar + Accordion-Animation jedes Mal */
html body .theme-toggle{
  position:fixed!important;
  left:18px!important;
  bottom:18px!important;
  z-index:9999!important;
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}

.modern-accordion > .accordion-content{
  transition:
    height .46s var(--ease-spring),
    opacity .36s var(--ease-apple),
    transform .36s var(--ease-apple),
    padding-top .36s var(--ease-apple),
    padding-bottom .36s var(--ease-apple)!important;
}

.modern-accordion.is-animating > .accordion-content{
  overflow:hidden!important;
}

.modern-accordion.is-opening > .accordion-content{
  opacity:1!important;
  transform:translateY(0)!important;
}

.modern-accordion.is-closing > .accordion-content{
  opacity:0!important;
  transform:translateY(-6px)!important;
}

@media (max-width:640px){
  html body .theme-toggle{
    left:12px!important;
    bottom:12px!important;
  }
}


/* Thematische Icons statt reiner Farbflächen in den Organisation-Accordions */
.modern-accordion > summary[data-icon]{
  position:relative;
}

.modern-accordion > summary[data-icon]::before{
  content: attr(data-icon);
  position:absolute;
  left:1.05rem;
  top:50%;
  transform:translateY(-50%);
  width:2.15rem;
  height:2.15rem;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1rem;
  line-height:1;
  border-radius:12px;
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  color:#fff;
  box-shadow:0 10px 22px rgba(17,42,77,.16);
}

.modern-accordion > summary[data-icon]:hover::before{
  transform:translateY(-50%) scale(1.035);
}

html[data-theme="dark"] .modern-accordion > summary[data-icon]::before{
  box-shadow:0 10px 24px rgba(0,0,0,.28);
}

@media (max-width:640px){
  .modern-accordion > summary[data-icon]::before{
    left:.9rem;
    width:1.95rem;
    height:1.95rem;
    border-radius:10px;
    font-size:.96rem;
  }
}


/* Für alle Accordion-Bereiche Icons statt Farbblöcke */
.modern-accordion > summary{
  padding-left:4.2rem;
}

.modern-accordion > summary::before{
  content: attr(data-icon);
  position:absolute;
  left:1.05rem;
  top:50%;
  transform:translateY(-50%);
  width:2.15rem;
  height:2.15rem;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1rem;
  line-height:1;
  border-radius:12px;
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  color:#fff;
  box-shadow:0 10px 22px rgba(17,42,77,.16);
}

.modern-accordion > summary:hover::before{
  transform:translateY(-50%) scale(1.035);
}

.modern-accordion .modern-accordion > summary{
  padding-left:3.95rem;
}

html[data-theme="dark"] .modern-accordion > summary::before{
  box-shadow:0 10px 24px rgba(0,0,0,.28);
}

@media (max-width:640px){
  .modern-accordion > summary{
    padding-left:3.6rem;
  }
  .modern-accordion > summary::before{
    left:.9rem;
    width:1.95rem;
    height:1.95rem;
    border-radius:10px;
    font-size:.96rem;
  }
}


/* Icon-Hintergrund neutral: keine bunten Farbflächen mehr */
.modern-accordion > summary::before,
.modern-accordion > summary[data-icon]::before{
  background:rgba(255,255,255,.55)!important;
  border:1px solid rgba(219,230,240,.9)!important;
  box-shadow:none!important;
  color:inherit!important;
}

.modern-accordion > summary:hover::before,
.modern-accordion > summary[data-icon]:hover::before{
  background:rgba(255,255,255,.72)!important;
  transform:translateY(-50%) scale(1.02);
}

html[data-theme="dark"] .modern-accordion > summary::before,
html[data-theme="dark"] .modern-accordion > summary[data-icon]::before{
  background:rgba(255,255,255,.08)!important;
  border-color:rgba(255,255,255,.12)!important;
  box-shadow:none!important;
}

html[data-theme="dark"] .modern-accordion > summary:hover::before,
html[data-theme="dark"] .modern-accordion > summary[data-icon]:hover::before{
  background:rgba(255,255,255,.12)!important;
}


/* Hotfix: Accordion ohne kurzen Stopper / keine doppelte Height-Transition */
.modern-accordion > .accordion-content{
  transition:
    opacity .32s var(--ease-apple),
    transform .32s var(--ease-apple),
    padding-top .32s var(--ease-apple),
    padding-bottom .32s var(--ease-apple)!important;
  will-change:height, opacity, transform;
  contain:layout paint;
}

.modern-accordion.is-opening > .accordion-content,
.modern-accordion.is-closing > .accordion-content{
  overflow:hidden!important;
  pointer-events:none;
}

.modern-accordion:not([open]) > .accordion-content{
  height:auto;
}

.modern-accordion > summary{
  -webkit-tap-highlight-color:transparent;
}


/* Finaler Hotfix: Accordion ohne Stocken, über reine CSS-Rows statt Height-JS */
details.modern-accordion{
  display:grid !important;
  grid-template-rows:auto 0fr !important;
  align-items:start;
  overflow:hidden;
  transition:grid-template-rows .42s cubic-bezier(.16,1,.3,1), box-shadow .24s ease;
}

details.modern-accordion.is-open{
  grid-template-rows:auto 1fr !important;
}

details.modern-accordion > .accordion-content{
  min-height:0;
  overflow:hidden !important;
  height:auto !important;
  opacity:0;
  transform:translateY(-4px);
  padding:0 1rem !important;
  transition:
    opacity .28s cubic-bezier(.2,.8,.2,1),
    transform .28s cubic-bezier(.2,.8,.2,1),
    padding-top .34s cubic-bezier(.16,1,.3,1),
    padding-bottom .34s cubic-bezier(.16,1,.3,1) !important;
  animation:none !important;
  contain:layout paint;
}

details.modern-accordion.is-open > .accordion-content{
  opacity:1;
  transform:translateY(0);
  padding:1rem !important;
}

details.modern-accordion > summary{
  -webkit-tap-highlight-color:transparent;
  user-select:none;
}

details.modern-accordion > summary::after{
  transition:transform .28s cubic-bezier(.16,1,.3,1), background-color .2s ease, color .2s ease !important;
}

details.modern-accordion.is-open > summary{
  border-bottom:1px solid var(--line);
  border-radius:var(--radius) var(--radius) 0 0;
}

details.modern-accordion.is-open > summary::after{
  content:"–";
}

details.modern-accordion:not(.is-open) > summary::after{
  content:"+";
}

@media (prefers-reduced-motion:reduce){
  details.modern-accordion{
    transition:none !important;
  }
  details.modern-accordion > .accordion-content{
    transition:none !important;
    opacity:1 !important;
    transform:none !important;
    padding:1rem !important;
  }
}


/* Accordion fix: geschlossen heißt wirklich unsichtbar, ohne leere Fläche */
details.modern-accordion {
  display:block !important;
}

details.modern-accordion > .accordion-content {
  display:grid;
  overflow:hidden;
  height:0;
  opacity:0;
  transform:translateY(-6px);
  padding-top:0 !important;
  padding-bottom:0 !important;
  transition:height .42s cubic-bezier(.16,1,.3,1), opacity .28s cubic-bezier(.2,.8,.2,1), transform .28s cubic-bezier(.2,.8,.2,1), padding-top .34s cubic-bezier(.16,1,.3,1), padding-bottom .34s cubic-bezier(.16,1,.3,1) !important;
  animation:none !important;
  contain:layout paint;
}

details.modern-accordion > .accordion-content[hidden] {
  display:none !important;
}

details.modern-accordion.is-open > .accordion-content,
details.modern-accordion.is-opening > .accordion-content {
  opacity:1;
  transform:translateY(0);
  padding-top:1rem !important;
  padding-bottom:1rem !important;
}

details.modern-accordion.is-open > summary,
details.modern-accordion.is-opening > summary {
  border-bottom:1px solid var(--line);
  border-radius:var(--radius) var(--radius) 0 0;
}

details.modern-accordion > summary::after {
  transition:transform .28s cubic-bezier(.16,1,.3,1), background-color .2s ease, color .2s ease !important;
}

details.modern-accordion.is-open > summary::after,
details.modern-accordion.is-opening > summary::after {
  content:"–";
}

details.modern-accordion:not(.is-open):not(.is-opening) > summary::after {
  content:"+";
}


/* Final Fix 2: Kein weißer Zwischenraum beim Schließen */
details.modern-accordion{
  display:block !important;
  grid-template-rows:none !important;
  overflow:hidden !important;
}

details.modern-accordion > .accordion-content{
  display:grid;
  height:0;
  opacity:0;
  transform:translateY(-4px);
  overflow:hidden !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  transition:
    height .24s cubic-bezier(.2,.8,.2,1),
    opacity .16s cubic-bezier(.2,.8,.2,1),
    transform .16s cubic-bezier(.2,.8,.2,1),
    padding-top .18s cubic-bezier(.2,.8,.2,1),
    padding-bottom .18s cubic-bezier(.2,.8,.2,1) !important;
  animation:none !important;
}

details.modern-accordion > .accordion-content[hidden]{
  display:none !important;
}

details.modern-accordion.is-opening > .accordion-content,
details.modern-accordion.is-open > .accordion-content{
  opacity:1;
  transform:translateY(0);
  padding-top:1rem !important;
  padding-bottom:1rem !important;
}

details.modern-accordion.is-closing > .accordion-content{
  opacity:0;
  transform:translateY(-2px);
  padding-top:0 !important;
  padding-bottom:0 !important;
}

details.modern-accordion.is-opening > summary,
details.modern-accordion.is-open > summary{
  border-bottom:1px solid var(--line);
  border-radius:var(--radius) var(--radius) 0 0;
}

details.modern-accordion.is-opening > summary::after,
details.modern-accordion.is-open > summary::after{
  content:"–";
}

details.modern-accordion:not(.is-open):not(.is-opening) > summary::after{
  content:"+";
}

@media (max-width:640px){
  details.modern-accordion > .accordion-content{
    transition:
      height .20s cubic-bezier(.2,.8,.2,1),
      opacity .12s cubic-bezier(.2,.8,.2,1),
      transform .12s cubic-bezier(.2,.8,.2,1),
      padding-top .14s cubic-bezier(.2,.8,.2,1),
      padding-bottom .14s cubic-bezier(.2,.8,.2,1) !important;
  }
}


/* Final: Beim Schließen gibt es keinen weißen Leerraum mehr */
details.modern-accordion:not([open]) > .accordion-content,
details.modern-accordion > .accordion-content[hidden]{
  display:none !important;
  height:0 !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  margin:0 !important;
  opacity:0 !important;
  overflow:hidden !important;
}

details.modern-accordion:not([open]){
  display:block !important;
  overflow:hidden !important;
}

details.modern-accordion:not([open]) > summary{
  border-bottom:0 !important;
  border-radius:var(--radius) !important;
}

details.modern-accordion:not([open]) > summary::after{
  content:"+" !important;
}

details.modern-accordion[open] > .accordion-content:not([hidden]){
  display:grid !important;
  overflow:hidden;
  transition:
    height .28s cubic-bezier(.16,1,.3,1),
    opacity .22s cubic-bezier(.2,.8,.2,1),
    transform .22s cubic-bezier(.2,.8,.2,1) !important;
}

details.modern-accordion.is-open > .accordion-content,
details.modern-accordion.is-opening > .accordion-content{
  padding-top:1rem !important;
  padding-bottom:1rem !important;
  opacity:1;
  transform:translateY(0);
}

details.modern-accordion.is-open > summary::after,
details.modern-accordion.is-opening > summary::after{
  content:"–" !important;
}


/* STABILE Accordion-Version: geschlossen = wirklich komplett weg */
details.modern-accordion{
  display:block !important;
  overflow:hidden !important;
}

details.modern-accordion > .accordion-content[hidden]{
  display:none !important;
}

details.modern-accordion:not([open]) > .accordion-content{
  display:none !important;
}

details.modern-accordion > .accordion-content{
  display:grid !important;
  gap:16px;
  overflow:hidden !important;
  height:0;
  opacity:0;
  transform:translateY(-4px);
  padding-top:1rem !important;
  padding-bottom:1rem !important;
  transition:
    height .24s cubic-bezier(.16,1,.3,1),
    opacity .18s cubic-bezier(.2,.8,.2,1),
    transform .18s cubic-bezier(.2,.8,.2,1) !important;
  animation:none !important;
}

details.modern-accordion.is-opening > .accordion-content,
details.modern-accordion.is-open > .accordion-content{
  opacity:1 !important;
  transform:translateY(0) !important;
}

details.modern-accordion:not([open]) > summary{
  border-bottom:0 !important;
  border-radius:var(--radius) !important;
}

details.modern-accordion[open] > summary,
details.modern-accordion.is-opening > summary,
details.modern-accordion.is-open > summary{
  border-bottom:1px solid var(--line);
  border-radius:var(--radius) var(--radius) 0 0;
}

details.modern-accordion:not([open]) > summary::after{
  content:"+" !important;
}

details.modern-accordion[open] > summary::after,
details.modern-accordion.is-opening > summary::after,
details.modern-accordion.is-open > summary::after{
  content:"–" !important;
}

details.modern-accordion > summary{
  -webkit-tap-highlight-color:transparent;
}


/* Test-Design: kompakte Content-Spalte links + ruhiger Bildbereich rechts */
body:not(.home-showcase) .page-shell{
  width:min(calc(100% - 32px),1320px);
  display:grid;
  grid-template-columns:minmax(0,1fr) 250px;
  gap:44px;
  align-items:start;
  margin-top:-10px;
}

body:not(.home-showcase) .content-page{
  min-width:0;
}

.page-photo-panel{
  position:sticky;
  top:96px;
  min-height:560px;
  border-radius:2px;
  overflow:hidden;
}

.photo-panel-inner{
  min-height:560px;
  display:grid;
  place-items:center;
  background:#102033;
  color:#fff;
  font-size:1.1rem;
  font-weight:560;
  text-align:center;
  padding:1rem;
}

html[data-theme="dark"] .photo-panel-inner{
  background:#07121d;
  color:#ebf3fb;
}

/* Hero im neuen Layout etwas kompakter, damit links mehr Fokus entsteht */
body:not(.home-showcase) .hero{
  padding-bottom:34px;
}

body:not(.home-showcase) .hero-inner{
  width:min(calc(100% - 32px),1320px);
}

/* Footer bleibt optisch an der linken Content-Spalte orientiert */
body:not(.home-showcase) .site-footer{
  width:min(calc(100% - 32px),1320px);
}

/* Tablet/Mobile: rechte Spalte verschwindet, Inhalt bleibt breit */
@media (max-width:1050px){
  body:not(.home-showcase) .page-shell{
    grid-template-columns:1fr;
    gap:18px;
  }

  .page-photo-panel{
    display:none;
  }
}

@media (min-width:1051px){
  body:not(.home-showcase) .content-page{
    max-width:960px;
  }
}


/* Rücknahme Test-Design: rechte Foto-Spalte deaktiviert */
.page-photo-panel{
  display:none!important;
}

body:not(.home-showcase) .page-shell{
  width:min(calc(100% - 28px),var(--max))!important;
  display:block!important;
  margin:0 auto 64px!important;
}

body:not(.home-showcase) .content-page{
  max-width:none!important;
}

body:not(.home-showcase) .hero-inner{
  width:min(100%,var(--max))!important;
}

body:not(.home-showcase) .site-footer{
  width:min(calc(100% - 28px),var(--max))!important;
}


/* Schulischer, lebendiger Look: mehr Farbe und mehr Fotos */
:root{
  --school-blue-soft:#e7f3ff;
  --school-yellow-soft:#fff3c8;
  --school-green-soft:#e6f7df;
  --school-pink-soft:#fde5ef;
  --school-purple-soft:#efe8ff;
  --school-orange-soft:#ffe8d2;
}
body{
  background:
    radial-gradient(circle at 6% 8%, rgba(255, 220, 120, .12), transparent 16rem),
    radial-gradient(circle at 96% 5%, rgba(126, 196, 255, .14), transparent 18rem),
    radial-gradient(circle at 20% 92%, rgba(170, 230, 180, .13), transparent 18rem),
    linear-gradient(180deg,#f8fbff 0%, #eef4fb 100%);
}
.hero-bg{
  background:linear-gradient(120deg, rgba(126,196,255,.16), rgba(255,240,184,.16) 45%, rgba(182,234,192,.14));
}
.hero-card{
  background:linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,245,214,.95));
  border:1px solid rgba(244,211,111,.42);
}
.hero-card span{
  color:#0f7c86;
}
.eyebrow{
  background:rgba(255,255,255,.88);
  border-color:rgba(172,198,225,.9);
}
.site-header{
  background:rgba(255,255,255,.92);
  box-shadow:0 10px 28px rgba(17,42,77,.08);
}
.brand-mark{
  background:linear-gradient(135deg,#14598b,#1ba0aa);
}
.site-nav a.active,
.home-showcase .site-nav a.active{
  background:linear-gradient(135deg,#1b5f98,#2a83b6);
  box-shadow:0 8px 18px rgba(27,95,152,.18);
}
.quick-links a,
.showcase-links a{
  background:linear-gradient(135deg,#1b5f98,#2a83b6);
}
.mini-info-card:nth-child(1), .overview-card:nth-child(1){background:linear-gradient(180deg,#fff,#eef7ff)}
.mini-info-card:nth-child(2), .overview-card:nth-child(2){background:linear-gradient(180deg,#fff,#fff8dc)}
.mini-info-card:nth-child(3), .overview-card:nth-child(3){background:linear-gradient(180deg,#fff,#eefbe7)}
.mini-info-card:nth-child(4), .overview-card:nth-child(4){background:linear-gradient(180deg,#fff,#f9ecff)}

.page-photo-strip{
  width:min(calc(100% - 28px), var(--max));
  margin:18px auto 14px;
  display:grid;
  gap:14px;
}
.showcase-photo-strip{width:100%; margin:14px 0 16px}
.strip-head{
  display:flex;
  flex-direction:column;
  gap:.25rem;
}
.strip-head h2{
  margin:0;
  font-size:clamp(1.3rem,2vw,1.8rem);
  line-height:1.02;
  letter-spacing:-.03em;
  color:#0c2339;
}
.strip-head p:last-child{margin:0;color:var(--muted)}
.photo-strip-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.photo-tile{
  margin:0;
  overflow:hidden;
  border-radius:22px;
  background:#fff;
  border:1px solid rgba(219,230,240,.9);
  box-shadow:var(--shadow-soft);
}
.photo-tile img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  display:block;
}
.photo-tile figcaption{
  padding:.8rem .95rem;
  font-weight:700;
  color:#17314d;
  background:linear-gradient(180deg, rgba(255,255,255,.95), rgba(241,247,252,.92));
}
.content-page>.accordion-group>details.modern-accordion:nth-child(5n+1)>summary{background:linear-gradient(180deg,#fff,#eef7ff)}
.content-page>.accordion-group>details.modern-accordion:nth-child(5n+2)>summary{background:linear-gradient(180deg,#fff,#fff5dc)}
.content-page>.accordion-group>details.modern-accordion:nth-child(5n+3)>summary{background:linear-gradient(180deg,#fff,#eefbe9)}
.content-page>.accordion-group>details.modern-accordion:nth-child(5n+4)>summary{background:linear-gradient(180deg,#fff,#f9eeff)}
.content-page>.accordion-group>details.modern-accordion:nth-child(5n+5)>summary{background:linear-gradient(180deg,#fff,#fff0e3)}

.modern-accordion>summary::before,
.modern-accordion>summary[data-icon]::before{
  background:rgba(255,255,255,.78)!important;
  border:1px solid rgba(205,220,236,.9)!important;
}

.image img,
.hero-school-image,
.photo-tile img{
  border-radius:0;
}
.frame,
.modern-accordion,
.content-page>.row,
.content-page>div:not(.accordion-group):not(.row){
  background:rgba(255,255,255,.9);
}
html[data-theme="dark"] body{
  background:
    radial-gradient(circle at 5% 8%, rgba(242,195,94,.10), transparent 16rem),
    radial-gradient(circle at 92% 4%, rgba(75,145,214,.12), transparent 18rem),
    radial-gradient(circle at 20% 90%, rgba(85,198,207,.10), transparent 18rem),
    linear-gradient(180deg,#0d1721 0%, #122030 100%);
}
html[data-theme="dark"] .hero-card{background:linear-gradient(135deg, rgba(19,33,48,.96), rgba(28,46,65,.96)); border-color:rgba(85,198,207,.24)}
html[data-theme="dark"] .photo-tile{background:#132130;border-color:var(--line)}
html[data-theme="dark"] .photo-tile figcaption{background:linear-gradient(180deg, rgba(19,33,48,.96), rgba(16,27,39,.96));color:#e8f2fb}
html[data-theme="dark"] .content-page>.accordion-group>details.modern-accordion:nth-child(5n+1)>summary,
html[data-theme="dark"] .content-page>.accordion-group>details.modern-accordion:nth-child(5n+2)>summary,
html[data-theme="dark"] .content-page>.accordion-group>details.modern-accordion:nth-child(5n+3)>summary,
html[data-theme="dark"] .content-page>.accordion-group>details.modern-accordion:nth-child(5n+4)>summary,
html[data-theme="dark"] .content-page>.accordion-group>details.modern-accordion:nth-child(5n+5)>summary{background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.06))}
@media (max-width:900px){
  .photo-strip-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .page-photo-strip{width:min(calc(100% - 18px), var(--max)); margin:12px auto}
  .photo-strip-grid{grid-template-columns:1fr; gap:10px}
  .photo-tile{border-radius:18px}
  .photo-tile figcaption{padding:.7rem .8rem;font-size:.92rem}
}


/* Weniger Hinweistexte, mehr Fokus auf Inhalte und Fotos */
.page-photo-strip{
  gap:10px;
}
.site-footer strong{
  display:block;
}
.site-footer p{
  display:none !important;
}
.hero-card{
  display:none !important;
}


/* Header/Nav bleibt beim Seitenwechsel ruhig und springt nicht */
.site-header,
.home-showcase .site-header,
.home-compact .site-header{
  animation:none!important;
  transform:none!important;
  transition:none!important;
  min-height:58px;
}

.site-header *{
  transform:none;
}

.site-nav{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:max-content;
  align-items:center;
  justify-content:end;
}

.site-nav a,
.home-showcase .site-nav a,
.home-compact .site-nav a{
  box-sizing:border-box;
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:.58rem .78rem!important;
  transform:none!important;
  transition:
    background-color .18s ease,
    color .18s ease,
    box-shadow .18s ease!important;
}

.site-nav a:hover,
.site-nav a.active,
.home-showcase .site-nav a:hover,
.home-showcase .site-nav a.active{
  transform:none!important;
}

/* Feste Breiten pro Navigationspunkt, damit beim Wechseln nichts nach links/rechts rutscht */
.site-nav a[href="startseite-1.html"]{min-width:92px}
.site-nav a[href="unsere-schule.html"]{min-width:122px}
.site-nav a[href="neuorganisation.html"]{min-width:112px}
.site-nav a[href="neu-lernen.html"]{min-width:82px}
.site-nav a[href="neu-zusammenarbeit.html"]{min-width:142px}
.site-nav a[href="neu-unesco.html"]{min-width:190px}
.site-nav a[href="impressum.html"]{min-width:98px}

/* Seiteninhalt darf animieren, die Leiste selbst nicht */
.scroll-reveal.site-header{
  opacity:1!important;
  filter:none!important;
  transform:none!important;
}

/* Mobile: Menü bleibt normal untereinander, keine festen Desktop-Breiten */
@media (max-width:980px){
  .site-nav{
    display:none;
    grid-auto-flow:row;
    grid-auto-columns:auto;
    justify-content:stretch;
  }

  .site-header.nav-open .site-nav{
    display:grid;
  }

  .site-nav a,
  .home-showcase .site-nav a,
  .home-compact .site-nav a{
    min-width:0!important;
    width:100%;
    justify-content:flex-start;
  }
}


/* Website-Logo */
.brand-with-logo{
  min-width:260px;
  max-width:310px;
  overflow:hidden;
}

.brand-logo{
  display:block;
  width:100%;
  height:46px;
  object-fit:contain;
  object-position:left center;
}

.full-logo-section{
  width:100%;
  margin:14px 0;
  padding:18px;
  border:1px solid var(--line);
  border-radius:22px;
  background:rgba(255,255,255,.9);
  box-shadow:var(--shadow-soft);
  display:flex;
  align-items:center;
  justify-content:center;
}

.full-logo-section img{
  display:block;
  width:min(620px,100%);
  height:auto;
  object-fit:contain;
}

html[data-theme="dark"] .full-logo-section{
  background:rgba(19,33,48,.9);
  border-color:var(--line);
}

@media (max-width:980px){
  .brand-with-logo{
    min-width:220px;
    max-width:240px;
  }
  .brand-logo{
    height:42px;
  }
}

@media (max-width:640px){
  .brand-with-logo{
    min-width:170px;
    max-width:190px;
  }
  .brand-logo{
    height:38px;
  }
  .full-logo-section{
    padding:12px;
    border-radius:18px;
  }
}


/* Neues quadratisches Logo im Header + großes zentriertes Logo auf der Website */
.school-brand{
  display:flex;
  align-items:center;
  gap:.8rem;
  min-width:0;
}

.brand-mark-image{
  width:46px;
  height:46px;
  padding:0;
  background:transparent !important;
  box-shadow:none !important;
  border:none !important;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.brand-mark-image img{
  width:46px;
  height:46px;
  object-fit:contain;
  object-position:center;
  display:block;
}

.full-logo-section{
  width:min(calc(100% - 28px), var(--max));
  margin:18px auto 12px;
  padding:18px 20px;
  border:1px solid var(--line);
  border-radius:22px;
  background:rgba(255,255,255,.92);
  box-shadow:var(--shadow-soft);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.full-logo-section img{
  display:block;
  width:min(760px,100%);
  max-height:180px;
  object-fit:contain;
  object-position:center;
  margin:0 auto;
}

html[data-theme="dark"] .full-logo-section{
  background:rgba(19,33,48,.92);
  border-color:var(--line);
}

@media (max-width:980px){
  .brand-mark-image,
  .brand-mark-image img{
    width:42px;
    height:42px;
  }
}

@media (max-width:640px){
  .full-logo-section{
    padding:14px;
    border-radius:18px;
  }
  .full-logo-section img{
    max-height:120px;
  }
}
