/* Zukunftskompetenz-Challenge — IDG Design Tokens & Komponenten
   Visuell angelehnt an idg-teacher-guide, eigenständig in diesem Projekt. */

/* Inter wird in den HTML-Seiten per <link> geladen, nicht per @import. */

:root {
  /* IDG Brand colors */
  --idg-being: #D4B88C;
  --idg-thinking: #E585A1;
  --idg-relating: #EF4136;
  --idg-collaborating: #FF7E2A;
  --idg-acting: #661A30;
  --idg-white: #FFFFFF;
  --idg-grey-light: #FAF7F5;
  --idg-black: #000000;
  --idg-intro: rgba(0, 0, 0, 0.62);

  /* Semantic */
  --surface-page: var(--idg-grey-light);
  --surface-card: var(--idg-white);
  --surface-inverse: var(--idg-black);
  --text-body: var(--idg-black);
  --text-muted: rgba(0, 0, 0, 0.62);
  --text-inverse: var(--idg-white);
  --border-subtle: rgba(0, 0, 0, 0.14);
  --border-hair: rgba(0, 0, 0, 0.12);

  /* Typography */
  --font-sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --weight-light: 300;
  --weight-regular: 400;
  --weight-semibold: 600;
  --weight-bold: 700;
  --leading-tight: 1.12;
  --leading-normal: 1.5;
  --tracking-display: -0.02em;
  --tracking-caps: 0.08em;

  /* Spacing & shape */
  --lp-r: 20px;
  --lp-r-card: 12px;
  --lp-r-in: 6px;
  --radius-pill: 999px;
  --lp-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.30), 0 3px 10px -6px rgba(0, 0, 0, 0.10);
  --ease-brand: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur-med: 220ms;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: 16px;
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--idg-black);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity var(--dur-fast) var(--ease-brand);
}

a:hover { opacity: 0.6; }

::selection {
  background: var(--idg-being);
  color: var(--idg-black);
}

.site {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site > main { flex: 1 0 auto; }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--idg-grey-light) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-hair);
}

.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding-block: 12px;
}

.top-mark {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
}

.top-mark:hover { opacity: 1; }

.top-mark svg { display: block; flex: none; }

.top-mark b { font-weight: var(--weight-bold); }

.top-nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.top-nav a {
  font-size: 14px;
  font-weight: var(--weight-semibold);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.top-nav a:hover { opacity: 0.55; }

.top-back {
  font-size: 14px;
  font-weight: var(--weight-semibold);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border-hair);
  background: var(--idg-white);
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: var(--weight-regular);
  text-decoration: none;
}

.mobile-nav a.is-cta {
  font-weight: var(--weight-bold);
}

@media (min-width: 768px) {
  .top-nav { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 26px;
  border: 1px solid var(--idg-black);
  border-radius: var(--radius-pill);
  background: var(--idg-black);
  color: var(--idg-white);
  font: inherit;
  font-size: 14.5px;
  font-weight: var(--weight-semibold);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-brand),
              color var(--dur-fast) var(--ease-brand),
              transform var(--dur-fast) var(--ease-brand);
}

.btn:hover {
  background: transparent;
  color: var(--idg-black);
  opacity: 1;
}

.btn:active { transform: scale(0.97); }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-block { width: 100%; }

.btn-lg {
  height: 52px;
  padding: 0 32px;
  font-size: 16px;
}

.btn-sm {
  height: 38px;
  padding: 0 18px;
  font-size: 13px;
}

/* --- Hero --- */
.hero {
  padding: 76px 0 96px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 6px 16px;
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-pill);
  background: var(--idg-white);
  font-size: 13px;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 auto 22px;
  max-width: 16ch;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  font-weight: var(--weight-bold);
}

.hero h1 em {
  display: block;
  font-style: normal;
  font-weight: var(--weight-light);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -56px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--idg-black);
  color: var(--idg-white);
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-lead {
  margin: 0 auto 16px;
  max-width: 54ch;
  font-size: 18px;
  font-weight: var(--weight-light);
  line-height: 1.5;
  text-wrap: pretty;
}

.hero-lead + .hero-lead {
  margin-bottom: 30px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 800px;
  margin: 36px auto 0;
  text-align: left;
}

