:root {
  --navy: #12384b;
  --blue: #0077a8;
  --blue-dark: #005a7d;
  --orange: #ef982f;
  --text: #263640;
  --muted: #65757e;
  --soft: #f4f7f9;
  --line: #dbe5ea;
  --white: #fff;
  --shadow: 0 14px 34px rgba(15, 46, 63, .09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.65;
}

a {
  color: var(--blue-dark);
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.preview-notice {
  padding: 7px 15px;
  color: #513600;
  background: #fff3d6;
  border-bottom: 1px solid #efd59b;
  text-align: center;
  font-size: .82rem;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  border-radius: 50%;
}

.brand span {
  display: grid;
}

.brand small {
  color: var(--muted);
}

header nav,
.footer-grid nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

header nav a {
  text-decoration: none;
  font-weight: 700;
}

.header-cta {
  padding: .65rem 1rem;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
}

.hero {
  padding: 76px 0 68px;
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(0,119,168,.15),
      transparent 32%
    ),
    linear-gradient(#fff,#f8fbfc);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr .65fr;
  align-items: center;
  gap: 4rem;
}

.eyebrow {
  margin: 0 0 .7rem;
  color: var(--blue);
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.light {
  color: #9eddf6;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy);
  line-height: 1.15;
}

h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.3rem, 5vw, 4rem);
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  letter-spacing: -.025em;
}

.lead {
  max-width: 780px;
  color: #42545f;
  font-size: clamp(1.05rem,2vw,1.22rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
}

.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 9px 22px rgba(0,119,168,.2);
}

.secondary {
  color: var(--navy);
  background: #fff;
  border-color: var(--line);
}

.white {
  color: var(--navy);
  background: #fff;
}

.contact-mini {
  display: flex;
  max-width: 660px;
  align-items: center;
  gap: .8rem;
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.contact-mini img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}

.contact-mini div {
  display: grid;
  flex: 1;
}

.contact-mini span {
  color: var(--muted);
  font-size: .88rem;
}

.contact-mini a {
  font-weight: 750;
}

.facts {
  padding: 1.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.fact {
  display: grid;
  gap: .25rem;
  padding: 1rem .35rem;
  border-bottom: 1px solid var(--line);
}

.fact:last-child {
  border-bottom: 0;
}

.fact span {
  color: var(--muted);
  font-size: .77rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.fact strong {
  color: var(--navy);
}

.section {
  padding: 70px 0;
}

.soft {
  background: var(--soft);
}

.dark {
  color: #fff;
  background: var(--navy);
}

.dark h2,
.final h2 {
  color: #fff;
}

.section-head {
  max-width: 800px;
  margin-bottom: 2.1rem;
}

.section-head > p:last-child {
  color: var(--muted);
}

.audience-grid,
.three-grid,
.product-grid,
.knowledge-grid,
.date-grid {
  display: grid;
  gap: 1rem;
}

.audience-grid {
  grid-template-columns: repeat(4,1fr);
}

.audience,
.card,
.product,
.date-card {
  padding: 1.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.audience {
  font-weight: 700;
}

.requirement {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  background: #fff;
  border-left: 4px solid var(--orange);
}

.three-grid,
.knowledge-grid {
  grid-template-columns: repeat(3,1fr);
}

.card p,
.product p {
  color: #53646e;
}

.card a,
.product a {
  font-weight: 750;
  text-decoration: none;
}

.product-grid {
  grid-template-columns: repeat(3,1fr);
}

.product {
  display: flex;
  flex-direction: column;
}

.product a {
  margin-top: auto;
}

.pill {
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: .3rem .65rem;
  color: var(--blue-dark);
  background: #e5f5fb;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
}

.content-list,
.check-list {
  padding: 0;
  list-style: none;
}

.content-list {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: .8rem;
}

.content-list li,
.check-list li {
  position: relative;
  padding: 1rem 1rem 1rem 2.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.content-list li::before,
.check-list li::before {
  position: absolute;
  left: 1rem;
  color: var(--blue);
  content: "✓";
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 4rem;
}

.check-list {
  display: grid;
  gap: .65rem;
  margin: 0;
}

.readiness {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: .75rem;
}

.readiness label {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
}

.readiness input {
  margin-top: .35rem;
}

.privacy-note {
  color: var(--muted);
  font-size: .86rem;
}

.date-grid {
  grid-template-columns: repeat(4,1fr);
}

.date-card {
  display: grid;
  gap: .45rem;
}

.date-card span,
.date-card small {
  color: var(--muted);
}

.date-card strong {
  color: var(--navy);
  font-size: 1.18rem;
}

.date-card a {
  margin-top: .5rem;
  font-weight: 750;
}

.business-grid,
.final-grid,
.certificate,
.program {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  align-items: center;
  gap: 3rem;
}

.dark p,
.final p {
  color: #d7e7ee;
}

.business-action,
.final-actions {
  display: grid;
  gap: .75rem;
  justify-items: start;
}

.phone-link,
.final-actions > a:not(.button) {
  color: #d7e7ee;
  font-weight: 750;
}

.program {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg,#f7fafc,#fff);
}

.certificate-placeholder {
  display: grid;
  gap: .45rem;
  padding: 1.3rem;
  color: var(--muted);
  background: #fff;
  border: 1px dashed #aabac3;
  border-radius: 12px;
}

.faq {
  display: grid;
  gap: .7rem;
}

.faq details {
  padding: 1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.faq summary {
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

.final {
  padding: 72px 0;
  color: #fff;
  background: linear-gradient(135deg,#103247,#076180);
}

footer {
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-grid a {
  color: inherit;
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .business-grid,
  .final-grid,
  .certificate,
  .program {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .audience-grid,
  .three-grid,
  .product-grid,
  .knowledge-grid,
  .date-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 650px) {
  .container {
    width: min(100% - 28px,1160px);
  }

  .hero {
    padding: 50px 0;
  }

  .section,
  .final {
    padding: 52px 0;
  }

  .audience-grid,
  .three-grid,
  .product-grid,
  .knowledge-grid,
  .date-grid,
  .content-list,
  .readiness {
    grid-template-columns: 1fr;
  }

  header nav a:not(.header-cta) {
    display: none;
  }

  .brand small {
    display: none;
  }

  .contact-mini {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .footer-grid {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ========================================================================
   SEMATRAIN JAVA PREVIEW V2 — CALM SCROLL RHYTHM

   Design intent:
   - calmer continuous reading flow inspired by the successful AEVO rhythm
   - retain commercial conversion architecture
   - fewer full-width surface changes
   - fewer visual boxes where content is explanatory rather than selectable
   - preserve cards for actual choices, dates and offers
   - preserve one strong closing conversion section
   ======================================================================== */

body {
  background: #f4f7f9;
}

/*
 * Hero: quieter entry. The hierarchy comes from typography and whitespace,
 * not from another full-width coloured surface.
 */
.hero {
  padding: 52px 0 30px;
  background: transparent;
}

.hero-grid {
  gap: 2.25rem;
  align-items: start;
}

.facts {
  border-radius: 14px;
  border-color: #dce4ea;
  box-shadow: 0 8px 24px rgba(18, 38, 58, .055);
}

/*
 * Core page rhythm:
 * individual content chapters sit as calm contained sections on one
 * continuous neutral canvas, instead of alternating full-width bands.
 */
.section {
  width: min(1160px, calc(100% - 40px));
  margin: 24px auto;
  padding: clamp(30px, 4vw, 46px);
  background: #fff;
  border: 1px solid #dce4ea;
  border-radius: 16px;
  box-shadow: 0 7px 24px rgba(18, 38, 58, .04);
}

.section > .container {
  width: 100%;
  margin-inline: 0;
}

.section.soft {
  background: #fff;
}

.section-head {
  margin-bottom: 1.7rem;
}

.section-head > p:last-child {
  max-width: 780px;
}

/*
 * Keep Inhouse clearly differentiated, but contain it like a purposeful
 * content chapter rather than introducing another edge-to-edge interruption.
 */
.section.dark {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: none;
}

/*
 * Audience: explanatory information, not six competing products.
 * A simple editorial marker is enough.
 */
.audience-grid {
  gap: .9rem;
}

.audience {
  padding: .35rem 1rem;
  background: transparent;
  border: 0;
  border-left: 2px solid #cfdbe2;
  border-radius: 0;
}

/*
 * Benefits: change from tile wall to editorial columns.
 */
.three-grid {
  gap: 0;
}

.three-grid .card {
  padding: .15rem 1.5rem .15rem 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.three-grid .card + .card {
  padding-left: 1.5rem;
  border-left: 1px solid #dce4ea;
}

/*
 * Curriculum and learning outcomes read as a structured syllabus.
 */
.content-list {
  gap: 0;
  border-top: 1px solid #dce4ea;
}

.content-list li {
  padding: .9rem .75rem .9rem 2.35rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #dce4ea;
  border-radius: 0;
}

.check-list {
  gap: 0;
  border-top: 1px solid #dce4ea;
}

.check-list li {
  padding: .9rem .35rem .9rem 2.2rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #dce4ea;
  border-radius: 0;
}

/*
 * Real decisions retain cards:
 * readiness, training products, dates and knowledge destinations.
 * Their treatment is deliberately quiet and shadow-free.
 */
.readiness {
  gap: .7rem;
}

.readiness label,
.product,
.date-card,
.knowledge-grid .card {
  border-color: #dce4ea;
  border-radius: 10px;
  box-shadow: none;
}

.readiness label {
  background: #fbfcfd;
}

.product,
.date-card,
.knowledge-grid .card {
  background: #fff;
}

/*
 * Course overview remains more card-oriented because each card represents
 * an actual training choice.
 */
.product-grid {
  gap: .85rem;
}

.product {
  padding: 1.2rem;
}

/*
 * Dates are offers and therefore remain individually scannable.
 */
.date-grid {
  gap: .8rem;
}

.date-card {
  padding: 1.15rem;
}

/*
 * Program remains a meaningful higher-value offer, but without visual noise.
 */
.program {
  padding: 1.7rem;
  background: #f8fbfc;
  border-color: #dce4ea;
  border-radius: 12px;
}

/*
 * Certificate status stays explicit while remaining secondary.
 */
.certificate-placeholder {
  border-radius: 10px;
  box-shadow: none;
}

/*
 * FAQ becomes a reading list rather than another stack of cards.
 */
.faq {
  gap: 0;
  border-top: 1px solid #dce4ea;
}

.faq details {
  padding: 1rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #dce4ea;
  border-radius: 0;
}

/*
 * The final CTA intentionally remains the one strong full-width visual
 * conclusion of the commercial page.
 */
.final {
  margin-top: 30px;
}

/*
 * Mobile:
 * less nesting, smaller section-to-section distance and calmer lists.
 */
@media (max-width: 720px) {
  .hero {
    padding: 34px 0 20px;
  }

  .hero-grid {
    gap: 1.5rem;
  }

  .section {
    width: min(100% - 28px, 1160px);
    margin: 14px auto;
    padding: 28px 18px;
    border-radius: 14px;
    box-shadow: none;
  }

  .section-head {
    margin-bottom: 1.35rem;
  }

  .audience {
    padding: .35rem 0 .65rem .9rem;
  }

  .three-grid .card,
  .three-grid .card + .card {
    padding: 0 0 1rem;
    margin: 0 0 1rem;
    border-left: 0;
    border-bottom: 1px solid #dce4ea;
  }

  .three-grid .card:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .content-list li {
    padding: .82rem .2rem .82rem 2.05rem;
  }

  .check-list li {
    padding: .82rem .1rem .82rem 2rem;
  }

  .readiness label {
    padding: .9rem;
  }

  .product,
  .date-card,
  .knowledge-grid .card {
    padding: 1rem;
  }

  .program {
    padding: 1.25rem;
  }

  .faq details {
    padding: .9rem 0;
  }

  .final {
    margin-top: 18px;
    padding: 48px 0;
  }
}

/* ========================================================================
   JAVA V2 — FACHLITERATUR
   Editorial rather than card-wall presentation.
   ======================================================================== */

.literature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  border-top: 1px solid var(--line);
}

.literature-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.literature-cover-link {
  display: block;
  line-height: 0;
}

.literature-cover {
  display: block;
  width: 86px;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.literature-content {
  min-width: 0;
}

.literature-language {
  margin: 0 0 .35rem;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.literature-content h3 {
  margin: 0 0 .45rem;
  font-size: 1rem;
  line-height: 1.3;
}

.literature-subtitle {
  margin: 0 0 .55rem;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
}

.literature-content p:not(.literature-language):not(.literature-subtitle) {
  margin: 0 0 .7rem;
  font-size: .9rem;
}

.literature-link {
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
}

.literature-link:hover,
.literature-link:focus-visible {
  text-decoration: underline;
}

.literature-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: .82rem;
}

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

  .literature-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: .9rem;
    padding: 1.1rem 0;
  }

  .literature-cover {
    width: 72px;
  }
}

/* ========================================================================
   JAVA V2 — DIDAKTIK & LERNARCHITEKTUR
   Quiet editorial treatment aligned with the calm-scroll design.
   ======================================================================== */

.didactics-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.didactics-item {
  min-width: 0;
  padding: 1.25rem 1.4rem 1.1rem 0;
}

.didactics-item + .didactics-item {
  padding-left: 1.4rem;
  border-left: 1px solid var(--line);
}

.didactics-number {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin: 0 0 .65rem;
  border-radius: 8px;
  background: #e5f5fb;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 900;
}

.didactics-item h3 {
  margin: 0 0 .55rem;
  font-size: 1rem;
}

.didactics-item p:last-child {
  margin: 0;
}

.didactics-source {
  margin: 1.2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

.didactics-source a {
  font-weight: 750;
}

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

  .didactics-item,
  .didactics-item + .didactics-item {
    padding: 1rem 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .didactics-item:last-child {
    border-bottom: 0;
  }
}
