/* --- CSS RESET & BASE STYLES --- */
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, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  box-sizing: border-box;
  font-size: 100%;
  font: inherit;
}
html {
  line-height: 1.5;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F7F9FA;
  font-family: 'Roboto', Arial, sans-serif;
  color: #1C2E53;
  font-size: 16px;
  letter-spacing: 0.02em;
  --primary: #1C2E53;
  --secondary: #66CC99;
  --accent: #FFFFFF;
  --bg-light: #F7F9FA;
  --bg-section: #FFFFFF;
  --border-light: #E0E3E8;
  --shadow: 0 2px 12px 0 rgba(28,46,83,0.07);
  --shadow-subtle: 0 1px 4px 0 rgba(28,46,83,0.04);
}

*, *::before, *::after {
  box-sizing: inherit;
}

:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  margin-left: 24px;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--secondary);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  font-weight: 700;
  color: #1C2E53;
  margin-bottom: 16px;
  line-height: 1.17;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
h4 { font-size: 1.15rem; margin-bottom: 10px; }
p, li, address {
  font-size: 1rem;
  color: #2c385e;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.7;
}
strong { font-weight: bold; }

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg-section);
  border-radius: 18px;
  box-shadow: var(--shadow-subtle);
  display: flex;
}

/* --- HEADER --- */
header {
  background: var(--accent);
  box-shadow: 0 2px 16px 0 rgba(28,46,83,0.07);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-logo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 22px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.header-logo-nav img {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}

.cta-button {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 28px;
  padding: 14px 32px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.25s;
  margin-left: 20px;
  display: inline-block;
  text-align: center;
  letter-spacing: 0.01em;
}
.cta-button:hover, .cta-button:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 4px 18px rgba(28,46,83,0.13);
}

/* Burger Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  margin-right: 16px;
  z-index: 101;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  color: var(--secondary);
}

/* --- MOBILE BURGER MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(28,46,83,0.92);
  color: var(--accent);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.4,1.5,.5,1);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2.2rem;
  position: absolute;
  top: 18px; right: 20px;
  cursor: pointer;
  z-index: 201;
  transition: color 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 56px;
  align-items: flex-start;
}
.mobile-nav a {
  color: var(--accent);
  font-size: 1.34rem;
  font-family: 'Montserrat', Arial, sans-serif;
  text-align: left;
  padding: 10px 0;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* --- MAIN & SECTION --- */
main {
  padding-top: 10px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg-section);
  border-radius: 18px;
  box-shadow: var(--shadow-subtle);
}

