/* ==========================================================================  
   DreamWisp Academy - Scandinavian Clean CSS (Mobile-First)  
   Author: Professional CSS/UI Expert  
   ========================================================================== */
  /* RESET & BASELINE */
  html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6,
  p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em,
  img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i,
  center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption,
  tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed,
  figure, figcaption, footer, header, hgroup, menu, nav, output, ruby,
  section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
  }
  html {
    box-sizing: border-box;
    scroll-behavior: smooth;
  }
  *, *:before, *:after {
    box-sizing: inherit;
  }
  body {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    background-color: #F0F5FA;
    color: #222f3e;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  a {
    color: #0A2239;
    text-decoration: none;
    transition: color 0.2s;
  }
  a:hover, a:focus {
    color: #35A7FF;
    outline: none;
    text-decoration: underline;
  }
  ul, ol {
    margin-left: 24px;
    padding-left: 0;
  }
  li {
    margin-bottom: 12px;
  }
  strong {
    font-weight: 600;
  }

  /* TYPOGRAPHY SCALE - Scandinavian Clean */
  h1, .h1 {
    font-family: 'Orbitron', 'Roboto', Arial, sans-serif;
    font-size: 2.5rem;
    color: #0A2239;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: 0.01em;
  }
  h2, .h2 {
    font-family: 'Orbitron', 'Roboto', Arial, sans-serif;
    font-size: 2rem;
    color: #0A2239;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 0.01em;
  }
  h3, .h3 {
    font-family: 'Orbitron', 'Roboto', Arial, sans-serif;
    font-size: 1.25rem;
    color: #0A2239;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: 0.01em;
  }
  h4, .h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 14px;
  }
  p, .subheadline {
    font-size: 1rem;
    margin-bottom: 18px;
  }
  .subheadline {
    color: #39506a;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 22px;
  }

  /* LAYOUT CONTAINERS */
  .container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
  }
  .content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(34, 47, 62, 0.05);
    margin-bottom: 60px;
    padding: 40px 20px;
    transition: box-shadow 0.2s;
  }
  section:last-child {
    margin-bottom: 0;
  }
  main {
    width: 100%;
    flex: 1 1 auto;
  }

  /* Scandinavian spacing patterns */
  .card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
  }
  .card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 8px rgba(34, 47, 62, 0.06);
    margin-bottom: 20px;
    padding: 24px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.17s;
  }
  .card:hover {
    box-shadow: 0 4px 28px rgba(53,167,255, 0.08);
  }
  .content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 20px;
  }
  .text-image-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
  }
  .testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: #F0F5FA;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 10px 0 rgba(34,47,62,0.08);
    color: #0A2239;
    font-size: 1.07rem;
    transition: box-shadow 0.2s;
  }
  .testimonial-card:last-child {
    margin-bottom: 0;
  }
  .testimonial-card strong {
    font-weight: 700;
    color: #35A7FF;
  }
  .feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
  }
  
  /* Service Cards on Startseite */
  .service-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
  }
  .service-cards > div {
    background: #F0F5FA;
    border-radius: 12px;
    box-shadow: 0 0.5px 4px rgba(53, 167, 255, 0.06);
    flex: 1 1 220px;
    min-width: 0;
    padding: 24px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.2s, transform 0.2s;
  }
  .service-cards > div:hover {
    box-shadow: 0 4px 20px rgba(10, 34, 57, 0.10);
    transform: translateY(-4px) scale(1.02);
  }

  /* Tables */
  table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    font-size: 1rem;
  }
  th, td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #E4E9F2;
  }
  th {
    background: #F0F5FA;
    font-weight: 700;
    color: #0A2239;
  }
  tr:last-child td {
    border-bottom: none;
  }

  /* BUTTONS */
  .cta-button {
    display: inline-block;
    background: #35A7FF;
    color: #fff;
    font-family: 'Orbitron', 'Roboto', Arial, sans-serif;
    font-weight: 700;
    border: none;
    border-radius: 28px;
    padding: 12px 34px;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(53,167,255,0.09);
    transition: background 0.18s, box-shadow 0.18s, transform 0.14s;
    margin-top: 10px;
    letter-spacing: 0.05em;
    cursor: pointer;
    outline: none;
  }
  .cta-button:hover, .cta-button:focus {
    background: #0A2239;
    color: #fff;
    box-shadow: 0 8px 24px rgba(10,34,57,0.15);
    transform: translateY(-2px) scale(1.025);
  }
  button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
  }
  /* Fields for cookie banner/modal */
  .dw-btn {
    border-radius: 24px;
    padding: 9px 28px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    margin-right: 10px;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    border: none;
    outline: none;
    box-shadow: none;
  }
  .dw-btn.primary {
    background: #35A7FF;
    color: #fff;
  }
  .dw-btn.primary:hover, .dw-btn.primary:focus {
    background: #0A2239;
    color: #fff;
  }
  .dw-btn.secondary {
    background: #fff;
    color: #0A2239;
    border: 1px solid #D5DEE6;
  }
  .dw-btn.secondary:hover, .dw-btn.secondary:focus {
    background: #E4E9F2;
  }
  .dw-btn.text {
    background: transparent;
    color: #35A7FF;
    text-decoration: underline;
    padding: 9px 8px;
    border: none;
  }
  .dw-btn.text:hover, .dw-btn.text:focus {
    color: #0A2239;
    text-decoration: none;
  }

  /* HEADER & MAIN NAVIGATION */
  header {
    background: #fff;
    box-shadow: 0 1px 10px rgba(10,34,57, 0.04);
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 64px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 0 0 0;
  }
  .main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 0;
    flex-wrap: wrap;
    margin: 0 auto;
  }
  .main-nav a {
    font-family: 'Orbitron', 'Roboto', Arial, sans-serif;
    color: #0A2239;
    font-weight: 600;
    font-size: 1.06rem;
    border-radius: 16px;
    padding: 7px 18px;
    transition: background 0.17s, color 0.18s;
  }
  .main-nav a:hover, .main-nav a:focus {
    background: #F0F5FA;
    color: #35A7FF;
    outline: none;
  }
  .main-nav img {
    height: 36px;
    width: auto;
    margin-right: 22px;
  }

  /* MOBILE MENU TOGGLE */
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F0F5FA;
    border-radius: 9px;
    font-size: 2rem;
    width: 46px;
    height: 46px;
    border: none;
    color: #0A2239;
    position: absolute;
    right: 16px;
    top: 12px;
    z-index: 99;
    box-shadow: none;
    transition: background 0.13s, color 0.13s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #35A7FF;
    color: #fff;
  }
  @media (min-width: 1024px) {
    .mobile-menu-toggle {
      display: none;
    }
  }

  /* MOBILE MENU OVERLAY (SLIDE IN) */
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10,34,57, 0.94);
    color: #fff;
    z-index: 101;
    transform: translateX(-100vw);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
    opacity: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
  }
  .mobile-menu.open {
    transform: translateX(0);
    pointer-events: auto;
    opacity: 1;
  }
  .mobile-menu-close {
    color: #fff;
    background: none;
    font-size: 2.2rem;
    border: none;
    position: absolute;
    right: 18px;
    top: 18px;
    cursor: pointer;
    z-index: 120;
    transition: color 0.16s;
  }
  .mobile-menu-close:hover, .mobile-menu-close:focus {
    color: #35A7FF;
    outline: none;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 54px 30px 10px 32px;
    margin-top: 40px;
  }
  .mobile-nav a {
    font-family: 'Orbitron', 'Roboto', Arial, sans-serif;
    font-size: 1.12rem;
    color: #fff;
    font-weight: 600;
    padding: 10px 0;
    border-radius: 8px;
    width: 100%;
    transition: background 0.2s, color 0.2s;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    background: #35A7FF;
    color: #fff;
    outline: none;
  }
  /* Show/hide nav based on viewport */
  @media (max-width: 1023px) {
    .main-nav {
      display: none;
    }
    .mobile-menu-toggle {
      display: flex;
    }
  }
  @media (min-width: 1024px) {
    .mobile-menu {
      display: none !important;
    }
    .main-nav {
      display: flex !important;
    }
  }

  /* SECTIONS, CONTENT, AND ICON LISTS */
  .content-wrapper > ul, .text-section > ul, .content-wrapper > ol, .text-section > ol {
    margin: 8px 0 16px 24px;
    list-style-position: outside;
    color: #39506a;
    font-size: 1.05rem;
  }
  .content-wrapper > ul li, .text-section > ul li, .content-wrapper > ol li, .text-section > ol li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
  }
  .content-wrapper ul img, .text-section ul img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  /* FOOTER */
  footer {
    background: #fff;
    border-top: 1px solid #E4E9F2;
    padding: 32px 0 18px 0;
    margin-top: 40px;
  }
  footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 14px;
    align-items: center;
    justify-content: center;
  }
  footer nav a {
    color: #39506a;
    font-size: 0.99rem;
    font-weight: 500;
    transition: color 0.16s;
  }
  footer nav a:hover, footer nav a:focus {
    color: #35A7FF;
    text-decoration: underline;
    outline: none;
  }
  .footer-contact {
    color: #777;
    font-size: 0.95rem;
    text-align: center;
    margin-top: 4px;
  }

  /* TEXT SECTIONS AND FORMS */
  .text-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
  }

  /* RESPONSIVE SPACING & FLEX LAYOUTS */
  @media (max-width: 1023px) {
    section, .card, .testimonial-card {
      padding: 26px 12px;
    }
    .container {
      padding: 0 5px;
      max-width: 100vw;
    }
    .service-cards {
      flex-direction: column;
      gap: 18px;
    }
    .service-cards > div {
      width: 100%;
    }
    .card-container {
      flex-direction: column;
      gap: 12px;
    }
    .content-grid, .text-image-section {
      flex-direction: column;
      gap: 14px;
    }
  }
  @media (max-width: 768px) {
    h1, .h1 {
      font-size: 1.65rem;
      margin-bottom: 18px;
    }
    h2, .h2 {
      font-size: 1.22rem;
      margin-bottom: 13px;
    }
    .content-wrapper {
      gap: 12px;
    }
    .testimonial-card {
      font-size: 1rem;
      padding: 15px 10px;
    }
    .main-nav {
      display: none;
    }
    .mobile-menu-toggle {
      top: 6px;
      right: 10px;
    }
    .text-image-section {
      flex-direction: column;
      align-items: flex-start;
    }
    section {
      padding: 18px 2px;
      margin-bottom: 32px;
      border-radius: 8px;
    }
    footer {
      padding: 18px 0 14px 0;
    }
    .footer-contact {
      font-size: 0.87rem;
    }
  }

  /* Focus accessibility */
  a:focus-visible, button:focus-visible, .cta-button:focus-visible, .dw-btn:focus-visible {
    outline: 2px solid #0A2239;
    outline-offset: 2px;
  }

  /* Cookie Consent Banner */
  .cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    background: rgba(255,255,255,0.99);
    box-shadow: 0 -2px 28px 0 rgba(10,34,57,0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    gap: 22px;
    font-size: 1rem;
    font-family: 'Roboto', Arial, sans-serif;
    border-radius: 18px 18px 0 0;
    max-width: 650px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    transition: bottom 0.23s cubic-bezier(.6,-0.28,.74,.05), opacity 0.16s;
    opacity: 1;
    pointer-events: auto;
  }
  .cookie-banner.hide {
    opacity: 0;
    bottom: -100px;
    pointer-events: none;
  }
  .cookie-banner .dw-btn {
    margin-top: 0;
  }
  .cookie-banner-text {
    flex: 1;
    margin-right: 18px;
    color: #222f3e;
    font-size: 1rem;
  }
  @media (max-width: 750px) {
    .cookie-banner {
      flex-direction: column;
      align-items: stretch;
      padding: 16px 8px;
      max-width: 98vw;
    }
    .cookie-banner-text {
      margin-right: 0;
      margin-bottom: 10px;
    }
  }

  /* Cookie Modal Dialog */
  .cookie-modal-backdrop {
    position: fixed;
    z-index: 1300;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10,34,57,0.41);
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.26s;
    pointer-events: all;
  }
  .cookie-modal-backdrop.hide {
    opacity: 0;
    pointer-events: none;
  }
  .cookie-modal {
    background: #fff;
    border-radius: 18px;
    padding: 38px 28px 26px 28px;
    max-width: 420px;
    width: 96vw;
    box-shadow: 0 4px 32px rgba(10,34,57,0.18);
    position: relative;
    z-index: 1400;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeUp 0.24s cubic-bezier(.44,0,.56,1);
  }
  @keyframes fadeUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }
  .cookie-modal h2 {
    font-size: 1.22rem;
    margin-bottom: 12px;
    color: #0A2239;
    font-family: 'Orbitron', 'Roboto', Arial, sans-serif;
    font-weight: 700;
  }
  .cookie-category-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 1.03rem;
    margin-bottom: 6px;
  }
  .cookie-category {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .cookie-category label {
    font-weight: 500;
    color: #0A2239;
  }
  .cookie-category input[type="checkbox"] {
    accent-color: #35A7FF;
    width: 18px;
    height: 18px;
    margin-right: 4px;
    cursor: pointer;
  }
  .cookie-modal-close {
    position: absolute;
    right: 18px;
    top: 14px;
    font-size: 2rem;
    color: #222f3e;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.14s;
    z-index: 1500;
  }
  .cookie-modal-close:hover, .cookie-modal-close:focus {
    color: #35A7FF;
    outline: none;
  }
  .cookie-modal-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 6px;
    justify-content: flex-end;
  }
  @media (max-width: 540px) {
    .cookie-modal {
      padding: 16px 6vw 16px 6vw;
      min-width: 0;
    }
  }

  /* SCROLLBAR (Scandinavian minimal) */
  ::-webkit-scrollbar {
    width: 9px;
    background: #F0F5FA;
  }
  ::-webkit-scrollbar-thumb {
    background: #E4E9F2;
    border-radius: 6px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #D5DEE6;
  }

  /* MICRO-INTERACTIONS & TRANSITIONS */
  .service-cards > div, .card, .testimonial-card {
    transition: box-shadow 0.18s, transform 0.13s;
  }
  .service-cards > div:hover, .card:hover {
    box-shadow: 0 6px 24px rgba(53,167,255,0.10);
    transform: translateY(-6px) scale(1.013);
  }
  .testimonial-card:hover {
    box-shadow: 0 6px 32px rgba(53,167,255,0.10);
    transform: translateY(-2px) scale(1.01);
  }
  button:active, .cta-button:active {
    transform: scale(0.97);
  }

  /* GENERAL UTILITIES */
  .mb-0 { margin-bottom: 0!important; }
  .mb-2 { margin-bottom: 2px!important; }
  .mt-2 { margin-top: 2px!important; }
  .hidden { display: none !important; }

  /* FORMATTING FOR SYSTEM MESSAGES/THANK YOU PAGES */
  .thank-you-message {
    background: #E4E9F2;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    font-size: 1.15rem;
    color: #0A2239;
    margin-bottom: 20px;
  }

  /* Accessibility, focus for keyboard nav */
  .cta-button:focus-visible, .dw-btn:focus-visible, .mobile-menu-close:focus-visible, .mobile-menu-toggle:focus-visible, .cookie-modal-close:focus-visible {
    outline: 3px solid #35A7FF;
    outline-offset: 2px;
  }

  /* Scandinavian Clean: Subtle shadows, light backgrounds, spacing */
  /* --- END STYLES --- */
