/* ===============================
   Farb- & Typo-Variablen
   =============================== */
:root{
  --brand:#0b2a3a;           /* Markenblau */
  --accent:#0077b6;          /* Primär-CTA */
  --accent-dark:#005a85;     /* Hover-CTA */
  --bg:#f7f8fa;              /* Seitenhintergrund */
  --text:#222;               /* Standardtext */
}

/* ===============================
   Basis / Reset
   =============================== */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

/* Links global NICHT unterstreichen — außer wir wollen es explizit */
a{color:inherit;text-decoration:none}
a.link{color:var(--accent)}             /* „Textlink“-Optik */
a.link:hover{text-decoration:underline} /* Unterstreichung nur bei Hover */

/* ===============================
   Layout-Helfer
   =============================== */
.container{max-width:960px;margin:0 auto;padding:24px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px}
@media(max-width:880px){.grid-2{grid-template-columns:1fr}}

/* ===============================
   Markenbalken
   =============================== */
.brandbar{background:var(--brand);color:#fff;font-size:.95rem}
.brandbar .container{display:flex;align-items:center;gap:12px;padding:8px 24px}
.brandbar img{border-radius:50%}
.brandbar a{color:#fff}
.brandbar a:hover{text-decoration:underline}

/* ===============================
   Hero (technischer Hintergrund)
   =============================== */
header.hero{
  position:relative;
  color:#fff;
  text-align:center;
  padding:80px 24px;
  background:var(--brand) url("/java-schulung/src/img/java-schulung.jpg") center/cover no-repeat; /* <-- technisches Bild */
}
.hero::after{
  content:"";
  position:absolute;inset:0;
  background:rgba(0,0,0,.45); /* abdunkeln für bessere Lesbarkeit */
}
.hero-text{position:relative;z-index:1;max-width:820px;margin:0 auto}
.hero h1{font-size:2.4rem;margin:0 0 12px}
.hero p{font-size:1.1rem;margin:0 0 14px}
.hero .meta{opacity:.9;font-size:.95rem}

/* ===============================
   CTA-Buttons
   =============================== */
.cta-row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:14px}
.btn{
  display:inline-block;padding:12px 20px;border-radius:6px;
  font-weight:700;line-height:1;transition:background .2s ease
}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{background:var(--accent-dark)}

/* ===============================
   Sektionen / Karten
   =============================== */
section{
  background:#fff;margin:28px auto;padding:28px;border-radius:10px;
  box-shadow:0 3px 8px rgba(0,0,0,.05);
  opacity:0;transform:translateY(28px);transition:all .6s ease-out; /* Scroll-Reveal Startzustand */
}
section.visible{opacity:1;transform:translateY(0)}
h2{margin:0 0 10px;color:var(--brand)}
h3{margin:14px 0 8px}

/* Checkliste */
ul.check{list-style:none;padding:0;margin:0}
ul.check li{position:relative;margin:0 0 10px;padding-left:24px}
ul.check li::before {
  content: "\f00c";               /* Häkchen in Font Awesome */
  font-family: "Font Awesome 6 Free"; 
  font-weight: 900;               /* wichtig für Solid-Stil */
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

/* Info-Boxen */
.card{
  background:#fff;border:1px solid #e8edf2;border-radius:10px;padding:16px;
  transition:transform .15s ease, box-shadow .15s ease
}
.card:hover{transform:translateY(-3px);box-shadow:0 8px 22px rgba(0,0,0,.06)}

/* ===============================
   Footer
   =============================== */
footer{
  background:#2c3e50;color:#fff;padding:20px;text-align:center;margin-top:32px;font-size:.95rem
}
footer a{color:#fff}
footer a:hover{text-decoration:underline}

/* Elemente mit data-reveal bekommen Reveal-Startzustand */
[data-reveal]{
  opacity:0;
  transform: translateY(28px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}

/* Wird per JS gesetzt, wenn Element im Viewport ist */
.is-visible{
  opacity:1;
  transform: translateY(0);
}

/* Wird per JS gesetzt, wenn Element im Viewport ist */
.is-visible{
  opacity:1;
  transform: translateY(0);
}

/* Fallback, falls JS aus ist */
html.no-js [data-reveal]{
  opacity:1;
  transform:none;
}
/* Fallback, falls JS aus ist */
html.no-js [data-reveal]{
  opacity:1;
  transform:none;
}

/* --- Wird per JS gesetzt, wenn Element im Viewport --- */
.is-visible{
  opacity:1;
  transform: translateY(0);
}

/* ===== Codeblock mit Copy-Fähnchen ===== */
.codebox{ position:relative; }
.codebox pre{
  margin:0;
  padding:1rem 2.75rem 1rem 1rem; /* rechts Platz für Button */
  background:#0f172a;
  color:#eaeaea;
  border-radius:.6rem;
  overflow:auto;
}
.codebox .btn-copy{
  position:absolute;
  top:.5rem; right:.5rem;
  padding:.3rem .6rem;
  font-size:.8rem;
  background:#fff;
  border:1px solid #cfd6de;
  border-radius:.4rem;
  cursor:pointer;
  opacity:.85;
  transition:opacity .2s, background .2s, border-color .2s;
}
.codebox .btn-copy:hover{ opacity:1; }
.codebox .btn-copy.copied{
  background:#e7f8ed;
  border-color:#b5e2c5;
}

/* (Optional) Variante: Button unten rechts, wenn du der .codebox zusätzlich die Klasse codebox--br gibst */
.codebox.codebox--br .btn-copy{ top:auto; bottom:.5rem; }

/* ===============================
   Standorte / Vor-Ort-Sektion (Ergänzung)
   =============================== */

/* Sektion-Feinschliff (optional) */
.standorte .meta{
  opacity:.9;
  font-size:.95rem;
}

/* Zweitstil für Buttons (wird in den Kacheln genutzt) */
.btn-secondary{
  background:#fff;
  color:var(--accent);
  border:1px solid #cfd6de;
}
.btn-secondary:hover{
  background:#f5f8fb;
  border-color:#b9c6d3;
}

/* Kachel-Grid für 12 Orte */
.location-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(260px,1fr));
  gap:16px;
  margin-top:12px;
}

/* Kartenlayout für Standort-Kacheln */
.card.location{
  padding:0;
  overflow:hidden;
}
.location__link{
  display:block;
  color:inherit;
  text-decoration:none;
}
.location__media{ margin:0; } /* figure-Reset */
.location__media img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
  aspect-ratio:4/3; /* verhindert Layout-Shift */
}

/* Typografie & Abstände in der Kachel */
.location__title{ margin:12px 16px 4px; }
.card.location .meta{ margin:0 16px 12px; }
.location__cta{ display:inline-block; margin:0 16px 16px; }

/* Hover/Focus – zugänglich und dezent */
.location__link:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
.card.location:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 22px rgba(0,0,0,.06);
}

