/* --- CSS RESET & NORMALIZE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #5D4080;
  background: #F1ECE8;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
a {
  color: #5D4080;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FF9F6A;
  outline: none;
}
ul, ol {
  list-style: disc;
  margin-left: 20px;
  margin-top: 8px;
  margin-bottom: 8px;
}
th, td {
  padding: 8px 12px;
  text-align: left;
  font-size: 16px;
  color: #5D4080;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: #5D4080;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-weight: 500;
}
p {
  margin-bottom: 14px;
  font-size: 1rem;
}
button, .btn-primary, .btn-secondary, .btn-link {
  font-family: 'Roboto', Arial, sans-serif;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border-radius: 8px;
  border: 1px solid #E7DDE5;
  padding: 10px;
  outline: none;
}

::-webkit-input-placeholder { color: #a59bb5; }
::-moz-placeholder { color: #a59bb5; }
:-ms-input-placeholder { color: #a59bb5; }
::placeholder { color: #a59bb5; }

/* --- CONTAINER & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(92,70,128,0.08);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(255,175,100,0.09);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
  min-width: 260px;
  flex: 1 1 280px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(117,82,157,0.12);
}

.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff8f2;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(255,159,106,0.08);
  margin-bottom: 20px;
  color: #5D4080;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 2px 12px rgba(255,175,100,0.09);
  margin-bottom: 20px;
}

/* --- TABLE STYLING --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(92,70,128,0.06);
  overflow: hidden;
}
thead tr {
  background: #74529D;
}
th {
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  padding: 14px 8px;
  letter-spacing: 0.01em;
}
tbody tr:nth-child(even) {
  background: #FAF7F4;
}
tbody tr {
  border-bottom: 1px solid #F1ECE8;
  transition: background 0.15s;
}
tbody tr:hover {
  background: #FFFBF7;
}
td {
  font-size: 16px;
  padding: 12px 8px;
}

/* --- BADGES --- */
.badge {
  display: inline-flex;
  align-items: center;
  background: #FFB48C;
  color: #fff;
  border-radius: 18px;
  padding: 4px 16px;
  font-size: 0.93rem;
  margin-right: 8px;
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: #FF9F6A;
  color: #fff;
  border-radius: 24px;
  padding: 14px 32px;
  font-size: 1.07rem;
  font-weight: 700;
  transition: background 0.2s, box-shadow .2s, transform 0.12s;
  box-shadow: 0 2px 16px rgba(255,175,100,0.10);
  border: none;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 12px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #ffb48c;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 24px rgba(255,175,100,0.17);
  outline: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: #74529D;
  color: #fff;
  border-radius: 22px;
  padding: 13px 27px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.13s;
  box-shadow: 0 2px 12px rgba(117,82,157,0.10);
  text-align: center;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #5D4080;
  transform: translateY(-1.5px) scale(1.035);
  outline: none;
}

.btn-link {
  background: none;
  color: #5D4080;
  padding: 0;
  font-weight: 500;
  text-decoration: underline;
  border-radius: 6px;
  transition: color 0.18s;
}
.btn-link:hover, .btn-link:focus {
  color: #FF9F6A;
  text-decoration: underline;
  outline: none;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 3px 28px rgba(117,82,157,0.07);
  position: relative;
  width: 100%;
  z-index: 30;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
header nav a {
  color: #74529D;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 16px;
  padding: 6px 10px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  color: #fff;
  background: #FF9F6A;
  outline: none;
}
header img {
  max-height: 54px;
  padding-right: 12px;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: #FF9F6A;
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 16px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.11s;
  z-index: 1001;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #74529D;
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(94,65,128,0.93);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(.62,.01,.29,.98), opacity 0.23s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2.1rem;
  align-self: flex-end;
  margin: 22px 26px 0 0;
  cursor: pointer;
  transition: color 0.16s;
  z-index: 1111;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #FF9F6A;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  margin-top: 54px;
  padding-left: 40px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.32rem;
  font-weight: 600;
  border-radius: 16px;
  padding: 10px 2px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FF9F6A;
  background: rgba(255,255,255,0.10);
}

/* Mobile nav only visible on viewport <= 992px */
@media (max-width: 992px) {
  header nav, header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
  }
  .mobile-menu {
    display: flex;
  }
}

