/* ========================================================== */
/* CSS RESET & NORMALIZE                                      */
/* ========================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #F5F6FA;
  color: #223451;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  letter-spacing: 0.02em;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
input, button, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
button { cursor: pointer; background: none; border: none; }

/* ========================================================== */
/* BRAND VARIABLES                                            */
/* ========================================================== */
:root {
  --color-primary: #223451;
  --color-secondary: #7ED957;
  --color-accent: #F5F6FA;
  --color-gold: #C9B37B;
  --color-silver: #E6E8EC;
  --color-black: #181818;
  --color-img-border: #FFF7E1;
  --color-white: #fff;
  --color-grey: #A2A7B7;

  --font-display: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ========================================================== */
/* TYPOGRAPHY                                                 */
/* ========================================================== */
body {
  font-family: var(--font-body);
  color: var(--color-primary);
  background: var(--color-accent);
  font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.006em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 14px;
  font-weight: 600;
}
h4 {
  font-size: 1.125rem; }

.subheadline {
  font-family: var(--font-body);
  color: var(--color-grey);
  font-size: 1.25rem;
  margin-bottom: 24px;
  font-weight: 400;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
}

strong, b {
  font-weight: 700;
}

/* ========================================================== */
/* HEADER & NAVIGATION                                        */
/* ========================================================== */
header {
  background: var(--color-white);
  box-shadow: 0 8px 32px rgba(34,52,81,0.04);
  position: sticky;
  top: 0;
  z-index: 98;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 24px 12px 24px 12px;
  max-width: 1200px;
  margin: 0 auto;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.20s, color 0.18s;
  position: relative;
}
header nav a:not(.button-primary):hover, header nav a:focus {
  background: var(--color-silver);
  color: var(--color-gold);
}
header nav img {
  height: 40px;
  width: auto;
  margin-right: 16px;
}
.button-primary {
  font-family: var(--font-display);
  background: var(--color-primary);
  color: var(--color-gold);
  padding: 10px 26px;
  border-radius: 28px;
  border: 1.5px solid var(--color-gold);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px rgba(201,179,123,0.09);
  transition: background 0.25s, color 0.18s, box-shadow 0.22s, border-color 0.22s;
  margin-left: 12px;
  position: relative;
  z-index: 1;
}
.button-primary:hover, .button-primary:focus {
  background: var(--color-gold);
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 8px 28px rgba(201,179,123,0.17);
}

/* ========================================================== */
/* MOBILE NAVIGATION                                          */
/* ========================================================== */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--color-primary);
  background: var(--color-gold);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 22px;
  right: 18px;
  z-index: 101;
  border: 1px solid var(--color-primary);
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-primary);
  color: var(--color-gold);
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(34,52,81,0.98);
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.85,.14,.29,.93);
  z-index: 1200;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  color: var(--color-gold);
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 24px 24px 24px 0;
  transition: color 0.15s;
  background: transparent;
  border-radius: 50%;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1;
  padding-top: 40px;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: var(--color-gold);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 12px;
  background: none;
  transition: background 0.2s, color 0.2s;
  width: 100%;
  text-align: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(245,246,250,0.1);
  color: var(--color-white);
}

@media (max-width: 1024px) {
  header nav {
    gap: 8px;
    padding: 20px 8px;
  }
  .button-primary { margin-left: 6px; margin-right: 0; }
}
@media (max-width: 820px) {
  header nav { gap: 4px; }
  header nav img { margin-right: 8px; }
}
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}
/* Accessibility fix for nav focus highlight */
header nav a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 1px;
}

/* ========================================================== */
/* MAIN LAYOUT STRUCTURES & SECTION SPACING                   */
/* ========================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 2px 24px rgba(201,179,123,0.09);
  margin-bottom: 20px;
  padding: 32px 24px;
  position: relative;
  transition: box-shadow .23s, transform .22s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 12px 36px rgba(201,179,123,0.18), 0 2px 26px rgba(34,52,81,0.07);
  transform: translateY(-2px) scale(1.01);
}
.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;
}

@media (max-width: 768px) {
  .section, section { padding: 25px 7px; margin-bottom: 36px; }
  .container { padding: 0 7px; }
  .content-wrapper { gap: 18px; }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ========================================================== */