/* Responsives Feintuning */
@media (max-width:600px){
  .location-grid{ gap:12px; }
  .location__title{ margin:10px 12px 4px; }
  .card.location .meta{ margin:0 12px 12px; }
  .location__cta{ margin:0 12px 12px; }
}

/* final einmalige Fassungen */
[data-reveal]{ opacity:0; transform:translateY(28px); transition:opacity .6s ease-out, transform .6s ease-out; }
.is-visible{ opacity:1; transform:translateY(0); }
html.no-js [data-reveal]{ opacity:1; transform:none; }

/* Sekundär-Buttons wie Primär-Buttons einfärben */
.btn-secondary{
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
}
.btn-secondary:hover{
  background: var(--accent-dark);
}

.location__cta i {
  margin-right: 0.5em;
}

.location__cta i {
  margin-right: 0.6em; /* Abstand Icon zu Text */
  font-size: 1.1em;   /* optional etwas größer für bessere Sichtbarkeit */
  vertical-align: middle; /* mittig zum Text ausrichten */
}

.location__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem; /* Abstand zwischen Icon und Text */
  padding: 0.75rem 1rem;
}

.location__cta i {
  font-size: 1.4rem;   /* Icon etwas größer */
  line-height: 1;
}

.location__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100px;       /* alle gleich hoch */
  padding: 0.75rem 1rem;
  gap: 0.5rem;         /* Abstand Icon ↔ Text */
}