/* --- CARD LAYOUTS & FLEX CONTAINERS --- */
.card-container,
.service-card-list,
.team-list,
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card,
.service-card,
.team-bio,
.service-detail {
  background: var(--bg-light);
  border-radius: 19px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 22px 30px 22px 26px;
  min-width: 250px;
  flex: 1 1 min(310px, 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card{
  min-width: 220px;
  max-width: 360px;
}
.team-bio {
  min-width: 220px;
  max-width: 340px;
}
.service-detail {
  min-width: 240px;
  max-width: 380px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.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;
}
.text-section {
  margin-bottom: 24px;
  padding: 16px 0;
  width: 100%;
}

.feature-icons {
  display: flex;
  gap: 22px;
  margin: 16px 0 16px 0;
  align-items: center;
}
.feature-icons img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #eaf4ef;
  padding: 6px;
  box-shadow: 0 2px 12px 0 rgba(102,204,153,0.07);
}

/* --- TESTIMONIALS --- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}
.testimonial-card {
  background: #F4FAF7;
  color: #1C2E53;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(28,46,83,0.09);
  min-width: 270px;
  max-width: 480px;
  font-family: 'Roboto', Arial, sans-serif;
}
.testimonial-card p {
  color: #223875;
  font-size: 1.05rem;
  margin-bottom: 6px;
  font-style: italic;
}
.testimonial-card strong {
  display: block;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  color: #408261;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* --- TABLES (Timetable on kurse.html) --- */
table {
  border-collapse: collapse;
  width: 100%;
  background: var(--bg-light);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(28,46,83,0.04);
  overflow: hidden;
  font-size: 1rem;
  margin-bottom: 24px;
}
thead th {
  background: var(--primary);
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.11rem;
  font-weight: 600;
  padding: 16px 8px;
}
tbody td {
  background: transparent;
  color: #1C2E53;
  padding: 13px 8px;
  border-bottom: 1px solid var(--border-light);
}
tbody tr:last-child td {
  border-bottom: none;
}

/* --- MAP PLACEHOLDER (kontakt.html) --- */
.map-placeholder {
  min-height: 200px;
  background: #eaf4ef;
  color: #519269;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  border: 1px solid #cbeede;
  box-shadow: 0 2px 8px 0 rgba(28,46,83,0.03);
}

/* --- FOOTER --- */
footer {
  background: #EAEFF1;
  position: relative;
  z-index: 10;
  margin-top: 40px;
}
footer .container {
  padding-top: 30px;
  padding-bottom: 30px;
}
.footer-nav {
  display: flex;
  gap: 34px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.footer-nav a {
  color: #223875;
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: 0.95;
  transition: color 0.2s, opacity 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
  opacity: 1;
}
footer address {
  color: #2c385e;
  font-size: 0.96rem;
  font-style: normal;
  margin-top: 8px;
  line-height: 1.6;
}
footer address a {
  color: var(--primary);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--bg-section);
  color: #223875;
  box-shadow: 0 -2px 16px 0 rgba(28,46,83,0.12);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  padding: 20px 16px;
  z-index: 990;
  font-size: 1rem;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.25s;
}
.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-text {
  max-width: 480px;
  flex: 1 1 0;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  font-weight: 600;
  background: var(--secondary);
  color: var(--primary);
  transition: background 0.18s, color 0.18s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: var(--accent);
}
.cookie-settings-btn {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  transition: background 0.18s, color 0.18s, border 0.14s;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--primary);
  color: var(--accent);
  border: 1px solid var(--secondary);
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(28,46,83,0.35);
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--bg-section);
  border-radius: 18px;
  box-shadow: var(--shadow);
  max-width: 420px;
  padding: 34px 28px 22px 28px;
  color: #223875;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.cookie-modal .cookie-modal-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.7rem;
  position: absolute;
  top: 14px; right: 16px;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 1;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  color: var(--secondary);
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category-label {
  font-weight: 500;
  font-size: 1.07rem;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  background: #e0e9e3;
  border-radius: 12px;
  border: none;
  position: relative;
  transition: background 0.2s;
  cursor: pointer;
  outline: none;
}
.cookie-toggle[data-enabled="true"] {
  background: var(--secondary);
}
.cookie-toggle .toggle-knob {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(28,46,83,0.13);
  transition: left 0.18s;
}
.cookie-toggle[data-enabled="true"] .toggle-knob {
  left: 19px;
}
.cookie-toggle[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 10px;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1020px) {
  .header-logo-nav {
    flex-wrap: wrap;
    gap: 10px;
  }
  .main-nav {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
  }
  .service-card-list, .team-list, .service-list, .testimonial-slider {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 98%;
  }
  body {
    font-size: 15px;
  }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  .header-logo-nav {
    padding: 12px 10px 12px 10px;
    gap: 12px;
  }
  .main-nav {
    display: none;
  }
  .cta-button {
    padding: 12px 22px;
    font-size: 1rem;
    margin-left: 7px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  section,
  .section {
    margin-bottom: 36px;
    padding: 20px 6px;
  }
  .card,
  .service-card,
  .team-bio,
  .service-detail {
    min-width: 90vw;
    max-width: 99vw;
    padding: 16px 12px 16px 12px;
  }
  .card-container, .service-card-list, .team-list, .service-list, .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
  .content-wrapper,
  .content-grid,
  .text-image-section {
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
  .feature-icons {
    gap: 12px;
  }
  .testimonial-card {
    min-width: 80vw;
    max-width: 99vw;
    padding: 14px 10px;
    font-size: 0.98rem;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    font-size: 0.99rem;
    padding: 14px 6px;
  }
  .cookie-banner-actions {
    flex-direction: row;
    gap: 8px;
  }
  .cookie-modal {
    padding: 24px 10px 16px 14px;
    max-width: 96vw;
  }
}
@media (max-width: 500px) {
  .header-logo-nav img {
    height: 40px;
  }
  .footer-nav {
    gap: 10px;
    font-size: 0.93rem;
  }
  footer .container {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  h1,h2,h3,h4 {
    font-size: 1.02rem;
  }
}

/* --- UTILITIES --- */
.gap-8 { gap: 8px !important; }
.gap-16 { gap: 16px !important; }
.gap-24 { gap: 24px !important; }
.gap-32 { gap: 32px !important; }
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }

/* --- SUBTLE ANIMATIONS --- */
.card, .service-card, .team-bio, .service-detail, .testimonial-card, .cta-button, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.23s, transform 0.17s;
}
.card:hover, .service-card:hover, .team-bio:hover, .service-detail:hover, .testimonial-card:hover {
  box-shadow: 0 4px 18px 0 rgba(28,46,83,0.1);
  transform: translateY(-6px) scale(1.03);
}

.cta-button:active, .cookie-btn:active {
  transform: scale(0.97);
}

/* --- HIDE/SHOW HELPERS --- */
.hide { display: none !important; }
.show { display: flex !important; }

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
  background: #eaeaea;
}
::-webkit-scrollbar-thumb {
  background: #c6dbe4;
  border-radius: 10px;
}

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