/* LUXURY PREMIUM VISUAL STYLE                                */
/* ========================================================== */
.section,
section {
  background: var(--color-accent);
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(201,179,123,0.05);
}

h1, h2, h3, h4, .button-primary, .mobile-nav a {
  letter-spacing: 0.01em;
}
hr {
  border: none;
  border-top: 1.5px solid var(--color-gold);
  margin: 36px 0;
  opacity: 0.35;
}

/* Gold accent underline for titles */
h2::after {
  content: '';
  display: block;
  margin-top: 8px;
  width: 48px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 3px;
}

/* List icons accent */
ul li img,
ul li > img,
ol li img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1.2px solid var(--color-gold);
  background: var(--color-img-border);
  padding: 3px;
}
ul li {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  font-size: 1rem;
  color: var(--color-primary);
  line-height: 1.7;
}
ul:last-child {
  margin-bottom: 0;
}

/* Testimonial card */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--color-white);
  border-left: 6px solid var(--color-gold);
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 2px 14px rgba(34,52,81,0.08);
  transition: box-shadow 0.18s;
  color: var(--color-black);
}
.testimonial-card p {
  color: var(--color-black);
  font-size: 1.13rem;
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-card span,
.testimonial-card strong {
  font-family: var(--font-body);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
}

/* Feature item */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px;
  border-radius: 10px;
  background: var(--color-silver);
  box-shadow: 0 1px 9px rgba(34,52,81,0.02);
}

/* Lists/FAQs in cards */
div > h3 + p, .card > h3 + p { margin-top: -10px; }

/* ========================================================== */
/* INTERACTIVE ELEMENTS: BUTTONS & LINKS                      */
/* ========================================================== */
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-width: 130px;
  margin-top: 12px;
  gap: 8px;
}
.button-primary:active {
  transform: scale(0.97);
}
.button-primary:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 1.5px;
  background: var(--color-gold);
  color: var(--color-primary);
}

/* Subtle gold animated underline on link hover */
header nav a:not(.button-primary)::after, .footer-nav a::after {
  content: '';
  display: block;
  height: 2.5px;
  width: 0%;
  background: var(--color-gold);
  transition: width 0.28s cubic-bezier(.7,.11,.29,.86);
}
header nav a:not(.button-primary):hover::after {
  width: 90%;
}

/* ========================================================== */
/* CARDS STYLE                                               */
/* ========================================================== */
.card, .feature-item {
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 1px 14px rgba(34,52,81,0.07);
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 6px 26px rgba(201,179,123,0.14);
  transform: translateY(-2px) scale(1.011);
}

/* ========================================================== */
/* FORMS (for kontakt/thank-you)                             */
/* ========================================================== */
input, textarea, select {
  background: var(--color-accent);
  border: 1.2px solid var(--color-gold);
  border-radius: 7px;
  padding: 11px 18px;
  font-size: 1rem;
  margin-bottom: 16px;
  width: 100%;
  transition: border-color 0.2s;
}
input:focus, textarea:focus {
  border-color: var(--color-primary);
  background: var(--color-white);
}

/* ========================================================== */
/* FOOTER                                                    */
/* ========================================================== */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 38px 24px 28px 24px;
  border-radius: 20px 20px 0 0;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
footer img {
  margin-bottom: 12px;
  height: 39px;
}
footer div ul li {
  color: var(--color-gold);
  font-size: 1rem;
  margin-bottom: 8px;
  align-items: center;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
  transition: color 0.19s;
  padding-bottom: 2px;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-secondary);
}
footer span {
  color: var(--color-silver);
  font-size: 0.98rem;
  margin-top: 5px;
}
@media (max-width: 768px) {
  footer { flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px 10px 14px 10px; }
}

