/* --- CSS RESET & BASE ------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  height: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background-color: #212632;
  color: #E1E6FA;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #56A3A6;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #E1E6FA;
}
ul, ol {
  margin-left: 1.2em;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #E1E6FA;
  letter-spacing: 0.02em;
  font-weight: 600;
  margin-bottom: 18px;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
.subtitle { color: #B0B8C7; font-size: 1.1rem; margin-bottom: 20px; }

.container {
  width: 100%;
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --- LAYOUT: Sections & Content ----------------- */
section {
  width: 100%;
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #262c39;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(49,61,90,0.08), 0 1.5px 4px rgba(30,35,40,0.14);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}
.text-section {
  max-width: 720px;
}

/* Flex patterns according to requirements */
.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #293248;
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 rgba(49,61,90,0.09);
  padding: 24px 24px 20px 24px;
  transition: box-shadow 0.25s, transform 0.22s;
}
.card:hover {
  box-shadow: 0 6px 28px 0 rgba(36,113,118,0.16);
  transform: translateY(-3px) scale(1.02);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.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: #E1E6FA;
  color: #212632;
  padding: 20px 28px;
  margin-bottom: 24px;
  border-radius: 12px;
  box-shadow: 0 5px 25px 0 rgba(49,61,90,0.12);
  border-left: 6px solid #56A3A6;
}
.testimonial-card h3 { color: #313D5A; }
.testimonial-card span,
.testimonial-name { font-weight: bold; color: #247176; letter-spacing: 0.04em; margin-top: 7px; }
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- MAIN NAVIGATION ---------------------------- */
header {
  width: 100%;
  background: #212632;
  position: relative;
  z-index: 30;
  box-shadow: 0 2px 8px rgba(30,35,40,0.07);
}
nav.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  margin-right: 38px;
  padding-right: 10px;
  display: flex;
  align-items: center;
}
nav.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  list-style: none;
}
nav.main-nav li {
  display: flex;
}
nav.main-nav li a {
  padding: 7px 12px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #E1E6FA;
  border-radius: 5px;
  transition: background 0.18s, color 0.24s;
  border: 0.5px solid transparent;
  position: relative;
  outline: none;
}
nav.main-nav li a:hover, nav.main-nav li a:focus {
  background: #293248;
  color: #56A3A6;
  border-color: #313D5A;
}
.button-primary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  background: linear-gradient(86deg, #313D5A 95%, #247176 100%);
  color: #E1E6FA;
  padding: 9px 23px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.07em;
  font-size: 1rem;
  box-shadow: 0 2.5px 10px rgba(36,113,118,0.11);
  transition: background 0.26s, color 0.14s, box-shadow 0.22s, transform 0.16s;
  margin-left: 12px;
  margin-top: 2px;
  display: inline-block;
}
.button-primary:hover, .button-primary:focus {
  background: #56A3A6;
  color: #212632;
  box-shadow: 0 6px 36px rgba(36,113,118,0.17);
  transform: translateY(-2px) scale(1.025);
}
.button-secondary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #E1E6FA;
  color: #313D5A;
  padding: 8px 19px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.96rem;
  letter-spacing: 0.03em;
  font-weight: 500;
  margin-top: 10px;
  transition: background 0.18s, color 0.16s, box-shadow 0.18s, transform 0.11s;
  box-shadow:0 1.5px 8px rgba(49,61,90,0.09);
  display: inline-block;
}
.button-secondary:hover, .button-secondary:focus {
  background: #56A3A6;
  color: #fff;
  box-shadow: 0 4px 22px 0 rgba(36,113,118,0.19);
  transform: translateY(-2px) scale(1.01);
}

/* --- MOBILE MENU ------------------------------- */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: #E1E6FA;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  margin-left: 25px;
  transition: color 0.2s, background 0.2s;
  z-index: 101;
  border-radius: 4px;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #313D5A;
  color: #56A3A6;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #212632;
  z-index: 200;
  transform: translateX(-110%);
  transition: transform 0.5s cubic-bezier(.7,.16,.34,1.01);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 20px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #E1E6FA;
  font-size: 2.2rem;
  border: none;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 32px;
  transition: color 0.15s;
  z-index: 202;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #56A3A6;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 6px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  color: #E1E6FA;
  border-radius: 6px;
  padding: 13px 4px 13px 7px;
  transition: background 0.19s, color 0.17s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #56A3A6;
  background: #293248;
}