.location__cta i {
  font-size: 1.4rem;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  align-items: stretch;   /* sorgt für gleiche Höhe */
}

.location__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem 1rem;
  gap: 0.5rem;
  height: 100%;           /* Button füllt die gesamte Kartenhöhe */
}

/* Karte als Spalte: Bild – Text – CTA */
.location {
  display: flex;
  flex-direction: column;
  height: 100%;                 /* wichtig in Grid */
}

.location__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Bild mit einheitlichem Format */
.location__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;          /* 480x320 Gefühl, sorgt für gleiche Bildhöhen */
  object-fit: cover;
  border-radius: 10px 10px 0 0; /* optional, falls Karten abgerundet sind */
}

/* Textteil wächst, Footer bleibt unten */
.location__body { padding: 14px 16px; }
.location__title { margin: 0 0 6px; }
.location__footer {
  margin-top: auto;             /* drückt CTA nach unten */
  padding: 12px 16px 16px;
}

/* CTA: Icon über Text, gleiche Buttonhöhe */
.location__cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 88px;             /* gleiche Höhe für alle Buttons */
  text-align: center;
  gap: .55rem;                  /* Abstand Icon ↔ Text */
}

/* Icon-Größe & Mikroabstand */
.location__cta i {
  font-size: 1.35rem;
  line-height: 1;
}

/* Optional: gleiche Kartenhöhe im Grid erzwingen */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;         /* alle Karten gleich hoch */
}

/* Grid: gleiche Kartenhöhe */
.location-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px,1fr));
  gap:20px;
  align-items:stretch;                 /* Karten auf gleiche Höhe */
}

/* Karte & Link als Spalte */
.location{
  height:100%;
  display:flex;
}
.location__link{
  display:flex;
  flex-direction:column;
  height:100%;
}

/* Bild einheitlich */
.location__media{
  margin:0;
}
.location__media img{
  width:100%;
  height:auto;
  aspect-ratio:3/2;                    /* gleiche Bildhöhe */
  object-fit:cover;
  display:block;
  border-radius:10px 10px 0 0;         /* falls Cards gerundet sind */
}

/* Titel + Teaser */
.location__title{ margin:14px 16px 6px; }
.location .meta{ margin:0 16px 0; }

/* Footer/CTA immer unten & einheitliche Buttonhöhe */
.location__cta{
  margin: auto 16px 16px;              /* drückt Button nach unten (auto oben) */
  display:inline-flex;
  flex-direction:column;               /* Icon über Text */
  align-items:center;
  justify-content:center;
  width:calc(100% - 32px);             /* gleiche Seitenabstände wie Text */
  text-align:center;
  gap:.6rem;                           /* mehr Abstand Icon ↔ Text */
  min-height:96px;                     /* gleiche Höhe für alle Buttons */
  padding:14px 16px;
  line-height:1.25;
}

/* Icon etwas größer, zentriert */
.location__cta i{
  font-size:1.5rem;
  line-height:1;
}

/* kleine Screens: etwas kompakter */
@media (max-width: 520px){
  .location__cta{ min-height:88px; padding:12px 14px; gap:.5rem; }
}

.location__cta{
  margin: auto 16px 16px;
  display: inline-flex;
  flex-direction: column;      /* Icon über Text */
  align-items: center;
  justify-content: center;
  width: calc(100% - 32px);
  text-align: center;
  gap: 0.4rem;                 /* weniger Abstand */
  min-height: 64px;            /* schlanker Button */
  padding: 10px 14px;          /* kompakter */
  line-height: 1.2;
}

.location__cta i{
  font-size: 1.2rem;           /* kleineres Icon */
  line-height: 1;
}