/* ========================================================== */
/* COOKIE CONSENT BANNER                                      */
/* ========================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 2000;
  background: var(--color-white);
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -2px 24px rgba(34,52,81,0.13);
  padding: 24px 18px 16px 18px;
  gap: 20px;
  border-top: 3px solid var(--color-gold);
  font-size: 1rem;
  animation: cb-slide-up 0.5s cubic-bezier(.6,.07,.29,1.08) 1;
}
@keyframes cb-slide-up {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
}
.cookie-banner button {
  padding: 10px 24px;
  border-radius: 8px;
  border: 1.2px solid var(--color-gold);
  background: var(--color-gold);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.18s, color 0.13s;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: var(--color-primary);
  color: var(--color-gold);
  border-color: var(--color-primary);
}
.cookie-banner .cookie-settings-btn {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-gold);
  font-weight: 600;
}
.cookie-banner .cookie-settings-btn:hover {
  background: var(--color-gold);
  color: var(--color-primary);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,52,81,0.78);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  animation: cb-modal-fade 0.3s;
}
@keyframes cb-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--color-white);
  padding: 34px 20px 24px 22px;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(34,52,81,0.11);
  min-width: 320px;
  width: 98vw;
  max-width: 395px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cb-modal-slide-in 0.32s cubic-bezier(.75,.09,.24,1.12) 1;
}
@keyframes cb-modal-slide-in {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 12px;
  background: none;
  border: none;
  color: var(--color-gold);
  font-size: 2.2rem;
  border-radius: 50%;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-silver);
  color: var(--color-primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 22px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-switch {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 24px;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: var(--color-silver);
  border-radius: 24px;
  transition: background 0.2s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--color-gold);
}
.cookie-slider:before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background: var(--color-primary);
  border-radius: 50%;
  transition: transform 0.21s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(24px);
}
.cookie-category .locked {
  font-size: 1.1rem;
  color: var(--color-gold);
  margin-left: 3px;
}

@media (max-width:600px) {
  .cookie-modal { min-width: 96vw; padding: 20px 5px 14px 9px; }
}

/* ========================================================== */
/* RESPONSIVE RULES                                           */
/* ========================================================== */
@media (max-width: 1024px) {
  .container { max-width: 98vw; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.38rem; }
  .section, section { padding: 22px 6px; }
}
@media (max-width: 800px) {
  .container { padding: 0 2px; }
  .section, section { padding: 16px 3px; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.11rem; }
  .testimonial-card { padding: 10px; }
}

/* FLEX WRAPS for all content grids */
@media (max-width: 768px) {
  .card-container, .card-grid, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}

/* ========================================================== */
/* Z-INDEX CONFLICT PREVENTION                                */
/* ========================================================== */
z *, .cookie-modal, .cookie-modal-overlay, .mobile-menu {
  z-index: inherit;
}

/* ========================================================== */
/* SCROLLBAR CUSTOMIZATION                                    */
/* ========================================================== */
::-webkit-scrollbar { width: 8px; background: var(--color-white);}
::-webkit-scrollbar-thumb { background: var(--color-gold); border-radius: 8px; }

/* ========================================================== */
/* UTILITY CLASSES                                            */
/* ========================================================== */
.mt-0 { margin-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }
.d-flex { display: flex!important; }
.flex-col { flex-direction: column!important; }
.gap-20 { gap: 20px!important; }

/* ========================================================== */
/* MICRO-INTERACTIONS                                         */
/* ========================================================== */
.card, .feature-item, .testimonial-card, .button-primary, .cookie-banner button {
  transition: box-shadow 0.18s, background 0.17s, color 0.13s, transform 0.15s;
}
.card:active, .feature-item:active {
  transform: scale(0.99) translateY(1px);
}
.button-primary:active { transform: scale(0.981); }

/* ========================================================== */
/* FOCUS VISIBLE (for a11y)                                   */
/* ========================================================== */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* ========================================================== */
/* END                                                        */
/* ========================================================== */
