/* =============================
   CSS RESET & NORMALIZE
============================= */
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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  background-color: #F5F5F5;
  font-family: "Roboto", Arial, sans-serif;
  color: #181823;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
a {
  color: #D7263D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #a71729;
  text-decoration: underline;
  outline: none;
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 20px;
}
li + li {
  margin-top: 12px;
}

/* =============================
   BRAND COLORS, FONTS, ROOTS
============================= */
:root {
  --primary: #D7263D;
  --primary-hover: #b61d2f;
  --secondary: #181823;
  --accent: #F5F5F5;
  --neutral: #fff;
  --shadow: 0 4px 16px rgba(215,38,61,0.08), 0 1.5px 6px rgba(24,24,35,0.07);
  --border-radius: 18px;
  --radius-sm: 12px;
}

/* =============================
   TYPOGRAPHY
============================= */
h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", Arial, sans-serif;
  color: #181823;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.14;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1.18;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  line-height: 1.22;
}
h4, h5, h6 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}
p, ul, ol {
  font-size: 1.1rem;
  color: #242428;
  margin-bottom: 14px;
  line-height: 1.6;
}
strong {
  font-weight: 600;
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
}

/* =============================
   STRUCTURE & LAYOUT
============================= */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: var(--neutral);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--neutral);
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  min-width: 260px;
  flex: 1 1 320px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover,
.card:focus {
  box-shadow: 0 4px 32px rgba(215,38,61,0.13);
  transform: translateY(-6px) scale(1.03);
}

.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: 10px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: 0 2.5px 14px rgba(215,38,61,0.06);
  color: #181823;
  max-width: 430px;
  min-width: 200px;
}
.testimonial-card p {
  color: #181823;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: var(--primary);
  font-size: 1rem;
  font-style: italic;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  box-shadow: 0 3px 12px rgba(215,38,61,0.08);
}

/* =============================
   HERO SECTIONS
============================= */
.hero {
  background: linear-gradient(100deg, #FFD7D7 0%, #F9D9C2 100%);
  padding: 0;
  margin-bottom: 42px;
}
.hero .container {
  padding-top: 48px;
  padding-bottom: 48px;
  align-items: flex-start;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.5rem;
}
.hero p {
  font-size: 1.18rem;
  margin-bottom: 20px;
}

/* =============================
   BUTTONS & CTA
============================= */
.cta-btn, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 38px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 600;
  background: var(--primary);
  color: var(--neutral);
  border: none;
  border-radius: 24px;
  box-shadow: 0 2.5px 13px rgba(215,38,61,0.09);
  outline: none;
  cursor: pointer;
  transition: background 0.20s, transform 0.13s, box-shadow 0.20s;
  margin-top: 6px;
  min-width: 170px;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus, .button:hover, .button:focus {
  background: var(--primary-hover);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 5px 16px rgba(215,38,61,0.19);
  text-decoration: none;
  outline: none;
  color: white;
}

/* =============================
   NAVIGATION (DESKTOP & MOBILE)
============================= */
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-family: "Montserrat", Arial, sans-serif;
}
header {
  background: var(--neutral);
  box-shadow: 0 2px 14px rgba(215,38,61,0.06);
  padding: 0 0 0 0;
}
header nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 12px;
  justify-content: flex-start;
}
nav a {
  font-size: 1.05rem;
  font-weight: 500;
  color: #181823;
  padding: 8px 14px;
  border-radius: 18px;
  transition: color 0.18s, background 0.14s, box-shadow 0.18s;
}
nav a.logo {
  margin-right: 18px;
  padding: 0;
}
nav a:not(.logo):hover, nav a:not(.logo):focus {
  background: #FFD7D7;
  color: var(--primary);
  text-decoration: none;
}