.location__cta {
  margin: auto 16px 16px;
  display: flex;
  flex-direction: column;     
  align-items: center;
  justify-content: center;
  width: calc(100% - 32px);
  text-align: center;
  gap: 0.3rem;
  min-height: 80px;           /* gleiche Höhe für alle */
  padding: 8px 12px;
  line-height: 1.3;
  white-space: normal;        /* erlaubt Umbruch */
}

.location__cta i {
  font-size: 1.2rem;
  line-height: 1;
}
.location__cta {
  margin: auto 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc(100% - 32px);
  text-align: center;
  gap: 0.3rem;
  height: 70px;              /* feste Höhe für ALLE */
  overflow: hidden;          /* Überlänge abgeschnitten */
  padding: 6px 10px;
}

.location__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.25rem;
  padding: 0.6rem 0.8rem;

  background-color: #f0f4f8;  /* hellgrau statt knallblau */
  color: #004080;             /* dezentes Blau für Text */
  border: 1px solid #d0d7de;  /* feine Umrandung */
  border-radius: 6px;         /* etwas weicher */
  font-size: 0.9rem;          /* kleinerer Text */
  font-weight: 600;
  min-height: 60px;           /* gleiche Höhe */
}

.location__cta i {
  font-size: 1.2rem;          /* Icon kleiner */
  color: #0060a0;             /* dezentes Blau */
}

.location__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.25rem;
  padding: 0.6rem 0.8rem;

  background-color: #f0f4f8;   /* hellgrau/blau */
  color: #004080;              /* dezentes Blau */
  border: 1px solid #d0d7de;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 60px;
  transition: all 0.2s ease-in-out;
}

.location__cta i {
  font-size: 1.2rem;
  color: #0060a0;              /* Icon in Blau */
  transition: color 0.2s ease-in-out;
}

/* Hover-Effekt */
.location__cta:hover {
  background-color: #00548c;   /* kräftiges Blau */
  color: #ffffff;              /* Text weiß */
  border-color: #004070;
}

.location__cta:hover i {
  color: #ffffff;              /* Icon auch weiß */
}
.parallax {
  background-image: url('/java-schulung/src/img/java-schulung.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  height: 300px; /* Desktop */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.parallax__overlay {
  background: rgba(0,0,0,0.4); /* halbtransparentes Schwarz */
  padding: 20px 30px;
  border-radius: 6px;
  color: #fff; /* Schriftfarbe erzwingen */
}

.parallax__overlay h2,
.parallax__overlay p {
  color: #fff !important; /* sicherstellen, dass es nicht überschrieben wird */
}

.parallax h2 {
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: 700;
}

.parallax p {
  margin: 0;
  font-size: 1.2rem;
}

/* Mobile */
@media(max-width: 768px) {
  .parallax {
    height: 180px;
    padding: 0 10px;
  }
  .parallax h2 { font-size: 1.4rem; }
  .parallax p { font-size: 1rem; }
}

/* ===============================
   FAQ Accordion (Aufklappboxen)
   =============================== */

.faq {
  background: #fff;
  margin: 28px auto;
  padding: 32px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,.05);
}

.faq h2 {
  font-size: 1.8rem;
  color: var(--brand);
  margin-bottom: 1.8rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* Basis-Stil der FAQ-Boxen */
.faq-item {
  border: 1px solid #e4e8ec;
  border-radius: 6px;
  overflow: hidden;
  background-color: #fdfdfd;
  transition: all 0.25s ease;
}

/* Fragezeile */
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--brand);
  position: relative;
  font-size: 1.05rem;
}

/* Pfeil-Icon (CSS-only) */
.faq-item summary::after {
  content: "\f078"; /* Font Awesome 'chevron-down' */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 1rem;
  top: 1rem;
  transition: transform 0.3s ease;
  color: var(--accent);
}

/* geöffneter Zustand */
.faq-item[open] summary::after {
  transform: rotate(180deg);
}

/* Antworttext */
.faq-answer {
  padding: 0 1.2rem 1rem;
  animation: accordion-fade 0.3s ease;
}

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

