:root{
  --blue:#11458F;
  --orange:#EC661B;

  /* Neutrals (80%) */
  --n0:#FAFAFB;   /* background */
  --n1:#FFFFFF;   /* surface */
  --n2:#E6E8EC;   /* borders */
  --n3:#6B7280;   /* secondary text */
  --n4:#111827;   /* primary text */

  --radius:16px;
  --shadow: 0 10px 30px rgba(17,24,39,.08);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--n0);
  color:var(--n4);
  line-height:1.55;
}

.container{max-width:1100px;margin:0 auto;padding:0 18px}
a{color:var(--blue)}
a:hover{opacity:.9}

/* Header */
.header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--n2);
}
.header__inner{
  display:flex;
  align-items:center;
  gap:14px;
  min-height:72px;
}
.brand{display:flex;flex-direction:column;gap:2px;text-decoration:none}
.brand__name{font-weight:800;letter-spacing:.2px;color:var(--blue);font-size:18px}
.brand__tagline{font-size:12px;color:var(--n3)}
.navwrap{margin-left:auto}
.header__cta{display:none}
@media (min-width: 860px){
  .header__cta{display:block}
}

/* Navigation */
.nav{
  list-style:none;
  display:flex;
  gap:10px;
  margin:0;
  padding:0;
  align-items:center;
}
.nav__link{
  display:inline-flex;
  align-items:center;
  padding:10px 12px;
  border-radius:12px;
  text-decoration:none;
  color:var(--blue);
  font-weight:600;
}
.nav__link:hover{background:var(--n0)}
.nav__link.is-active{background:rgba(17,69,143,.10)}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:14px;
  font-weight:800;
  text-decoration:none;
  border:1px solid transparent;
}
.btn--primary{
  background:var(--orange);            /* 5% Orange only on neutral */
  color:#fff;
  box-shadow: 0 10px 25px rgba(236,102,27,.18);
}
.btn--primary:hover{transform: translateY(-1px)}
.btn--ghost{
  background:transparent;
  border-color:var(--n2);
  color:var(--blue);
}