.fact {
  margin: 0;
  background: var(--idg-white);
  border-radius: var(--lp-r-card);
  padding: 14px 16px;
  box-shadow: var(--lp-shadow);
}

.fact dt {
  margin: 0;
  font-size: 11px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: var(--weight-semibold);
}

.fact dd {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: var(--weight-semibold);
}

.hero-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  font-weight: var(--weight-light);
  color: var(--text-muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* --- Sections --- */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--idg-white);
}

.sec-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.sec-head h2,
.page h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  font-weight: var(--weight-bold);
}

.sec-head h2 em,
.page h1 em {
  display: block;
  font-style: normal;
  font-weight: var(--weight-light);
}

.sec-head h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  font-weight: var(--weight-bold);
}

.sec-lead,
.page-lead {
  margin: 0;
  max-width: 62ch;
  font-size: 16px;
  font-weight: var(--weight-light);
  text-wrap: pretty;
  color: var(--text-muted);
}

.sec-head .sec-lead,
.page-lead {
  margin: 0 auto;
}

/* --- Cards --- */
.card {
  background: var(--idg-white);
  border-radius: var(--lp-r);
  box-shadow: var(--lp-shadow);
  padding: 28px 26px;
}

.card h3,
.card h4 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  font-weight: var(--weight-light);
  line-height: 1.45;
  text-wrap: pretty;
  color: var(--text-muted);
}

.card-icon-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.card-icon-row h4 { margin: 0; font-size: 20px; }

.card-stack { display: flex; flex-direction: column; gap: 20px; }

.use-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}

.use-col {
  padding: 28px 26px 32px;
  background: var(--idg-white);
  border-radius: var(--lp-r);
  box-shadow: var(--lp-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.use-col h3 {
  margin: 0;
  font-size: 18px;
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
}

.use-col p {
  margin: 0;
  font-size: 14.5px;
  font-weight: var(--weight-light);
  line-height: 1.45;
  text-wrap: pretty;
  color: var(--text-muted);
}

/* --- Check list --- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 48rem;
  margin: 0 auto;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 18px;
  font-weight: var(--weight-regular);
  line-height: 1.35;
}

.check-mark {
  flex: none;
  margin-top: 2px;
  color: var(--idg-black);
}

.check-item strong { font-weight: var(--weight-bold); }

.list-diamonds {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-diamonds li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: var(--weight-light);
  line-height: 1.45;
  color: var(--text-muted);
}

.list-diamonds li::before {
  content: "◆";
  flex: none;
  font-size: 12px;
  line-height: 1.6;
  color: var(--idg-black);
}

/* --- Program bands --- */
.dims-body { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.bands {
  border-radius: var(--lp-r);
  overflow: hidden;
  box-shadow: var(--lp-shadow);
}

.band-in {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 26px 28px;
}

.band-week {
  flex: none;
  font-size: 11px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  font-weight: var(--weight-semibold);
  opacity: 0.72;
}

.band-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.18;
}

.band-name {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: var(--weight-bold);
}

.band-intro {
  flex: 1.4;
  min-width: 0;
  margin: 0;
  font-size: 14.5px;
  font-weight: var(--weight-light);
  line-height: 1.45;
  text-wrap: pretty;
  opacity: 0.92;
}

.band--intro {
  background: var(--idg-white);
  color: var(--idg-black);
}

.band--intro .band-intro { opacity: 0.72; }

.finish-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 10px 20px;
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-pill);
  background: var(--idg-white);
  font-size: 14px;
  font-weight: var(--weight-semibold);
}

.finish-wrap { text-align: center; }

/* --- Signup --- */
.signup {
  text-align: center;
}

.signup-icon {
  display: block;
  margin: 0 auto 20px;
  color: var(--idg-black);
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 32rem;
  margin: 0 auto;
  text-align: left;
}

.field { display: flex; flex-direction: column; gap: 6px; width: 100%; }

.field span {
  font-size: 11px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  font-weight: var(--weight-semibold);
  opacity: 0.55;
}

.field input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 16px;
  font-weight: var(--weight-regular);
  color: var(--idg-black);
  background: var(--idg-white);
  border: 1px solid var(--border-hair);
  border-radius: var(--lp-r-in);
  padding: 14px 16px;
}

.field input:focus-visible {
  outline: 2px solid var(--idg-black);
  outline-offset: 2px;
}

