    /* =========================================================
       GRUNDEINSTELLUNGEN
       ========================================================= */

    :root {
      --primary: #163a5f;
      --primary-dark: #0d2945;
      --accent: #13a89e;
      --accent-dark: #0d827b;

      --background: #f4f7f9;
      --surface: #ffffff;
      --surface-soft: #edf3f6;

      --text: #243746;
      --text-light: #647785;
      --border: #dce5ea;

      --shadow: 0 12px 35px rgba(20, 50, 75, 0.09);
      --radius: 14px;

      --max-width: 1120px;

      /* Aus dem Inline-Stil übernommen */
      --bg: #f2f6f9;
      --navy: #082a48;
      --purple: #17104f;
      --teal: #45bbb1;
      --muted: #587184;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

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

    .shell {
      width: min(100% - 48px, 1100px);
      margin-inline: auto
    }

    a {
      color: inherit;
    }

    button,
    input,
    select,
    textarea {
      font: inherit;
    }

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


    /* =========================================================
       HEADER
       ========================================================= */

/* =========================================================
   DZPG-LOGO IM KOPFBEREICH
   ========================================================= */

.brandbar {
  padding: 25px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}

.dzpg-logo {
  display: block;
  width: 320px;
  height: auto;
  object-fit: contain;
}

.brand-name {**
  color: #082a48;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}


/* =========================================================
   INHALTSRASTER (aus dem Inline-Stil übernommen)
   ========================================================= */

/* Hauptbereich mit zwei Spalten */

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

/* Vier Informationskacheln über die volle Inhaltsbreite */

.text-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  grid-column: 1 / -1;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .text-stack {
    grid-column: 1 / -1;
  }

}


/* =========================================================
   SMARTPHONE
   ========================================================= */

@media (max-width: 580px) {

  .brandbar {
    padding: 18px 0;
  }

  .brand {
    gap: 12px;
  }

  .text-stack,
  .image-stack {
    grid-template-columns: minmax(0, 1fr);
  }

}
    
.hero {
      position: relative;
      overflow: hidden;
      min-height: 460px;
      padding: 65px 55px 60px;
      border-radius: 24px;
      background: #17104f url("../images/FDM_Zertifikatskurs_Hero-Grafik.jpg") center center / cover no-repeat;
      color: white;
      isolation: isolate;
      max-width: 1100px;
      margin-left: auto;
      margin-right: auto;
    }

    .hero h1 {
      font-size: clamp(2.2rem, 4.7vw, 3.65rem);
      line-height: 1.14;
      letter-spacing: -.025em;
      margin: 0 0 34px;
      max-width: 780px
    }

    .hero h1 span {
      display: block;
      font-size: .76em;
      letter-spacing: -.02em
    }

    .hero p {
      font-size: clamp(1.12rem, 2vw, 1.4rem);
      line-height: 1.35;
      max-width: 450px;
      margin: 0 0 62px
    }


  /* =========================================================
   HERO-INHALT
   ========================================================= */

.hero h1 {
  margin: 0 0 35px;

  color: #ffffff;

  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 750;

  line-height: 1.15;
  letter-spacing: -0.025em;
}

.hero p {
      font-size: clamp(1.12rem, 2vw, 1.4rem);
      line-height: 1.35;
      max-width: 450px;
      margin: 0 0 62px
    }



    /* =========================================================
       HAUPTBEREICH
       ========================================================= */

    main {
      padding: 60px 0;
      /*padding: 60px 0 65px*/
    }

    .course-layout {
      display: grid;
      grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
      gap: 32px;
      align-items: start;
    }

    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 26px 27px;
    }

    /* Aus dem Inline-Stil übernommen: Karteninhalt, Abbildungen, Anmeldebox, Button */

    .text-stack .card h2 {
      font-size: 1.33rem;
      line-height: 1.35;
      margin: 0 0 15px;
    }

    .text-stack .card p {
      font-size: .96rem;
      color: var(--muted);
      margin: 0 0 13px;
    }

    .text-stack .card p:last-child {
      margin-bottom: 0;
    }

    .signup {
      background: white;
      border: 1px solid var(--border);
      border-radius: 12px;
      box-shadow: var(--shadow);
    }

    .signup {
      text-align: center;
      margin-top: 38px;
      padding: 44px 25px;
    }

    .signup h2 {
      font-size: 1.7rem;
      margin: 0 0 10px;
    }

    .signup p {
      max-width: 650px;
      margin: 0 auto 22px;
      color: var(--muted);
    }

    .button {
      display: inline-flex;
      justify-content: center;
      align-items: center;
      min-width: 200px;
      padding: 13px 27px;
      border-radius: 8px;
      background: var(--teal);
      color: white;
      text-decoration: none;
      font-size: 1.06rem;
      font-weight: 700;
      transition: background .2s, transform .2s;
    }

    .button:hover {
      background: #259d94;
      transform: translateY(-2px);
    }

    .button:focus-visible,
    a:focus-visible {
      outline: 3px solid #f4a641;
      outline-offset: 4px;
    }

    .course-info {
      padding: 38px;
    }

    .eyebrow {
      display: inline-block;
      margin-bottom: 8px;
      color: var(--accent-dark);
      font-size: 0.82rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.1em;
    }

    h2 {
      margin: 0 0 18px;
      color: var(--primary-dark);
      font-size: clamp(1.6rem, 3vw, 2.1rem);
      line-height: 1.2;
    }

    h3 {
      margin: 30px 0 12px;
      color: var(--primary);
      font-size: 1.1rem;
    }

    .course-info > p {
      margin-top: 0;
      color: var(--text-light);
    }

    .topics {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px 24px;

      margin: 0;
      padding: 0;
      list-style: none;
    }

    .topics li {
      position: relative;
      padding-left: 25px;
    }

    .topics li::before {
      content: "✓";
      position: absolute;
      left: 0;
      color: var(--accent-dark);
      font-weight: 800;
    }


    /* Kursdetails */

    .details {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-top: 30px;
    }

    .detail {
      padding: 17px;
      border-radius: 10px;
      background: var(--surface-soft);
    }

    .detail strong {
      display: block;
      margin-bottom: 3px;
      color: var(--primary-dark);
      font-size: 0.86rem;
    }

    .detail span {
      color: var(--text-light);
      font-size: 0.94rem;
    }


    /* =========================================================
       DOWNLOADS
       ========================================================= */

    .downloads {
      padding: 30px;
    }

    .downloads h2 {
      font-size: 1.45rem;
    }

    .downloads > p {
      margin: -8px 0 22px;
      color: var(--text-light);
      font-size: 0.94rem;
    }

    .download-list {
      display: grid;
      gap: 13px;
    }

    .download-button {
      display: flex;
      align-items: center;
      gap: 14px;

      width: 100%;
      padding: 16px;

      text-decoration: none;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: white;

      transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    }

    .download-button:hover {
      transform: translateY(-2px);
      border-color: var(--accent);
      box-shadow: 0 7px 18px rgba(20, 50, 75, 0.08);
    }

    .file-icon {
      flex: 0 0 44px;
      width: 44px;
      height: 44px;

      display: grid;
      place-items: center;

      border-radius: 9px;
      background: #e3f6f4;
      color: var(--accent-dark);
      font-weight: 800;
      font-size: 0.76rem;
    }

    .file-info {
      min-width: 0;
      flex: 1;
    }

    .file-info strong {
      display: block;
      color: var(--primary-dark);
      font-size: 0.95rem;
    }

    .file-info small {
      color: var(--text-light);
    }

    .download-arrow {
      color: var(--accent-dark);
      font-size: 1.25rem;
      font-weight: 700;
    }


    /* =========================================================
       ANMELDEFORMULAR
       ========================================================= */

    .registration-section {
      margin-top: 42px;
      padding: 50px;
    }

    .registration-heading {
      max-width: 650px;
      margin: 0 auto 34px;
      text-align: center;
    }

    .registration-heading p {
      margin: 0;
      color: var(--text-light);
    }

    .form-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 22px;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 7px;
    }

    .form-group.full-width {
      grid-column: 1 / -1;
    }

    label {
      color: var(--primary-dark);
      font-size: 0.91rem;
      font-weight: 700;
    }

    .required {
      color: #b93838;
    }

    input,
    select,
    textarea {
      width: 100%;
      padding: 13px 14px;

      color: var(--text);
      background: white;
      border: 1px solid #cbd8df;
      border-radius: 8px;
      outline: none;

      transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(19, 168, 158, 0.13);
    }

    textarea {
      min-height: 110px;
      resize: vertical;
    }

    .checkbox-row {
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }

    .checkbox-row input {
      width: 18px;
      height: 18px;
      margin-top: 3px;
      accent-color: var(--accent-dark);
    }

    .checkbox-row label {
      color: var(--text-light);
      font-weight: 400;
    }

    .checkbox-row a {
      color: var(--primary);
      font-weight: 600;
    }

    .submit-row {
      margin-top: 28px;
      text-align: center;
    }

    .submit-button {
      min-width: 240px;
      padding: 14px 28px;

      cursor: pointer;
      color: white;
      background: var(--accent-dark);
      border: 0;
      border-radius: 8px;

      font-weight: 750;

      transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
    }

    .submit-button:hover {
      transform: translateY(-2px);
      background: #096d67;
      box-shadow: 0 8px 20px rgba(13, 130, 123, 0.2);
    }

    .form-note {
      margin: 12px 0 0;
      color: var(--text-light);
      font-size: 0.8rem;
    }



    /* =========================================================
   MODULAUSWAHL
   ========================================================= */

        .module-selection {
          margin: 0;
          padding: 0;
          border: 0;
        }

        .module-selection legend {
          margin-bottom: 4px;

          color: var(--primary-dark);
          font-size: 0.91rem;
          font-weight: 700;
        }

        .module-hint {
          margin: 0 0 14px;

          color: var(--text-light);
          font-size: 0.88rem;
        }


        /* Einzelne Auswahlbox */

        .module-option {
          display: flex;
          align-items: center;
          gap: 12px;

          padding: 14px 16px;

          cursor: pointer;

          background: white;
          border: 1px solid #cbd8df;
          border-radius: 8px;

          color: var(--text);
          font-weight: 500;

          transition:
            border-color 0.2s ease,
            background 0.2s ease,
            box-shadow 0.2s ease;
        }

        .module-option:hover {
          border-color: var(--accent);
          background: #f8fcfc;
        }

        .module-option:has(input:checked) {
          border-color: var(--accent);
          background: #e8f7f5;

          box-shadow:
            0 0 0 2px rgba(19, 168, 158, 0.08);
        }


        /* Checkbox */

        .module-option input[type="checkbox"] {
          flex: 0 0 auto;

          width: 19px;
          height: 19px;
          margin: 0;

          cursor: pointer;
          accent-color: var(--accent-dark);
        }


        /* Ganzer Kurs */

        .course-option {
          margin-bottom: 14px;

          border: 2px solid var(--accent);
          background: #f2fbfa;
        }

        .course-option span {
          display: flex;
          flex-direction: column;
        }

        .course-option strong {
          color: var(--primary-dark);
        }

        .course-option small {
          margin-top: 2px;

          color: var(--text-light);
          font-size: 0.8rem;
          font-weight: 400;
        }


        /* Module */

        .module-grid {
          display: grid;
          grid-template-columns: repeat(2, 1fr);
          gap: 10px;
        }


        /* Fehlermeldung */

        .module-error {
          display: none;

          margin: 10px 0 0;

          color: #b93838;
          font-size: 0.85rem;
          font-weight: 600;
        }

        .module-error.visible {
          display: block;
        }


        /* Mobile Darstellung */

        @media (max-width: 650px) {

          .module-grid {
            grid-template-columns: 1fr;
          }

        }



    /* =========================================================
       FOOTER
       ========================================================= */

    footer {
      padding: 30px 20px;
      text-align: center;
      color: #84929c;
      background: var(--primary-dark);
      font-size: 0.88rem;
    }

    footer a {
      display: inline-block;
      margin: 0 8px;
      color: #d8e2e8;
      text-decoration: none;
    }

    footer a:hover {
      text-decoration: underline;
    }


    /* =========================================================
       KONTAKTSEITE: KONTAKTDATEN
       ========================================================= */

    .contact-info {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      margin: 28px 0 34px;
    }

    .info-box {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;

      padding: 20px 16px;

      text-align: center;
      border-radius: 10px;
      background: var(--surface-soft);
    }

    .info-icon {
      width: 44px;
      height: 44px;
      margin-bottom: 6px;

      display: grid;
      place-items: center;

      border-radius: 9px;
      background: #e3f6f4;
      color: var(--accent-dark);
      font-weight: 800;
      font-size: 1.2rem;
      line-height: 1;
    }

    .info-box strong {
      color: var(--primary-dark);
      font-size: 0.86rem;
    }

    .info-box a,
    .info-box span {
      color: var(--text-light);
      font-size: 0.94rem;
      overflow-wrap: anywhere;
    }

    .info-box a {
      text-decoration: none;
    }

    .info-box a:hover {
      color: var(--accent-dark);
      text-decoration: underline;
    }

    @media (max-width: 650px) {
      .contact-info {
        grid-template-columns: minmax(0, 1fr);
      }
    }


    /* =========================================================
       RESPONSIVE ERGÄNZUNGEN (aus dem Inline-Stil übernommen)
       Stehen bewusst vor dem Block RESPONSIVE DESIGN, damit dessen
       Regeln bei Überschneidungen weiterhin Vorrang haben.
       ========================================================= */

    @media (max-width: 800px) {
      .hero {
        min-height: 420px;
        padding: 55px 38px;
      }

      .hero p {
        margin-bottom: 45px;
      }
    }

    @media (max-width: 580px) {
      .shell {
        width: min(100% - 28px, 1100px);
      }

      .hero {
        border-radius: 16px;
        padding: 43px 24px;
        min-height: 400px;
      }

      .hero h1 {
        font-size: 2.05rem;
      }

      .hero h1 span {
        font-size: .78em;
      }

      .hero p {
        font-size: 1.06rem;
      }

      main {
        padding: 30px 0;
      }

      .card {
        padding: 23px;
      }

      .signup {
        margin-top: 25px;
        padding: 32px 20px;
      }

      .button {
        width: 100%;
      }
    }


    /* =========================================================
       RESPONSIVE DESIGN
       ========================================================= */

    @media (max-width: 850px) {
      .course-layout {
        grid-template-columns: 1fr;
      }

      .details {
        grid-template-columns: 1fr;
      }
    }

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

      .hero {
        padding: 45px 18px;
      }

      main {
        padding: 35px 0;
      }

      .course-info,
      .downloads {
        padding: 25px;
      }

      .topics,
      .form-grid {
        grid-template-columns: 1fr;
      }

      .registration-section {
        margin-top: 28px;
        padding: 30px 22px;
      }

      .submit-button {
        width: 100%;
      }
    }