/* Main */
.main{padding:26px 0}
.content-surface{
  background:var(--n1);
  border:1px solid var(--n2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

/* Typography for content */
.content-surface h1{
  font-size: clamp(28px, 3vw, 40px);
  line-height:1.15;
  margin:0 0 10px 0;
  color:var(--n4);
  letter-spacing:-.3px;
}
.content-surface h2{
  font-size: clamp(22px, 2.2vw, 28px);
  margin:28px 0 10px;
  color:var(--blue); /* 15% Blue */
  letter-spacing:-.2px;
}
.content-surface h3{
  font-size: 18px;
  margin:22px 0 8px;
  color:var(--n4);
}
.content-surface p{
  margin: 0 0 14px 0;
  color: var(--n4);
}
.content-surface p strong{color:var(--n4)}
.content-surface ul, .content-surface ol{margin: 0 0 16px 18px}
.content-surface li{margin: 6px 0}

/* nice separators */
.content-surface hr{
  border:0;
  border-top:1px solid var(--n2);
  margin:22px 0;
}

/* Links inside content */
.content-surface a{
  color:var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Small “callout” card you can use via a quote element in content */
.content-surface blockquote{
  margin:18px 0;
  padding:14px 16px;
  border:1px solid var(--n2);
  border-left:6px solid rgba(17,69,143,.35);
  border-radius:14px;
  background: #fff;
  color: var(--n4);
}

/* Footer */
.footer{
  margin-top:26px;
  border-top:1px solid var(--n2);
  background:var(--n1);
}
.footer__inner{
  padding:18px 0;
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
.footer__left{color:var(--n4)}
.footer__right{color:var(--n3);display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.footer__bottom{padding:10px 0 18px;color:var(--n3)}
.link{color:var(--blue);text-decoration:none;font-weight:600}
.link:hover{text-decoration:underline}
.sep{color:var(--n2)}
/* ===== TYPO3 Content Styling ===== */

/* Standard wrapper from our template */
.content-surface > *:first-child { margin-top: 0; }

/* TYPO3 content element spacing */
.content-surface .ce-element,
.content-surface .frame {
  margin: 0 0 18px 0;
}

/* Headings */
.content-surface h1, .content-surface h2, .content-surface h3 {
  font-weight: 800;
}
.content-surface h1 { margin: 0 0 12px; }
.content-surface h2 { margin: 26px 0 10px; }
.content-surface h3 { margin: 20px 0 8px; }

/* Make “header” content element look like a hero title when it is first */
.content-surface .ce-headline:first-child h1,
.content-surface .ce-headline:first-child h2 {
  font-size: clamp(30px, 3.2vw, 44px);
  letter-spacing: -0.4px;
}

/* Text */
.content-surface p { max-width: 72ch; }

/* Links */
.content-surface a { font-weight: 650; }

/* Optional: call-to-action link style (use in editor: create link and add class "btn btn--primary") */
.content-surface a.btn { text-decoration: none; }

/* Simple “card” look for certain frames if TYPO3 outputs frame classes */
.content-surface .frame-frame1,
.content-surface .frame-frame2 {
  padding: 16px;
  border: 1px solid var(--n2);
  border-radius: 14px;
  background: var(--n1);
}
/* ===== Hero polish ===== */
.content-surface{
  padding: 30px;
}
.content-surface .ce-headline:first-child{
  margin-bottom: 8px;
}
.content-surface .ce-headline:first-child h1,
.content-surface .ce-headline:first-child h2{
  color: var(--blue);
}
.content-surface .ce-text:first-of-type p{
  font-size: 18px;
  color: var(--n3);
  margin-bottom: 18px;
}
/* ===== Universal TYPO3 Hero (works with frame / ce-* / plain) ===== */

/* First content element in the surface */
.content-surface > *:first-child{
  margin-top: 0 !important;
}

/* Make the first headline look like a hero */
.content-surface > *:first-child h1,
.content-surface > *:first-child h2{
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.4px;
  color: var(--blue);
  margin-top: 0;
}

/* Make the first paragraph feel like an intro */
.content-surface p:first-of-type{
  font-size: 18px;
  color: var(--n3);
  margin-top: 8px;
  margin-bottom: 18px;
  max-width: 72ch;
}

/* Give each TYPO3 content element nice spacing */
.content-surface .frame,
.content-surface [class*="ce-"],
.content-surface [class*="frame-type-"]{
  margin-bottom: 18px;
}
/* ===== TYPO3 content (frame-*) polish ===== */

/* Spacing */
.content-surface .frame{
  margin: 0 0 18px 0;
}

/* First header element as hero */
.content-surface .frame-type-header:first-of-type h1,
.content-surface .frame-type-header:first-of-type h2{
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.4px;
  color: var(--blue);
  margin: 0 0 10px 0;
}

/* First text block as intro */
.content-surface .frame-type-text:first-of-type p{
  font-size: 18px;
  color: var(--n3);
  margin-top: 6px;
  margin-bottom: 18px;
  max-width: 72ch;
}
/* ===== Buttons in Content ===== */
.content-surface a.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  font-weight:800;
  text-decoration:none;
  border:1px solid transparent;
}

.content-surface a.btn--primary{
  background: var(--orange);
  color:#fff;
  box-shadow: 0 10px 25px rgba(236,102,27,.18);
}
.content-surface a.btn--primary:hover{transform: translateY(-1px)}
.card a.btn--primary{ width: fit-content; }
.card:hover{
  transform: translateY(-2px);
  transition: transform .12s ease;
}
/* TEST */
.card { outline: 3px solid red !important; }
.card{
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(17,69,143,.25);
  box-shadow: 0 14px 34px rgba(17,24,39,.10);
}

/* Mobile/Touch: immer leicht “raised”, weil kein hover */
@media (hover: none){
  .card{
    box-shadow: 0 10px 26px rgba(17,24,39,.08);
  }
}
/* ===== Kursdetail ===== */
.course-hero{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
  margin: 10px 0 18px;
}
@media (min-width: 860px){
  .course-hero{ grid-template-columns: 1.2fr .8fr; }
}

.course-box{
  background: var(--n1);
  border: 1px solid var(--n2);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(17,24,39,.06);
}

.course-meta{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px 14px;
  margin-top: 10px;
}
.course-meta .item{ color: var(--n3); font-size: 13px; }
.course-meta .value{ color: var(--n4); font-weight: 800; margin-top: 2px; }

.course-cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 12px;
}
.course-cta .btn{ width: fit-content; }

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--n2);
  background: var(--n0);
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
}
.content-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 980px){
  .content-grid{
    grid-template-columns: 1.35fr .65fr;
    align-items:start;
  }
  .sidebar .content-surface{
    position: sticky;
    top: 92px;
  }
}
/* Sidebar course list */
.course-list{ list-style:none; padding:0; margin:10px 0 0; display:flex; flex-direction:column; gap:10px; }
.course-list li{ padding:10px; border:1px solid var(--n2); border-radius:14px; background:var(--n1); }
.course-list__meta{ font-size:12px; color:var(--n3); margin-bottom:6px; }
.course-list a{ text-decoration:none; font-weight:800; color:var(--blue); }
.course-list a:hover{ text-decoration:underline; }