/* =============================
   MOBILE MENU
============================= */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 1.7rem;
  z-index: 25;
  cursor: pointer;
  transition: background 0.14s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #F9D9C2;
  box-shadow: 0 7px 32px rgba(215,38,61,0.21);
  transform: translateX(-100vw);
  transition: transform 0.44s cubic-bezier(0.45,0.08,0.52,1.03);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
  z-index: 1001;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2.2rem;
  width: 40px;
  height: 40px;
  margin: 22px 18px 10px 18px;
  align-self: flex-end;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 1002;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 8px 32px 0 32px;
  gap: 14px;
}
.mobile-nav a {
  color: var(--secondary);
  background: transparent;
  font-size: 1.35rem;
  font-weight: 600;
  padding: 16px 0;
  border-radius: 12px;
  width: 100%;
  transition: background 0.13s, color 0.17s;
  touch-action: manipulation;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFD7D7;
  color: var(--primary);
}

@media (max-width: 1000px) {
  header nav {
    flex-wrap: wrap;
    gap: 12px 8px;
  }
}

@media (max-width: 830px) {
  header nav {
    gap: 6px;
  }
  nav a {
    padding: 6px 7px;
    font-size: 0.97rem;
  }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu { display: flex; }
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =============================
   MAIN LAYOUT SPACING
============================= */
main > section {
  margin-bottom: 50px;
}
@media (max-width: 600px) {
  main > section {
    margin-bottom: 38px;
  }
}

/* =============================
   SECTIONS & CONTENT CARDS
============================= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--neutral);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
}
@media (max-width: 600px) {
  section {
    padding: 24px 6px;
    margin-bottom: 34px;
  }
}

/* =============================
   TABLES
============================= */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 24px;
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: 0 2.5px 12px rgba(215,38,61,0.08);
  overflow: hidden;
}
thead {
  background: #FFD7D7;
}
th, td {
  border: none;
  padding: 16px 12px;
  font-size: 1.13rem;
  text-align: center;
  font-family: "Montserrat", Arial, sans-serif;
}
th {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.12rem;
}
tr {
  border-bottom: 1px solid #F3C0C0;
}
tr:last-child {
  border-bottom: none;
}
tbody td {
  font-weight: 500;
}