/* Hover-/Open-Effekte */
.faq-item:hover,
.faq-item[open] {
  border-color: var(--accent);
  background-color: #f9fbfd;
}

/* responsive Anpassung */
@media (max-width: 600px) {
  .faq {
    padding: 20px;
  }
  .faq h2 {
    font-size: 1.4rem;
  }
  .faq-item summary {
    font-size: 1rem;
  }
}

/* ================================
   Related Courses (mit Bildern)
   ================================ */
.related-courses {
  margin-top: 3rem;
  text-align: center;
}
.related-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #222;
  font-weight: 600;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 0;
  list-style: none;
}
.related-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.related-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.related-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.related-img-wrapper {
  overflow: hidden;
}
.related-img-wrapper img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}
.related-card figcaption {
  padding: 0.9rem;
  font-weight: 500;
  font-size: 1.05rem;
  color: #222;
  background-color: #f8f9fa;
}
.related-link:hover .related-card {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}
.related-link:hover img {
  transform: scale(1.05);
}
.related-meta {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #555;
}
.related-meta a {
  color: #0056b3;
  text-decoration: underline;
}
.related-meta a:hover {
  color: #003d82;
}

//* ===================================
   Java Themen-Rondell / Karussell (mobiloptimiert)
   =================================== */
.java-carousel {
  margin: 3rem auto;
  max-width: 1200px;
  text-align: center;
  overflow: hidden;
}

.java-carousel h3 {
  font-size: 1.5rem;
  color: var(--brand, #0056a3);
  margin-bottom: 1rem;
}

.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding: 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-item {
  flex: 0 0 200px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  padding: 1.25rem;
  text-align: center;
  color: #333;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform .25s ease, box-shadow .25s ease;
}

.carousel-item i {
  font-size: 2rem;
  color: #0056a3;
  margin-bottom: .5rem;
}

.carousel-item span {
  display: block;
  font-weight: 600;
  font-size: .95rem;
}

.carousel-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* Navigation */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #0056a3;
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 2;
  transition: background-color .2s ease;
}

.carousel-btn:hover {
  background: #004494;
}

.carousel-btn.prev { left: -12px; }
.carousel-btn.next { right: -12px; }

