/* =============================
   CSS RESET & NORMALIZATION
   =========================== */
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;
  outline: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #F9F7FA;
  color: #432F56;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* =============================
   ROOT VARIABLES (with fallback)
   =========================== */
:root {
  --primary: #432F56;
  --secondary: #A49BCF;
  --accent: #F5E9F0;
  --soft-lavender: #EDE6F6;
  --soft-pink: #F7E7EC;
  --soft-blue: #E5F0FB;
  --soft-green: #E5F7F2;
  --white: #FFF;
  --black: #22202C;
  --box-radius: 18px;
  --shadow: 0 3px 16px rgba(164, 155, 207, 0.14);
  --shadow-intense: 0 6px 32px rgba(67,47,86,.17);
  --transition: all 0.26s cubic-bezier(.55,.06,.68,.19);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Lato', Arial, Helvetica, sans-serif;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(160deg, #F9F7FA 0%, #F2F0F9 100%);
  color: var(--primary);
  font-size: 16px;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-left: 18px;
  padding-right: 18px;
  max-width: 1040px;
  box-sizing: border-box;
}

/* =============================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 22px;
  margin-top: 0;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, .subheadline, ul li, table td {
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 14px;
  color: var(--primary);
}
.subheadline {
  font-size: 1.15rem;
  color: #675D86;
  font-weight: 400;
  margin-bottom: 20px;
}
strong {
  color: var(--primary);
  font-weight: 700;
}

/* =============================
   HEADER AND NAVIGATION
   =========================== */
header {
  background: var(--soft-lavender);
  box-shadow: 0 2px 16px rgba(164,155,207, 0.04);
  padding-top:16px;
  padding-bottom: 16px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
header img {
  height: 54px;
  margin-right: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
  border-radius: 12px;
  padding: 7px 13px;
  transition: var(--transition);
  position: relative;
}
.main-nav a:not(.cta-btn):hover,
.main-nav a:not(.cta-btn):focus {
  background: var(--secondary);
  color: var(--white);
}
.cta-btn {
  background: var(--secondary);
  color: var(--white)!important;
  font-family: var(--font-display);
  font-size: 1.06rem;
  border-radius: 18px;
  padding: 10px 28px;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(164,155,207, 0.08);
  transition: var(--transition);
  outline: none;
  border: none;
  letter-spacing: 0.02em;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: #FFF;
  box-shadow: 0 4px 20px rgba(164,155,207,0.13);
  transform: translateY(-2px) scale(1.03);
}

/* =============================
   BURGER MENU (MOBILE-ONLY)
   =========================== */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.5rem;
  color: var(--primary);
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 2px 10px rgba(164,155,207,.08);
  transition: var(--transition);
  margin-left: 12px;
}
.mobile-menu-toggle:focus {
  box-shadow: 0 0 0 3px var(--secondary);
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(177deg, #F7E7EC 0%, #EDE6F6 100%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 38px 24px 0 24px;
  transform: translateX(-100%);
  transition: var(--transition);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--secondary);
  color: #FFF;
  border-radius: 50%;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  margin-right: -8px;
  border: none;
  transition: var(--transition);
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--primary);
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 28px;
}
.mobile-nav a {
  padding: 16px 0;
  font-size: 1.18rem;
  font-family: var(--font-display);
  font-weight: 500;
  border-radius: 14px;
  transition: var(--transition);
  color: var(--primary);
  letter-spacing: 0.01em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #FFF;
}

