/* --- 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1; background: #F8FAFB; color: #222; box-sizing: border-box; min-height: 100vh;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
  content: ''; content: none;
}
table {
  border-collapse: collapse; border-spacing: 0; width: 100%;
}
a {
  color: inherit; text-decoration: none; transition: color 0.2s;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* --- Typography --- */
:root {
  --primary: #14213D;
  --secondary: #FCA311;
  --accent: #E5E5E5;
  --pastel-blue: #aecbfa;
  --pastel-yellow: #ffe29f;
  --pastel-pink: #FFD6E0;
  --pastel-purple: #E7D6FB;
  --pastel-green: #C3F9D1;
  --border-radius: 18px;
  --shadow: 0 4px 18px 0 rgba(20, 33, 61, 0.09);
  --shadow-card: 0 2px 6px 0 rgba(20, 33, 61, 0.12);
}
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,500|Roboto:400,500,700&display=swap');
body {
  font-family: 'Roboto', Arial, sans-serif; font-size: 16px; line-height: 1.7; background: var(--pastel-blue);
  color: #2b2f40;
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.3rem; margin-bottom: 20px;
}
h2 {
  font-size: 1.7rem; margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem; margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem; margin-bottom: 8px;
}
p, ul, ol {
  margin-bottom: 14px;
}
p:last-child, ul:last-child, ol:last-child {
  margin-bottom: 0;
}
strong {
  font-weight: 600;
}

/* --- Layout Containers --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.text-section {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

/* --- Spacing --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
}
.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: center;
  gap: 20px;
  padding: 20px;
  background: var(--pastel-yellow);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  color: #192235;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding: 0;
  margin: 0 0 0 -10px;
}
.features ul li {
  background: var(--pastel-pink);
  border-radius: 16px;
  padding: 18px 22px;
  font-size: 1.08rem;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
  transition: box-shadow 0.20s;
  box-shadow: 0 2px 8px 0 rgba(220, 130, 180, 0.09);
}
.features ul li img {
  width: 32px; height: 32px; margin-right: 0;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(120deg, var(--pastel-blue) 80%, var(--pastel-yellow) 100%);
  padding: 68px 0 64px 0;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 560px;
  gap: 20px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.6rem;
  margin-bottom: 8px;
}
.hero p {
  color: #27406b;
  font-size: 1.2rem;
}

/* --- Main Navigation --- */
header {
  width: 100%;
  background: rgba(255,255,255,0.89);
  box-shadow: 0 1px 10px 0 rgba(20, 33, 61, 0.06);
  position: sticky; top: 0; z-index: 40;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  position: relative;
}
header img {
  height: 38px; width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 36px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.01em;
  border-radius: 9px;
  padding: 8px 14px;
  transition: background 0.22s, color 0.18s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--pastel-yellow);
  color: #2b2f40;
}
.btn-primary {
  background: linear-gradient(90deg, var(--secondary), #FFCE80);
  color: #222;
  border: none;
  padding: 12px 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 13px;
  box-shadow: 0 2px 10px 0 rgba(252, 163, 17, 0.08);
  cursor: pointer;
  margin-left: 22px;
  transition: box-shadow 0.2s, transform 0.17s, background 0.2s;
  display: inline-block;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  box-shadow: 0 4px 18px 0 rgba(252, 163, 17, 0.19);
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(90deg, #FFD6E0, #ffe29f 92%);
  color: var(--primary);
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
  background: none; border: none; outline: none; font-size: 2.0rem;
  color: var(--primary); cursor: pointer; display: none;
  padding: 6px 14px; border-radius: 8px;
  margin-left: 20px;
  transition: background 0.19s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--pastel-pink);
}
.mobile-menu {
  position: fixed;
  z-index: 1400;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.99);
  transform: translateX(-100vw);
  transition: transform 0.37s cubic-bezier(0.77,0,0.18,1);
  box-shadow: 4px 0 32px 0 rgba(20,33,61,0.12);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 0; visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu-close {
  position: absolute; right: 24px; top: 16px;
  background: none; border: none;
  font-size: 2.1rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 5;
  padding: 4px 8px;
  border-radius: 7px;
  transition: background 0.19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--pastel-yellow);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
  margin-top: 74px;
  width: 100%;
  padding: 38px 24px 0 32px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.mobile-nav a {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  padding: 15px 9px 15px 0;
  width: 100%;
  border-bottom: 1px solid #eee;
  transition: background 0.15s, color 0.14s;
  border-radius: 7px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-yellow); color: #242947;
}