/* =============================
   FORMS & CONTACT DATA
============================= */
.text-section,
.text-image-section {
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.text-section ul, .text-section ol {
  margin-top: 8px;
  margin-bottom: 18px;
}

.kontakt .text-section {
  margin-bottom: 14px;
}

/* =============================
   FOOTER
============================= */
footer {
  background: #FFD7D7;
  padding: 30px 0 18px 0;
  margin-top: 24px;
}
footer nav {
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}
footer nav a {
  font-size: 1.04rem;
  color: var(--primary);
  font-weight: 600;
  background: none;
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.97rem;
  color: #181823;
  margin-top: 12px;
}

/* =============================
   RESPONSIVE LAYOUTS (Flex only)
============================= */
@media (max-width: 768px) {
  .text-image-section, .content-grid, .card-container {
    flex-direction: column !important;
    gap: 22px !important;
  }
  .section {
    padding: 28px 8px;
  }
  .hero .container {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .card,
  .testimonial-card {
    min-width: 90vw;
    max-width: 98vw;
    margin-left: 0;
    margin-right: 0;
  }
  table, th, td {
    font-size: 1rem;
    padding: 11px 6px;
  }
}

@media (max-width: 480px) {
  .card,
  .testimonial-card {
    padding: 16px 6px;
  }
  .container {
    padding: 0 3px;
  }
}

/* =============================
   MICRO-ANIMATIONS & INTERACTION
============================= */
.card, .cta-btn, .button {
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}
nav a, .mobile-nav a, footer nav a {
  transition: color 0.18s, background 0.16s, text-decoration 0.17s;
}
section, .hero, .card, .testimonial-card {
  transition: box-shadow 0.2s, background 0.18s;
}

/* =============================
   LEGAL / INFO PAGES
============================= */
.legal {
  background: var(--accent);
  box-shadow: none;
  border-radius: var(--border-radius);
  padding-top: 32px;
  padding-bottom: 32px;
}
.legal .text-section {
  font-size: 1.08rem;
  color: #242428;
}
.confirmation {
  text-align: center;
  background: #F9D9C2;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 56px 16px;
}

/* =============================
   COOKIE CONSENT BANNER & MODAL
============================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fffcea;
  color: #181823;
  border-top: 3px solid var(--primary);
  box-shadow: 0 -2px 16px rgba(215,38,61,0.13);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: 22px 18px 18px 18px;
  z-index: 2000;
  font-size: 1.06rem;
  animation: slideUp-banner 0.55s;
}
@keyframes slideUp-banner {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-banner p {
  margin-right: 18px;
  color: #181823;
  flex: 1;
  font-size: 1.02rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-banner .button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 1rem;
  padding: 8px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.16s, transform 0.11s;
}
.cookie-banner .button.settings {
  background: #FFD7D7;
  color: var(--secondary);
}
.cookie-banner .button.reject {
  background: #181823;
  color: #fff;
}
.cookie-banner .button:hover, .cookie-banner .button:focus {
  background: var(--primary-hover);
  color: #fff;
  outline: 2px solid var(--primary);
  text-decoration: none;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -54%);
  background: #fff;
  color: #181823;
  border-radius: 24px;
  box-shadow: 0 3px 36px rgba(215,38,61,0.18);
  z-index: 3000;
  max-width: 405px;
  width: 90vw;
  padding: 34px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  animation: fadeUp-modal 0.38s forwards;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: initial;
}
@keyframes fadeUp-modal {
  0% { opacity: 0; transform: translate(-50%, -58%); }
  100% { opacity: 1; transform: translate(-50%, -54%); }
}
.cookie-modal h3 {
  margin-bottom: 5px;
  font-size: 1.18rem;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
  font-size: 1.06rem;
}
.cookie-modal input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  border-radius: 6px;
  margin-right: 8px;
}
.cookie-modal .modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.cookie-modal .button {
  font-size: 1.01rem;
  padding: 8px 18px;
}
.cookie-modal .modal-close {
  background: transparent;
  color: var(--primary);
  border: none;
  position: absolute;
  right: 16px;
  top: 10px;
  font-size: 2rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #FFD7D7;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 7px;
    align-items: flex-start;
    padding: 16px 8px 10px 8px;
  }
  .cookie-banner p {
    margin-right: 0;
    margin-bottom: 10px;
    font-size: 0.97rem;
  }
  .cookie-modal {
    max-width: 97vw;
    padding: 16px 8px 18px 8px;
    min-height: 250px;
  }
}

/* =============================
   UTILITY FLEX LAYOUTS (no grid)
============================= */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-center {
  align-items: center;
  justify-content: center;
}
.flex-between {
  justify-content: space-between;
}
.gap-20 {
  gap: 20px;
}
.gap-24 {
  gap: 24px;
}

/* =============================
   ICONS (SVG/IMG in list)
============================= */
li img {
  width: 30px;
  height: 30px;
  margin-right: 11px;
  border-radius: 8px;
  vertical-align: middle;
  background: #ffd7d7;
  box-shadow: 0 1.5px 4px rgba(215,38,61,0.09);
}
li {
  display: flex;
  align-items: center;
}

/* =============================
   MISC
============================= */
::-webkit-input-placeholder { color: #969696; opacity: 1; }
::-moz-placeholder { color: #969696; opacity:1; }
:-ms-input-placeholder { color: #969696; opacity:1; }
::placeholder { color: #969696; opacity:1; }

body.cookie-modal-open {
  overflow: hidden !important;
}

/* =============================
   ENSURE NO OVERLAPPING/FLEX SPACING
============================= */
.card, .testimonial-card, section, .feature-item {
  margin-bottom: 20px;
}
.card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  gap: 20px;
}

/* =============================
   SPECIAL CLASSES/SECTION TWEAKS
============================= */
.comparison,
.cta,
.confirmation {
  background: #FFD7D7;
  box-shadow: 0 2.5px 18px rgba(215,38,61,0.09);
  border-radius: var(--border-radius);
  text-align: center;
  margin-bottom: 38px;
}
.comparison h2,
.cta h2,
.confirmation h1 {
  color: var(--primary);
}
.features {
  background: #F9D9C2;
  border-radius: var(--border-radius);
  box-shadow: 0 1.5px 8px rgba(215,38,61,0.08);
}
.services {
  background: #FFF1E1;
  border-radius: var(--border-radius);
  box-shadow: 0 1.5px 8px rgba(215,38,61,0.06);
}
.course-highlights ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 0;
  margin: 0 auto 12px auto;
}

/* =============================
   END OF CSS
============================= */