/* =============================
   SECTIONS & LAYOUT SPACING
   =========================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
  flex: 1 1 280px;
  transition: box-shadow 0.22s;
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-intense);
}
.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 {
  background: var(--accent);
  color: var(--primary);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(164,155,207,0.09);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  font-size: 1.11rem;
  line-height:1.7;
  flex-wrap: wrap;
  transition: box-shadow 0.22s;
}
.testimonial-card p {
  color: var(--primary);
  font-style: italic;
  flex: 1 1 200px;
  margin:0;
}
.testimonial-card span {
  color: var(--secondary);
  font-size: 0.98rem;
  font-family: var(--font-display);
  font-weight: 600;
  margin-left: 22px;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-intense);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =============================
   SPECIAL LAYOUTS & LISTS
   =========================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: stretch;
  justify-content: center;
  margin-top: 18px;
  margin-bottom: 12px;
}
.feature-grid li {
  background: #F7E7EC;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px 22px;
  flex: 1 1 230px;
  min-width: 190px;
  max-width: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow .24s;
}
.feature-grid li img {
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
}
.feature-grid li h3 {
  font-size: 1.12rem;
  margin-bottom: 4px;
  color: var(--primary);
}
.feature-grid li p {
  color: #4e3e60;
  font-size: 1rem;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  box-shadow: var(--shadow-intense);
  background: var(--soft-lavender);
}
.service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px 0 12px 0;
}
.service-list li {
  background: var(--accent);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1rem;
  margin-bottom: 0;
  transition: box-shadow 0.23s;
  position: relative;
}
.service-list strong, .service-list h3 {
  font-family: var(--font-display);
  font-size: 1.13rem;
  color: var(--primary);
  font-weight: 600;
}
.service-list span {
  color: var(--secondary);
  font-size: 1.03rem;
  font-weight: 600;
  align-self: flex-end;
  font-family: var(--font-body);
}
.service-list li:hover, .service-list li:focus-within {
  box-shadow: var(--shadow-intense);
}

/* =============================
   TABLES
   =========================== */
table {
  width: 100%;
  border-radius: 16px;
  background: var(--accent);
  box-shadow: var(--shadow);
  margin: 18px 0 24px 0;
  overflow: hidden;
  font-size: 1rem;
}
thead tr {
  background: var(--soft-lavender);
}
thead th {
  padding: 18px 10px;
  font-size: 1.1rem;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
}
tbody td {
  padding: 12px 10px;
  color: var(--primary);
}
tbody tr {
  border-bottom: 1px solid #E5E1EE;
}
tbody tr:last-child {
  border-bottom: none;
}

/* =============================
   MAP SNIPPET
   =========================== */
.map-snippet {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 5px;
  background: var(--soft-blue);
  padding: 16px 14px;
  border-radius: 14px;
}
.map-snippet img {
  width: 30px; height: 30px;
}
.map-snippet span {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.06rem;
  font-family: var(--font-body);
}

/* =============================
   FOOTER
   =========================== */
footer {
  background: var(--soft-lavender);
  border-top: 1px solid #EEE9FE;
  padding-top: 28px;
  padding-bottom: 12px;
  margin-top:40px;
}
.footer-nav {
  display: flex;
  gap: 26px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}
.footer-nav a {
  font-size: 0.97rem;
  color: var(--primary);
  transition: color .18s;
  padding: 5px 10px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
}
.footer-info {
  font-size: 0.93rem;
  color: #6A598A;
}
.footer-info p {
  margin: 0;
  font-size: 0.94rem;
}