/* Mobile Anpassungen */
@media (max-width: 640px) {
  .carousel-btn { display: none; }
  .carousel-track {
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
  .carousel-item {
    flex: 0 0 75%;
    max-width: 85%;
    margin-right: 0.5rem;
  }
  .carousel-item i {
    font-size: 1.6rem;
  }
  .carousel-item span {
    font-size: 0.9rem;
  }
}



/* ===============================
   Breadcrumb Navigation
   =============================== */

.breadcrumbs {
  background: var(--bg);
  border-bottom: none;
  font-size: 0.85rem;
}

.breadcrumbs ul {
  max-width: 960px;              /* identisch zu .container */
  margin: 0 auto;
  padding: 8px 24px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumbs li {
  color: #5a6470;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Trennzeichen */
.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin: 0 0.4rem;
  color: #9aa3ad;
}

/* Breadcrumb-Links */
.breadcrumbs a {
  color: var(--brand);
  font-weight: 600;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus {
  text-decoration: underline;
  color: var(--accent);
}

/* Aktuelle Seite */
.breadcrumbs span {
  color: #6b7280;
  font-weight: 400;
  cursor: default;
}

/* Mobile Feinschliff */
@media (max-width: 600px) {
  .breadcrumbs ul {
    padding: 6px 16px;
    font-size: 0.8rem;
  }
}


/* Icons in Portal + FAQ grundsätzlich in Akzentfarbe */
.portal-purpose i.fa-solid,
.portal-purpose i.fa-regular,
.portal-purpose i.fa-brands,
.faq-box i.fa-solid,
.faq-box i.fa-regular,
.faq-box i.fa-brands{
  color: var(--accent);
}

/* Meta-Icons (z.B. Kalender) im Portal immer blau */
.portal-purpose .meta i,
.portal-purpose .portal-top .meta i{
  color: var(--accent) !important;
  margin-right: .45rem;
}

/* Buttons: Icons sollen IMMER wie der Button-Text sein */
.portal-purpose .btn i,
.faq-box .btn i,
.cta-row .btn i,
.location__cta i{
  color: currentColor;
}
.portal-purpose .btn-primary i,
.portal-purpose .btn-secondary i,
.faq-box .btn-primary i,
.faq-box .btn-secondary i{
  color: currentColor !important;
}

/* Farben je Karte */
.portal-purpose{
  --basic: #f7931e;     /* Orange (Grundlagen) */
  --advanced: #0056a3;  /* Blau (Fortgeschritten) */
}

.portal-top { margin-top: 12px; }

.portal-bottom{
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 980px){
  .portal-bottom{ grid-template-columns: 1fr; }
}

/* Icon-Abstand in Überschriften */
.portal-purpose h3 i{ margin-right: 8px; }

/* Listen etwas kompakter */
.portal-bottom .check li{ margin-bottom: 6px; }

/* Kurs-spezifische Icon-Farbe (nur Überschrift/Meta, nicht Buttons) */
.lp-basic h3 i, .lp-basic .meta i { color: var(--basic); }
.lp-advanced h3 i, .lp-advanced .meta i { color: var(--advanced); }

/* Buttons: Icons sollen IMMER wie der Button-Text sein */
.lp-btn i{ color: currentColor !important; }

/* Button-Grundstil (kursfarbige Buttons) */
.lp-btn{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:12px 16px;
  border-radius:8px;
  font-weight:700;
  line-height:1;
  border:1px solid transparent;
  text-decoration:none;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.lp-btn:hover{ transform: translateY(-1px); }

/* Grundlagen: Lernpfad (Outline) + Kursseite (voll) */
.lp-basic .lp-btn--path{
  background: rgba(247,147,30,.12);
  border-color: rgba(247,147,30,.45);
  color: var(--basic);
}
.lp-basic .lp-btn--path:hover{
  background: var(--basic);
  border-color: var(--basic);
  color:#fff;
}
.lp-basic .lp-btn--course{
  background: var(--basic);
  color:#fff;
}
.lp-basic .lp-btn--course:hover{
  background: #d97f0f;
}

/* Fortgeschritten: Lernpfad (Outline) + Kursseite (voll) */
.lp-advanced .lp-btn--path{
  background: rgba(0,86,163,.10);
  border-color: rgba(0,86,163,.35);
  color: var(--advanced);
}
.lp-advanced .lp-btn--path:hover{
  background: var(--advanced);
  border-color: var(--advanced);
  color:#fff;
}
.lp-advanced .lp-btn--course{
  background: var(--advanced);
  color:#fff;
}
.lp-advanced .lp-btn--course:hover{
  background: #004494;
}

/* ===============================
   Lernpfad – 1-spaltig, mobile-first
   =============================== */

.lp-wrap{
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 16px;
}

.lp-hero{
  background:#fff;
  border:1px solid #e8edf2;
  border-radius:12px;
  box-shadow:0 3px 10px rgba(0,0,0,.05);
  padding:18px;
  margin:18px 0 16px;
}

.lp-backrow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom:10px;
}

.lp-card{
  background:#fff;
  border:1px solid #e8edf2;
  border-radius:12px;
  box-shadow:0 3px 10px rgba(0,0,0,.05);
  padding:18px;
  margin: 0 0 16px;
  min-width:0;          /* wichtig gegen Overflow in Flex/Grids */
}

.lp-toc h2{ margin:0 0 10px; font-size:1.05rem; color:var(--brand); }

.lp-toc ul{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.lp-toc a{
  display:flex;
  align-items:center;
  gap:.6rem;
  padding:.65rem .75rem;
  border-radius:10px;
  background:#f7f8fa;
  border:1px solid #eef2f6;
  color: var(--text);
  text-decoration:none;
}
.lp-toc a:hover{ background:#eef6fb; border-color:#d9e7f3; }

/* ===============================
   Codebox – darf NIE breiter als Container werden
   =============================== */

.codebox{
  position:relative;
  width:100%;
  max-width:100%;
  min-width:0;
  overflow:hidden;      /* verhindert „schwarze Fläche“ außerhalb */
}

.codebox pre{
  width:100%;
  max-width:100%;
  box-sizing:border-box;          /* wichtig! padding zählt in width rein */
  margin:0;
  padding:1rem 3.1rem 1rem 1rem;  /* rechts Platz für Copy */
  background:#0f172a;
  color:#eaeaea;
  border-radius:.8rem;
  overflow:auto;                  /* horizontales Scrollen für lange Zeilen */
  -webkit-overflow-scrolling:touch;
}

.codebox pre code{
  display:block;
  white-space:pre;
  min-width:0;
}

.codebox .btn-copy{
  position:absolute;
  top:.6rem;
  right:.6rem;
  padding:.35rem .6rem;
  font-size:.85rem;
  background:#fff;
  border:1px solid #cfd6de;
  border-radius:.5rem;
  cursor:pointer;
  opacity:.9;
}
.codebox .btn-copy:hover{ opacity:1; }

/* ===============================
   Quiz – mobil sauber
   =============================== */

.quiz{
  background:#fff;
  border:1px solid #e8edf2;
  border-radius:12px;
  box-shadow:0 3px 10px rgba(0,0,0,.05);
  padding:16px;
  margin: 0 0 16px;
}

.quiz .opts{ display:grid; gap:10px; }
.quiz label{ display:flex; gap:10px; align-items:flex-start; line-height:1.35; }
.quiz-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }

@media(max-width:520px){
  .quiz-actions .btn{ width:100%; text-align:center; }
}

/* Prev/Next */
.lp-nav{
  display:flex;
  gap:12px;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-top: 10px;
}
@media(max-width:520px){
  .lp-nav .btn{ width:100%; text-align:center; }
}

/* ===============================
   Lernpfad: Icon-Farbregeln (Brand / Akzent)
   =============================== */

/* Standard: Icons in Lernpfad-Karten blau (Akzent) */
.lp-card i.fa-solid,
.lp-card i.fa-regular,
.lp-card i.fa-brands,
.lp-hero i.fa-solid,
.lp-hero i.fa-regular,
.lp-hero i.fa-brands,
.lp-toc i.fa-solid,
.lp-toc i.fa-regular,
.lp-toc i.fa-brands{
  color: var(--accent);
}

/* Buttons: Icons IMMER wie Button-Text (z.B. weiß auf blau) */
.lp-card .btn i,
.lp-hero .btn i,
.lp-nav .btn i,
.quiz .btn i{
  color: currentColor !important;
}

/* Optional: Details-Summary Icon ebenfalls blau */
.lp-card summary i{
  color: var(--accent);
}

/* Lernpfad: mehr Luft im Content */
.lp-card h2{ margin-top: 26px; }
.lp-card h2:first-child{ margin-top: 0; }

.lp-card p{ margin: 10px 0 14px; }
.lp-card ul, .lp-card ol{ margin: 10px 0 16px; }

.lp-card .card{ margin-top: 14px; }
.lp-card details.card{ padding: 16px; }
.lp-card details.card summary{ cursor:pointer; }

/* ===============================
   Kurs-Akzent: Java Grundlagen (Orange wie Hauptseite)
   =============================== */
:root{
  --java-orange:#ff9800;
  --java-orange-dark:#f57c00;
  --java-orange-bg:#fff3e0;
}

/* Callout-Box oben in Lektionen */
.lp-coursecallout{
  border-left: 6px solid var(--java-orange);
  background: linear-gradient(180deg, var(--java-orange-bg), #fff);
}

/* Überschrift im Callout etwas „kursiger“ */
.lp-coursecallout h2{
  color: var(--brand);
}

/* Icons im Callout: weiterhin blau (Portal-Logik) */
.lp-coursecallout i.fa-solid,
.lp-coursecallout i.fa-regular,
.lp-coursecallout i.fa-brands{
  color: var(--accent);
}

/* Aber: der Kurs-CTA darf orange sein (nur lp-btn--course in diesem Block) */
.lp-coursecallout .lp-btn--course{
  background: var(--java-orange);
  color: #fff;
}
.lp-coursecallout .lp-btn--course:hover{
  background: var(--java-orange-dark);
}

/* Button-Icons immer wie Button-Text */
.lp-coursecallout .lp-btn i{
  color: currentColor !important;
}


/* Kurs-CTA in Orange (wie Hauptseite), ohne globales Accent-Blau zu überschreiben */
:root{
  --course-orange:#ff9800;
  --course-orange-dark:#f57c00;
}

.btn-course{
  background: var(--course-orange);
  color:#fff;
}
.btn-course:hover{
  background: var(--course-orange-dark);
}

/* Icons im Button wie Text (weiß) */
.btn-course i{ color: currentColor !important; }

/* Optionale Box-Optik für den Kursbezug */
.lp-coursebar{
  margin-top: 14px;
  padding: 14px;
  border-radius: 10px;
  background: #fff3e0;
  border: 1px solid rgba(255,152,0,.25);
  border-left: 6px solid var(--course-orange);
}

/* ===============================
   FIX: Lernpfad-Seiten NICHT über <section> global animieren
   (sonst wirkt alles "gestaucht" / unsichtbar)
   =============================== */

/* Deaktiviere das globale section-Reveal für Lernpfad, weil dort <article>, <nav>, <section> gemischt vorkommen */
.lp-wrap section{
  opacity: 1;
  transform: none;
  transition: none;
}

/* Reveal NUR für Elemente mit data-reveal */
.lp-wrap [data-reveal]{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.lp-wrap .is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   FIX: CTA-Row im Lernpfad nicht immer zentrieren
   =============================== */
.lp-wrap .cta-row{
  justify-content: flex-start;
}

/* ===============================
   FIX: Kurs-CTA Orange als EINE Quelle der Wahrheit
   =============================== */
:root{
  --course-orange:#ff9800;
  --course-orange-dark:#f57c00;
  --course-orange-bg:#fff3e0;
}

.btn-course{
  background: var(--course-orange);
  color: #fff;
}
.btn-course:hover{
  background: var(--course-orange-dark);
}
.btn-course i{ color: currentColor !important; }

/* Kurs-Callout */
.lp-coursecallout{
  border-left: 6px solid var(--course-orange);
  background: linear-gradient(180deg, var(--course-orange-bg), #fff);
}

/* Im Callout bleiben Icons blau – außer in Buttons */
.lp-coursecallout i{ color: var(--accent); }
.lp-coursecallout .btn i{ color: currentColor !important; }


/* ===============================
   Kurs-Akzent: Java Grundlagen (Orange wie Hauptseite)
   =============================== */
:root{
  --java-orange:#ff9800;
  --java-orange-dark:#f57c00;
  --java-orange-bg:#fff3e0;
}

/* Callout-Block oben */
.lp-coursecallout{
  border: 1px solid rgba(255,152,0,.22);
  border-left: 6px solid var(--java-orange);
  background: linear-gradient(180deg, var(--java-orange-bg), #fff);
}

/* Kurs-Hinweisbox (die bei dir weiß war) */
.lp-note{
  border: 1px solid rgba(255,152,0,.22);
  border-left: 6px solid var(--java-orange);
  background: var(--java-orange-bg);
}

/* Optional: etwas „luftiger“ */
.lp-note p{ margin: 0; }

/* Icons in lp-note blau lassen */
.lp-note i{
  color: var(--accent);
}

/* FIX: Grid-Items dürfen schrumpfen (sonst overflow nach rechts) */
.grid-2 > * { 
  min-width: 0; 
}

/* optional, aber oft hilfreich */
.card{
  min-width: 0;
}

/* extra-sicher: Codebox kann nicht über die Spalte hinauswachsen */
.codebox,
.codebox pre{
  max-width: 100%;
}