/* --- HERO, FEATURES, LISTS --------------------- */
.features-list, .course-list, .success-story-list, .methoden-grid, .trainer-profile-list, .team-bio-list, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  list-style: none;
  padding-left: 0;
}
.features-list li, .course-list li, .trainer-profile, .trainer-short-bio {
  flex: 1 1 285px;
  background: #293248;
  border-radius: 10px;
  box-shadow: 0 1px 9px 0 rgba(49,61,90,0.09);
  padding: 20px 20px 16px 20px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.22s, transform 0.22s;
  border-left: 4px solid #56A3A6;
}
.features-list li img { width: 36px; height: 36px; filter: contrast(1.1) brightness(0.93); margin-bottom: 10px; }
.features-list li h3 { color: #56A3A6; font-size: 1.14rem; }

/* Methoden grid (in kurse.html) */
.methoden-grid > div {
  flex: 1 1 285px;
  background: #232b37;
  border-radius: 11px;
  padding: 20px;
  margin-bottom: 20px;
  min-width: 220px;
  box-shadow: 0 1.5px 9px 0 rgba(49,61,90,0.10);
  border-left: 4px solid #313D5A;
}

/* Blog styling */
.blog-list {
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 16px;
}
.blog-list article {
  flex: 1 1 305px;
  background: #293248;
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 rgba(49,61,90,0.06);
  padding: 20px 24px;
  min-width: 230px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  border-left: 5px solid #56A3A6;
}

/* Category filters (blog) */
.blog-category-filters {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  color: #A0AEC0;
  font-size: 0.98rem;
  margin-bottom: 14px;
}
.blog-category-filters a {
  color: #56A3A6;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  transition: background 0.16s;
}
.blog-category-filters a:hover,
.blog-category-filters a:focus {
  background: #313D5A;
  color: #E1E6FA;
}

/* --- FOOTER ----------------------------------- */
footer {
  background: #181C22;
  color: #B9BFCB;
  padding: 36px 0 20px 0;
  margin-top: 82px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  justify-content: center;
}
.footer-nav {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0;
}
.footer-nav li a {
  color: #B9BFCB;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  padding: 7px 8px;
  border-radius: 4px;
  transition: background 0.12s, color 0.18s;
}
.footer-nav li a:hover,
.footer-nav li a:focus {
  color: #E1E6FA;
  background: #293248;
}
.footer-contact {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  font-size: 0.99rem;
  letter-spacing: 0.01em;
  justify-content: center;
  margin-bottom: 4px;
}
.footer-contact img {
  width: 15px;
  height: 15px;
  margin-right: 6px;
  vertical-align: middle;
  filter: contrast(1.4) grayscale(1);
}
.footer-copy {
  margin-top: 5px;
  color: #506178;
  font-size: 0.96rem;
  letter-spacing: 0.04em;
}

/* --- CONTACT DETAILS LIST --------------------- */
.contact-details {
  list-style: none;
  padding-left: 0;
  margin-top: 12px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.contact-details li {
  display: flex;
  align-items: center;
  color: #56A3A6;
  background: #232b37;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 1.04rem;
}
.contact-details img {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  filter: contrast(1.1);
}

/* --- UTILS: SPACING, TYPO, ACCENTS ----------- */
ul li, ol li {
  margin-bottom: 11px;
  line-height: 1.6;
}
ul:last-child, ol:last-child {
  margin-bottom: 0;
}

hr {
  border: none;
  border-top: 1px solid #293248;
  margin: 36px 0 26px;
}

/* --- TABLES (if used) ------------------------ */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: #222a35;
  color: #E1E6FA;
  border-radius: 10px;
}
th, td {
  padding: 14px 12px;
  border-bottom: 1px solid #313D5A;
}
th { background: #293248; font-weight: 600; }

/* --- RESPONSIVE DESIGN ----------------------- */
@media (max-width: 1100px) {
  .container {
    max-width: 960px;
  }
}
@media (max-width: 850px) {
  .container {
    max-width: 98%;
  }
}
@media (max-width: 768px) {
  nav.main-nav ul {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .content-wrapper, .card-container, .card-grid, .content-grid, .features-list, .course-list, .blog-list, .success-story-list, .methoden-grid, .testimonial-list, .trainer-profile-list, .team-bio-list {
    flex-direction: column !important;
    gap: 22px !important;
  }
  .text-image-section {
    flex-direction: column !important;
    align-items: stretch;
    gap: 18px;
  }
  .section {
    padding: 18px 6px;
    margin-bottom: 34px;
  }
  .testimonial-card { padding: 14px 9px; }
  .footer-contact { flex-direction: column; gap: 11px; }
}
@media (max-width: 540px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.15rem; }
  .container {
    padding-left: 3px;
    padding-right: 3px;
  }
  .section {
    padding: 11px 2px;
  }
  .button-primary, .button-secondary {
    font-size: 0.93rem;
    padding: 9px 10px;
  }
}

/* --- COOKIE BANNER --------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #293248;
  color: #E1E6FA;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 16px 18px 16px;
  box-shadow: 0 -2px 32px #181C22b4;
  z-index: 2999;
  font-size: 1rem;
  gap: 26px;
  flex-wrap: wrap;
  opacity: 1;
  transition: transform 0.38s cubic-bezier(.72,.2,.48,1), opacity 0.22s;
}
.cookie-banner.hide {
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-banner-text {
  flex: 1 1 280px;
  margin-bottom: 8px;
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}
.cookie-banner .button-cookie {
  padding: 8px 15px;
  font-size: 0.97rem;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border: none;
  cursor: pointer;
  background: #56A3A6;
  color: #fff;
  transition: background 0.17s, color 0.13s, transform 0.13s;
  font-weight: 600;
  box-shadow: 0 1.2px 8px 0 rgba(49,61,90,0.08);
  margin-right: 4px;
}
.button-cookie.cookie-settings {
  background: #293248;
  color: #56A3A6;
  border: 1px solid #56A3A6;
}
.button-cookie:hover, .button-cookie:focus {
  background: #247176;
  color: #fff;
  transform: translateY(-1.5px) scale(1.03);
}
.button-cookie.cookie-settings:hover, .button-cookie.cookie-settings:focus {
  background: #222a35;
  color: #56A3A6;
}

/* --- COOKIE MODAL ---------------------------- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(30,35,40,0.62);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #232b37;
  border-radius: 16px;
  box-shadow: 0 8px 42px 0 rgba(36,113,118,0.19), 0 1.5px 4px rgba(30,35,40,0.19);
  color: #E1E6FA;
  max-width: 430px;
  width: 98vw;
  padding: 28px 22px 16px 22px;
  animation: modalIn 0.45s cubic-bezier(.67,.44,.45,.99);
}
@keyframes modalIn {
  from { transform: translateY(40px) scale(0.92); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: #56A3A6;
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.cookie-modal ul {
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #293248;
  padding: 8px 14px;
  border-radius: 9px;
  margin-bottom: 10px;
  color: #E1E6FA;
  font-size: 1.04rem;
}
.cookie-category input[type=checkbox] {
  width: 18px; height: 18px;
  accent-color: #56A3A6;
}
.cookie-category-label {
  flex: 1 1 auto;
}
.cookie-modal .button-cookie {
  margin-top: 6px;
}

/* --- MICRO-INTERACTIONS ----------------------- */
.button-primary, .button-secondary, .button-cookie {
  transition: background 0.2s, color 0.2s, box-shadow 0.17s, transform 0.14s;
}
a, .footer-nav a, .blog-category-filters a {
  transition: color 0.19s, background 0.17s;
}
.card, .features-list li, .course-list li, .blog-list article, .methoden-grid > div, .testimonial-card {
  transition: box-shadow 0.23s, transform 0.19s;
}
.card:hover, .features-list li:hover, .course-list li:hover, .blog-list article:hover, .methoden-grid > div:hover {
  box-shadow: 0 11px 35px 0 rgba(36,113,118,0.17);
  transform: translateY(-5px) scale(1.017);
}

/* --- SCROLLBAR / SELECTION -------------------- */
::-webkit-scrollbar {
  width: 10px;
  background: #232b37;
}
::-webkit-scrollbar-thumb {
  background: #313D5A;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #56A3A6;
}
::selection {
  background: #56A3A6;
  color: #E1E6FA;
}

/* --- INDUSTRIAL MODERN ACCENTS ---------------- */
/* Subtle metallic/urban details */
.card, .features-list li, .course-list li, .methoden-grid > div, .blog-list article {
  border-right: 2.5px solid #b0b8c7;
  position: relative;
}
.card:before, .features-list li:before, .course-list li:before, .methoden-grid > div:before, .blog-list article:before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  height: 100%; width: 4px;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(180deg,#56A3A6,#313D5A,#b0b8c7 86%);
  opacity: 0.23;
  z-index: 0;
}

/* --- MISC ------------------------------------- */
::-webkit-input-placeholder { color: #A0AEC0; }
::-moz-placeholder { color: #A0AEC0; }
:-ms-input-placeholder { color: #A0AEC0; }
::placeholder { color: #A0AEC0; }

/* --- END -------------------------------------- */