/* =============================
   COOKIE CONSENT BANNER & MODAL
   =========================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #FFF9FC;
  box-shadow: 0 -2px 15px rgba(67,47,86,.09);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  z-index: 3000;
  padding: 20px 22px 20px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  font-size: 1rem;
  transition: var(--transition), bottom .5s cubic-bezier(.49,.53,.31,1.38);
  box-sizing: border-box;
  max-width: 560px;
  margin: 0 auto;
  left: 0; right: 0;
}
.cookie-banner.hide {
  bottom: -160px;
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__buttons {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner__btn, .cookie-banner__settings {
  padding: 8px 20px;
  border-radius: 13px;
  font-size: 1rem;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  background: var(--secondary);
  color: #FFF;
  box-shadow: 0 1px 8px rgba(164,155,207,0.08);
  font-weight: 600;
  transition: var(--transition);
}
.cookie-banner__btn.accept {
  background: var(--primary);
}
.cookie-banner__btn.reject {
  background: #E5BBCF;
  color: var(--primary);
}
.cookie-banner__btn:hover, .cookie-banner__btn:focus {
  box-shadow: 0 2px 16px rgba(164,155,207,0.16);
  transform: scale(1.04);
}
.cookie-banner__settings {
  background: transparent;
  color: var(--secondary);
  padding: 7px 16px;
  border: 1px solid var(--secondary);
}
.cookie-banner__settings:hover,
.cookie-banner__settings:focus {
  background: var(--secondary);
  color: #FFF;
}
/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(70, 60, 89, 0.38);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #FFF9FC;
  border-radius: 24px;
  padding: 36px 24px 28px 24px;
  max-width: 370px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(67,47,86, 0.22);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: fadeInModal .29s;
}
@keyframes fadeInModal {
  0% { transform: scale(.93) translateY(22px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.22rem;
  margin-bottom: 16px;
  font-family: var(--font-display);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--primary);
  cursor: pointer;
}
.cookie-modal-close {
  position: absolute;
  top: 15px; right: 15px;
  background: var(--secondary);
  color: #FFF;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: none;
  transition: var(--transition);
}
.cookie-modal-close:focus,
.cookie-modal-close:hover {
  background: var(--primary);
  color: var(--accent);
}
.cookie-modal .cookie-modal-save {
  background: var(--primary);
  color: #FFF;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 13px;
  padding: 9px 22px;
  border: none;
  margin-top: 5px;
}
.cookie-modal .cookie-modal-save:focus,
.cookie-modal .cookie-modal-save:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* =============================
   FORMS, FAQ, MISC
   =========================== */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid var(--soft-lavender);
  padding: 10px 13px;
  background: #FFF;
  transition: border-color .22s;
  margin-bottom: 14px;
  box-sizing: border-box;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  outline: none;
}

/* FAQ section (kontakt) */
.text-section strong + p {
  margin-bottom: 12px;
}

/* =============================
   RESPONSIVE DESIGN (MOBILE-FIRST)
   =========================== */
@media (max-width: 1040px) {
  .container { max-width: 100%; }
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 20px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 0;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .feature-grid li {
    min-width: 170px;
    max-width: 100%;
    padding: 22px 14px;
  }
  section {
    padding: 30px 8px;
    margin-bottom: 38px;
  }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.32rem; }
  .content-wrapper { gap: 18px; }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    font-size: 1.04rem;
  }
  .testimonial-card span {
    margin-left: 0;
  }
  .service-list li {
    padding: 13px 13px;
  }
  .footer-nav { gap: 10px; }
  .map-snippet {
    padding: 10px 8px;
    gap: 7px;
  }
}
@media (max-width: 570px) {
  .container { padding-left: 6px; padding-right: 6px; }
  .content-wrapper { gap: 10px; }
}
@media (max-width: 540px) {
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid li {
    max-width: 100%;
    min-width: 0;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    left: 12px; right: 12px;
    max-width: 96vw;
  }
}
@media (max-width:480px) {
  h1 { font-size: 1.24rem; }
  h2 { font-size: 1rem; }
  .cta-btn {
    font-size: 1rem;
    padding: 10px 16px;
  }
}
@media (max-width:360px) {
  .cookie-modal { padding: 18px 3vw !important; }
}

/* =============================
   ANIMATIONS & MICROLEVEL MOTION
   =========================== */
.cta-btn, .cookie-banner__btn, .cookie-modal-save, .main-nav a, .feature-grid li, .service-list li {
  transition: var(--transition);
}
.section, section {
  transition: box-shadow .18s, background .25s;
}

/* =============================
   SPECIAL ACCESSIBILITY STYLES
   =========================== */
a:focus, button:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--secondary);
}
::-webkit-input-placeholder { color: #8f8ea8; }
::-moz-placeholder { color: #8f8ea8; }
:-ms-input-placeholder { color: #8f8ea8; }
::placeholder { color: #8f8ea8; }

/* =============================
   PRINT
   =========================== */
@media print { 
  body, .container, section, header, main, footer, .feature-grid li, .service-list li, table { background: #FFF !important; color: #222 !important; box-shadow: none !important; }
  .cta-btn, .main-nav, .footer-nav, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
}