.field input:disabled { opacity: 0.5; cursor: not-allowed; }

.field-with-icon { position: relative; }

.field-with-icon input { padding-left: 44px; }

.field-with-icon .field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.form-note {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: var(--weight-light);
  color: var(--text-muted);
  text-align: center;
}

.alert {
  padding: 12px 14px;
  border-radius: var(--lp-r-in);
  font-size: 14px;
  line-height: 1.4;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--idg-white);
  border-radius: var(--lp-r-card);
  box-shadow: var(--lp-shadow);
  overflow: hidden;
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 15px;
  font-weight: var(--weight-bold);
  text-align: left;
  cursor: pointer;
}

.faq-trigger:hover { background: rgba(0, 0, 0, 0.03); }

.faq-answer {
  padding: 0 22px 18px;
  font-size: 14.5px;
  font-weight: var(--weight-light);
  line-height: 1.45;
  color: var(--text-muted);
  border-top: 1px solid var(--border-hair);
  padding-top: 14px;
}

.faq-item details > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: var(--weight-bold);
}

.faq-item details > summary::-webkit-details-marker {
  display: none;
}

/* --- Footer --- */
.foot {
  margin-top: auto;
  background: var(--idg-black);
  color: var(--idg-white);
  padding: 56px 0 48px;
}

.foot-in {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 48px 80px;
  align-items: start;
}

.foot-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.foot-brand img {
  height: 52px;
  width: auto;
  background: var(--idg-white);
  border-radius: var(--lp-r-in);
  padding: 8px 12px;
}

.foot-brand p {
  margin: 0;
  max-width: 42ch;
  font-size: 13.5px;
  font-weight: var(--weight-light);
  color: rgba(255, 255, 255, 0.68);
  text-wrap: pretty;
}

.foot-brand a,
.foot-col a {
  color: inherit;
  text-underline-offset: 3px;
}

.foot-brand a:hover,
.foot-col a:hover {
  color: var(--idg-white);
  opacity: 1;
}

.foot-nav { display: flex; flex-wrap: wrap; gap: 56px; }

.foot-col h2 {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  font-weight: var(--weight-semibold);
  color: rgba(255, 255, 255, 0.48);
}

.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-col a {
  font-size: 14.5px;
  font-weight: var(--weight-light);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.86);
}

.foot-col a:hover { text-decoration: underline; }

/* --- Inner pages --- */
.page { padding: 64px 0 8px; }

.page h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.2vw, 48px);
  max-width: 18ch;
}

.page-lead {
  margin: 0 0 36px;
  max-width: 58ch;
  font-size: 18px;
}

.prose { max-width: 64ch; }

.prose-card {
  background: var(--idg-white);
  border-radius: var(--lp-r);
  box-shadow: var(--lp-shadow);
  padding: 32px 28px;
}

.prose h2 {
  margin: 36px 0 10px;
  font-size: 20px;
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: var(--weight-bold);
}

.prose p {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: var(--weight-light);
  line-height: 1.55;
  text-wrap: pretty;
  color: var(--text-muted);
}

.prose ul {
  margin: 0 0 16px;
  padding: 0 0 0 1.15em;
  font-size: 16px;
  font-weight: var(--weight-light);
  line-height: 1.55;
  color: var(--text-muted);
}

.prose li { margin: 0 0 6px; }

.prose a { color: var(--idg-black); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.center-block { text-align: center; }

.center-block .page-lead { margin-left: auto; margin-right: auto; }

.spin { animation: spin 1s linear infinite; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 48px; height: 48px; }

.hidden { display: none !important; }

@media (max-width: 980px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .use-grid { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; gap: 36px; }
  .band-in { flex-wrap: wrap; }
  .band-intro { flex-basis: 100%; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .facts { grid-template-columns: 1fr; }
  .wrap, .dims-body { padding: 0 18px; }
  .top > .wrap { padding-inline: 24px; }
  .hero { padding: 44px 0 64px; }
  .section { padding: 72px 0; }
  .band-in { padding: 22px 20px; gap: 16px; }
  .foot { padding: 40px 0 36px; }
  .foot-nav { gap: 36px; }
  .page { padding-top: 40px; }
  .page-lead { font-size: 16.5px; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