@media (min-width: 993px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- MAIN STYLES --- */
main {
  flex-grow: 1;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(117,82,157,0.07);
}
@media (max-width: 768px) {
  section {
    padding: 24px 5px;
    margin-bottom: 38px;
  }
}

/* --- TEAM LIST (team.html) --- */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.team-member {
  background: #f8f3fc;
  border-radius: 22px;
  padding: 26px 20px;
  box-shadow: 0 2px 8px rgba(117,82,157,0.06);
  flex: 1 1 220px;
  min-width: 200px;
  color: #5D4080;
  transition: box-shadow .2s;
  margin-bottom: 20px;
}
.team-member:hover {
  box-shadow: 0 4px 20px rgba(255,175,100,0.12);
}

/* --- FOOTER --- */
footer {
  background: #74529D;
  color: #fff;
  border-radius: 24px 24px 0 0;
  margin-top: 50px;
  padding-top: 20px;
  padding-bottom: 16px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
footer nav a {
  color: #fff;
  font-size: 1rem;
  border-radius: 8px;
  padding: 5px 12px;
  transition: background 0.2s, color 0.2s;
}
footer nav a:hover, footer nav a:focus {
  color: #FFB48C;
  background: rgba(255,255,255,0.04);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.97rem;
  color: #FFF;
}
.footer-contact a {
  color: #fff0da;
  text-decoration: underline;
  font-weight: 500;
}
.footer-contact a:hover {
  color: #FFB48C;
}
@media (max-width: 600px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* --- CUSTOM FORMS (if any) --- */
label {
  display: block;
  margin-bottom: 7px;
  font-weight: 500;
}
input, textarea, select {
  display: block;
  width: 100%;
  border-radius: 10px;
  border: 1.5px solid #DCD2E5;
  padding: 10px 13px;
  font-size: 1rem;
  background: #F8F6FA;
  margin-bottom: 18px;
  color: #5D4080;
  transition: border 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #FF9F6A;
  outline: none;
}

/* --- RESPONSIVE LAYOUT ADJUSTMENTS --- */
@media (max-width: 900px) {
  .card-container,
  .content-grid,
  .team-list {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .content-wrapper, .card-container, .content-grid, .team-list, .feature-item, .testimonial-card, .footer-contact {
    flex-direction: column;
    align-items: stretch;
    gap: 14px !important;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* --- SPACING FOR ELEMENTS --- */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  section, .section {
    padding: 22px 8px;
    margin-bottom: 36px;
  }
}
.card, .feature-item, .testimonial-card, .team-member {
  margin-bottom: 20px;
}

/* --- HOMEPAGE (/) SPECIALS --- */
.hero {
  background: #f8f3fc;
  border-radius: 24px;
  box-shadow: 0 4px 28px rgba(255,186,120,0.09);
  padding: 54px 26px;
  margin-bottom: 40px;
}

/* --- TESTIMONIALS (if any in future) --- */
.testimonial-card {
  background: #fff8f2;
  color: #5D4080;
}
.testimonial-card .author {
  margin-top: 16px;
  font-weight: 700;
  color: #74529D;
  font-size: 1.05rem;
}

/* --- MODALS & COOKIE CONSENT --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff8f3;
  color: #5D4080;
  box-shadow: 0 -6px 24px rgba(117,82,157,0.11);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 30px;
  z-index: 2000;
  font-size: 1rem;
  transition: transform 0.32s cubic-bezier(.62,.01,.29,.98), opacity 0.21s;
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  flex: 1 1 320px;
  margin-right: 24px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-banner .btn-cookie {
  padding: 10px 22px;
  border-radius: 18px;
  background: #74529D;
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  margin-right: 6px;
  transition: background 0.16s, transform 0.11s;
}
.cookie-banner .btn-cookie.accept {
  background: #FF9F6A;
}
.cookie-banner .btn-cookie.reject {
  background: #DCD2E5;
  color: #74529D;
}
.cookie-banner .btn-cookie.settings {
  background: #fff;
  color: #74529D;
  border: 1.5px solid #74529D;
}
.cookie-banner .btn-cookie:hover, .cookie-banner .btn-cookie:focus {
  background: #FFB48C;
  color: #fff;
  outline: none;
  transform: translateY(-1px) scale(1.03);
}

.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 2100;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(94,65,128,0.67);
  align-items: center;
  justify-content: center;
  transition: opacity 0.17s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-overlay.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff8f3;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(117,82,157,0.12);
  padding: 32px 30px 26px 32px;
  max-width: 400px;
  width: 90vw;
  margin: 0 auto;
  color: #5D4080;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.35rem;
  color: #74529D;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  font-weight: 500;
  color: #74529D;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: #FF9F6A;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
.cookie-modal .btn-cookie {
  padding: 10px 22px;
  border-radius: 17px;
  background: #74529D;
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.16s, transform 0.1s;
}
.cookie-modal .btn-cookie.save {
  background: #FF9F6A;
}
.cookie-modal .btn-cookie.cancel {
  background: #fff;
  color: #74529D;
  border: 1.5px solid #74529D;
}
.cookie-modal .btn-cookie:hover, .cookie-modal .btn-cookie:focus {
  background: #FFB48C;
  color: #fff;
  transform: scale(1.03);
  outline: none;
}
.cookie-modal .close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #74529D;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal .close:hover, .cookie-modal .close:focus {
  color: #FF9F6A;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 16px 7px;
    font-size: 0.98rem;
  }
  .cookie-modal {
    padding: 20px 8px 20px 10px;
  }
}

/* --- UTILITY CLASSES, STYLE ENHANCEMENTS --- */
.rounded-24 { border-radius: 24px !important; }
.rounded-18 { border-radius: 18px !important; }
.shadow-soft { box-shadow: 0 2px 12px rgba(117,82,157,0.13) !important; }
.bg-accent { background: #FF9F6A !important; color: #fff !important; }
.bg-secondary { background: #F1ECE8 !important; }
.color-primary { color: #74529D !important; }
.color-accent { color: #FF9F6A !important; }
.color-dark { color: #5D4080 !important; }

/* --- SELECTED MICRO-INTERACTIONS --- */
.btn-primary, .btn-secondary, .btn-link, .btn-cookie {
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.14s;
}

/* --- TYPOGRAPHY CONTROL --- */
@media (max-width: 992px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.5rem; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.14rem; }
  h3 { font-size: 1.04rem; }
}

/*--- Custom Scrollbar for Brand ---*/
html {
  scrollbar-width: thin;
  scrollbar-color: #FF9F6A #EDE7F4;
}
::-webkit-scrollbar {
  width: 10px;
  background: #EDE7F4;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: #FFB48C;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF9F6A;
}

/* --- Details and FAQ (kontakt.html etc) --- */
details {
  background: #FFF8F2;
  border-radius: 12px;
  padding: 13px 16px;
  margin-bottom: 16px;
  color: #74529D;
  box-shadow: 0 1px 6px rgba(255,175,100,0.06);
}

/* --- FOCUS VISIBLE --- */
:focus-visible {
  outline: 2.5px solid #FF9F6A;
  outline-offset: 2px;
  border-radius: 8px;
}

/* --- Hide Default Outline for Click --- */
:active, :focus:not(:focus-visible) {
  outline: none !important;
}