/* --- Services Section --- */
.services .service-list {
  display: flex; flex-wrap: wrap; gap: 24px; margin-top: 18px;
  justify-content: flex-start;
}
.service-card {
  background: var(--pastel-purple);
  border-radius: var(--border-radius);
  padding: 30px 26px 28px 26px;
  box-shadow: var(--shadow-card);
  flex: 1 1 240px;
  min-width: 240px; max-width: 340px;
  display: flex; flex-direction: column; align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.service-card h3 {
  margin-bottom: 8px;
  color: var(--primary);
}
.service-card p {
  font-size: 1rem; margin-bottom: 18px; color: #3b4061;
}
.service-card a {
  margin-top: auto; color: var(--secondary); font-weight: bold; font-size: 1rem; border-bottom: 2px solid transparent; transition: border 0.2s;
}
.service-card a:hover, .service-card a:focus {
  border-bottom: 2px solid var(--secondary); color: var(--primary);
}
.service-card:hover {
  box-shadow: 0 8px 26px 0 rgba(105, 60, 204, 0.10);
  transform: translateY(-4px) scale(1.03);
}

/* --- CTA Section --- */
.cta {
  text-align: center;
  background: linear-gradient(50deg,#fff 80%, var(--pastel-green) 100%);
  border-radius: var(--border-radius);
  padding: 40px 10px 54px 10px;
  margin-top: 34px;
}
.cta .btn-primary {
  margin-top: 20px;
}

/* --- Testimonials --- */
.testimonials {
  background: linear-gradient(90deg, var(--pastel-yellow) 84%, #fff 100%);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 32px 0;
  margin: 48px 0 0 0;
}
.testimonials h2 {
  text-align: center;
  margin-bottom: 22px;
}
.testimonial-card {
  width: 100%; max-width: 520px;
  margin: 0 auto 24px auto;
}
.testimonial-card p {
  font-size: 1.1rem; color: #21243b; margin-bottom: 10px;
}
.testimonial-card strong {
  display: block; font-size: 1rem; color: var(--primary); margin-top: 8px;
}

/* --- Footer --- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 36px 0 22px 0;
  position: relative;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 38px;
  justify-content: space-between;
}
.branding {
  display: flex; align-items: center; gap: 8px;
}
.branding img {
  height: 34px; width: auto;
}
.footer-nav {
  display: flex; flex-direction: column;
  gap: 5px;
}
.footer-nav a {
  font-size: 1rem; color: #fff; opacity: 0.85;
  transition: color 0.17s, text-decoration 0.14s, opacity 0.15s;
  padding: 3px 0;
}
.footer-nav a:hover {
  color: var(--secondary);
  opacity: 1;
}
.footer-contact p, .footer-contact a {
  font-size: 0.98rem; color: #e3e5f1; margin-bottom: 8px;
}
.footer-contact a {
  text-decoration: underline; color: #caf0fa; font-weight: 500;
}

/* --- Tables (Preise) --- */
table {
  width: 100%;
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 16px 0 rgba(90,70,180,0.06);
  margin: 16px 0 32px 0;
}
thead {
  background: var(--pastel-yellow);
}
th, td {
  padding: 14px 8px; text-align: left;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  color: var(--primary);
  font-weight: 600;
}
td {
  color: #3a3c59;
  font-size: 1.02rem;
}
tr {
  border-bottom: 1px solid #eee;
}
tr:last-child {
  border-bottom: none;
}

/* --- Tags (e.g. Kurse) --- */
.tag {
  background: var(--pastel-green);
  color: #11603c;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.89rem;
  font-weight: 600;
  margin-left: 7px;
}

/* --- Lists / Ol --- */
ol li {
  margin-bottom: 6px; padding-left: 0.5em;
  list-style-type: decimal;
}
ul li {
  margin-bottom: 8px;
}

/* --- Animations & Micro-interactions --- */
.btn-primary, .service-card, .features ul li {
  transition: box-shadow 0.21s, transform 0.18s, background 0.2s;
}
.features ul li:hover {
  box-shadow: 0 5px 18px 0 rgba(220,130,180,0.13);
  background: var(--pastel-blue);
}
input, select, textarea {
  border-radius: 9px; border: 1.5px solid var(--pastel-purple); padding: 10px 14px;
  box-shadow: none; font-family: inherit; font-size: 1rem; outline: none; margin-bottom: 18px; background: #fff;
  transition: border 0.18s;
}
input:focus, select:focus, textarea:focus {
  border: 1.5px solid var(--secondary);
}
button {
  font-family: inherit;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  z-index: 1700;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg, var(--pastel-yellow), #fff0fa 94%);
  box-shadow: 0 -2px 18px 0 rgba(254,193,70,0.10);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 24px 30px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #33313b;
  animation: slideInUp 0.56s cubic-bezier(0.77,0,0.18,1);
}
@keyframes slideInUp {
  from {transform: translateY(100%); opacity: 0;}
  to   {transform: translateY(0); opacity: 1;}
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: 18px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--secondary);
  border: none;
  color: #222;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 10px;
  margin-right: 0;
  margin-left: 0;
  box-shadow: 0 1px 6px 0 rgba(200, 150, 60, 0.08);
  cursor: pointer;
  transition: background 0.17s, box-shadow 0.17s, color 0.17s;
  outline: none;
  font-size: 1rem;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .cookie-settings-btn {
  background: var(--pastel-purple);
  color: var(--primary);
  border: 1.5px solid var(--secondary);
}
.cookie-banner .cookie-settings-btn:hover,
.cookie-banner .cookie-settings-btn:focus {
  background: var(--secondary);
  border-color: var(--primary);
  color: var(--primary);
}

/* --- Cookie Preferences Modal --- */
.cookie-modal {
  position: fixed;
  z-index: 1800;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(20, 33, 61, 0.12);
  display: flex; align-items: center; justify-content: center;
  pointer-events: auto;
  visibility: hidden; opacity: 0;
  transition: opacity 0.23s;
}
.cookie-modal.open {
  visibility: visible; opacity: 1;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  border-radius: 22px;
  padding: 32px 32px 28px 32px;
  box-shadow: 0 3px 32px 0 rgba(20, 33, 61, 0.13);
  min-width: 300px;
  max-width: 88vw;
  min-height: 160px;
  text-align: left;
}
.cookie-modal h3 {
  font-size: 1.24rem;
  color: var(--primary);
  margin-bottom: 15px;
}
.cookie-modal .cookie-category {
  margin-bottom: 17px;
  font-size: 1rem;
}
.cookie-modal label {
  display: flex; align-items: center; gap: 10px; font-size: 1rem;
}
.cookie-modal .category-toggle {
  width: 36px; height: 19px;
  border-radius: 12px;
  background: var(--pastel-yellow);
  position: relative;
  transition: background 0.18s;
  margin-right: 10px;
}
.cookie-modal .toggle-switch {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--secondary);
  position: absolute;
  left: 2px; top: 1.5px;
  transition: left 0.22s;
}
.cookie-modal input[type="checkbox"]:checked + .category-toggle {
  background: var(--secondary);
}
.cookie-modal input[type="checkbox"]:checked + .category-toggle .toggle-switch {
  left: 18px;
}
.cookie-modal .cookie-modal-buttons {
  display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap;
}
.cookie-modal .cookie-btn {
  min-width: 130px;
}
.cookie-modal .close-modal-btn{
  position: absolute;
  right: 34px; top: 28px;
  background: none; border: none; color: var(--primary);
  font-size: 1.4rem; cursor: pointer; z-index: 2;
}

/* --- Responsive Design --- */
@media (max-width: 1020px) {
  .container { max-width: 96vw; }
}
@media (max-width: 900px) {
  .features ul {
    gap: 16px 0;
  }
  .hero .content-wrapper { max-width: 98vw; }
  .card-container, .services .service-list { gap: 16px; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.25rem; }
  .container { padding: 0 7vw; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .footer-contact, .footer-nav { margin-top: 16px; }
  footer .container { flex-direction: column; align-items: stretch; gap: 20px; }
  .card-container, .services .service-list, .features ul, .content-grid { flex-direction: column; gap: 18px; align-items: stretch; }
  .text-image-section { flex-direction: column; gap: 18px; align-items: stretch; }
  .cta { padding: 30px 2vw 30px 2vw; }
  .hero { padding: 32px 0 34px 0; }
  .hero .content-wrapper { padding-top: 12px; }
  .testimonial-card { max-width: 99vw; }
  .mobile-nav { padding: 38px 17px 0 22px; }
}
@media (max-width: 550px) {
  .container { padding: 0 3vw; }
  .section { margin-bottom: 34px; padding: 18px 2vw; }
  .content-wrapper, .text-section { padding: 13px 9px; }
  .service-card, .features ul li { min-width: 0; }
  .footer-contact p { font-size: 0.92rem; }
  table { font-size: 0.96rem; }
  .cookie-banner { flex-direction: column; gap: 18px; justify-content: flex-start; align-items: flex-start; padding: 16px 2vw; font-size: 0.98rem; }
}

/* --- Utility: Hide ---- */
.hide {
  display: none!important;
}

/* --- Miscellaneous Cards, Flex Patterns, etc. --- */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* --- Visually Enhanced Focus for Accessibility --- */
a:focus-visible, button:focus-visible, .btn-primary:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
  background: var(--pastel-green);
}

/* --- Z-Index Management --- */
.mobile-menu { z-index: 1400; }
.cookie-banner { z-index: 1700; }
.cookie-modal { z-index: 1800; }
header { z-index: 100; }

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