/* =======================================================
   CSS RESET & NORMALIZE (MOBILE FIRST)
======================================================== */
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,
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; box-sizing: border-box;
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { line-height: 1; background: #F5F5F5; color: #282E36; -webkit-font-smoothing: antialiased; }
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section { display: block; }
ol, ul { list-style: none; }
a { background: transparent; color: inherit; text-decoration: none; }
a:focus { outline: 2px dashed #EAC67A; outline-offset: 3px; }
img { border: none; max-width: 100%; display: block; }
button { font: inherit; background: none; border: none; box-shadow: none; cursor: pointer; padding: 0; }

/* =======================================================
   VINTAGE RETRO BRAND COLORS & FONTS
======================================================== */
:root {
  --primary: #282E36; /* vintage deep ink/navy */
  --secondary: #EAC67A; /* muted retro gold */
  --accent: #F5F5F5; /* warm light cream */
  --retro-orange: #D1863A; /* additional accent */
  --retro-brown: #8C6239;
  --retro-indigo: #5E6472;
  --danger-red: #C54D28;
  --success-green: #97B077;
  --neutral-bg: #F5F5F5;
  --shadow: rgba(40,46,54,0.08);
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: local('Montserrat Bold'), local('Montserrat-Bold'),
    url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans'), local('OpenSans-Regular'),
    url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background: var(--accent);
  color: var(--primary);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 1.75rem; margin-bottom: 22px; }
h3 { font-size: 1.25rem; margin-bottom: 16px; }
h4 { font-size: 1.1rem; margin-bottom: 10px; }
.subheadline { font-size: 1.12rem; font-weight: 400; margin-bottom: 25px; font-family: 'Open Sans', Arial, sans-serif; color: var(--retro-brown); }
p,
ul,
ol,
li,
dt,
dd { font-size: 1rem; line-height: 1.6; }

/* Vintage font effect */
.section h1, .section h2, header .logo, .cta-primary, .cta-secondary {
  letter-spacing: 1.5px;
  text-shadow: 0 1px 0 rgba(234,198,122,0.17);
  text-transform: uppercase;
}

/* Retro border pattern Example */
.patterned {
  border: 3px double var(--secondary);
  border-radius: 18px;
  background: repeating-linear-gradient(135deg, transparent, transparent 34px, rgba(234,198,122,0.09) 36px, transparent 38px );
}

/* =======================================================
   MAIN LAYOUT CONTAINERS & PADDING
======================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;    /* Spacing requirement */
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--accent);
  border-radius: 14px;
  box-shadow: 0 4px 24px var(--shadow);
  padding: 28px 22px;
  border: 2px solid var(--secondary);
  transition: box-shadow 0.35s, transform 0.22s;
}
.card:hover, .card:focus {
  box-shadow: 0 6px 40px rgba(40,46,54,0.20);
  transform: translateY(-2px) scale(1.015);
}
.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;               /* CRITICAL RULE */
  align-items: center;         /* CRITICAL RULE */
  gap: 20px;                   /* CRITICAL RULE */
  background: #FFFDEB;
  color: #1A1813;              /* High contrast dark text */
  border-radius: 16px;
  border: 1.5px solid var(--secondary);
  box-shadow: 0 2px 18px rgba(234,198,122,0.14);
  padding: 20px;
  margin-bottom: 20px;         /* CRITICAL RULE */
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
}
.testimonial-card span {
  display: block;
  font-size: 0.98rem;
  color: var(--retro-brown);
  font-style: italic;
  margin-left: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-section {
  background: #FFFDF2;
  border-radius: 12px;
  border: 1.5px solid var(--secondary);
  padding: 28px 22px;
  margin-bottom: 20px;
  box-shadow: 0 2px 18px var(--shadow);
}

.contact-short {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-top: 18px;
  font-size: 1rem;
}
.contact-short span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #736548;
}

/* PRICES */
.price {
  background: var(--secondary);
  color: #453201;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 7px;
  padding: 5px 13px;
  margin-top: 14px;
  letter-spacing: 1px;
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
}
/* Patterns on section backgrounds for vintage feel */
section:nth-child(even) .container {
  background-color: #FAF2DA;
  border-radius: 18px;
}

/* =======================================================
   HEADER / NAVIGATION / CTA BUTTONS
======================================================== */
header {
  width: 100%;
  background: var(--primary);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0 17px 0;
  position: relative;
  z-index: 30;
}
header .logo img {
  height: 46px;
}
.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 1px;
  font-size: 1rem;
  padding: 6px 12px;
  transition: background 0.10s, color 0.15s, box-shadow 0.18s;
  border-radius: 6px;
}
.main-nav a.active, .main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 2px 18px rgba(234,198,122,0.28);
}
header .cta-primary {
  margin-left: 20px;
}

/* CTA BUTTONS */
.cta-primary,
.cta-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 11px;
  letter-spacing: 1.3px;
  cursor: pointer;
  transition: background 0.16s, color 0.14s, transform 0.14s, box-shadow 0.18s;
  box-shadow: 0 4px 24px var(--shadow);
}
.cta-primary {
  background: var(--secondary);
  color: var(--primary);
  border: 2.5px solid #FFD495;
  text-shadow: none;
  box-shadow: 0 4px 16px rgba(234,198,122,0.18);
}
.cta-primary:hover, .cta-primary:focus {
  background: #E8B93F;
  color: #FFFDEB;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 28px rgba(40,46,54,0.17);
}
.cta-secondary {
  background: transparent;
  color: var(--secondary);
  border: 2px dashed var(--secondary);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--secondary);
  color: var(--primary);
  border-style: solid;
}

/* =======================================================
   FOOTER
======================================================== */
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 32px 0 18px 0;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 18px;
}
footer nav a {
  color: var(--secondary);
  font-size: 1rem;
  margin-bottom: 6px;
  letter-spacing: 0.7px;
  padding: 4px 7px;
  border-radius: 5px;
  transition: background 0.16s, color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--primary);
  background: var(--secondary);
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.footer-brand img {
  height: 38px;
  filter: sepia(22%) contrast(1.08);
}
.footer-brand span {
  font-size: 0.98rem;
  color: #EAC67A;
  opacity: 0.89;
}

/* =======================================================
   RETRO/VINTAGE NOSTALGIC ELEMENTS & CARD STYLE
======================================================== */
ul li, ol li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 36px;
  min-height: 32px;
  font-family: 'Open Sans', Arial, sans-serif;
}
ul li img, ol li img {
  position: absolute;
  left: 0;
  top: 2px;
  height: 24px;
  width: 24px;
  opacity: 0.86;
}
ul:not(.no-marker) li:before {
  content: '\25BA'; /* retro triangle pointer */
  position: absolute;
  left: 2px;
  color: var(--retro-brown);
  font-size: 1.05rem;
  top: 5px;
  opacity: 0.42;
}
li img + b,
li img + strong {
  margin-left: 4px;
}

ol {
  counter-reset: step;
}
ol li {
  counter-increment: step;
}
ol li:before {
  content: counter(step) ". ";
  color: var(--retro-indigo);
  font-weight: bold;
  position: absolute;
  left: 2px;
  font-size: 1.15rem;
  opacity: 0.6;
}

/* Vintage blockquote for testimonial quotes */
.testimonial-card p:before {
  content: '\201E';
  font-size: 2.3rem;
  color: var(--retro-orange);
  vertical-align: text-top;
  margin-right: 8px;
}
.testimonial-card p {
  font-size: 1.08rem;
  line-height: 1.55;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #222;
}

/* =======================================================
   RESPONSIVE TYPOGRAPHY & SPACING
======================================================== */
@media (max-width: 1024px) {
  .container { max-width: 97vw; }
  .main-nav { gap: 16px; }
  header { padding: 10px 0; }
}
@media (max-width: 768px) {
  .container { padding: 0 7px; }
  .section { padding: 32px 7px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.27rem; }
  .content-wrapper { gap: 18px; }
  .text-image-section {
    flex-direction: column;   /* flexbox only, no grid */
    align-items: flex-start;
    gap: 18px;
  }
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .footer-brand { flex-direction: column; gap: 7px; }
  .main-nav,
  header .logo { display: none !important; }
  .cta-primary { padding: 12px 14px; font-size: 1rem; }
  .cta-secondary { padding: 10px 12px; }
  .testimonial-card { flex-direction: column; align-items: flex-start; }
  .contact-short { gap: 12px; flex-direction: column; }
}
@media (max-width: 480px) {
  body, .footer-brand span, footer nav a {
    font-size: 15px;
  }
  h1, .section h1 { font-size: 1.45rem; }
  h2 { font-size: 1.14rem; }
  .price { font-size: 0.95rem; }
  .text-section, .card { padding: 17px 11px; }
  .section { padding: 21px 2px; }
}

/* =======================================================
   MOBILE HAMBURGER MENU (SLIDE-IN NAV)
======================================================== */
.mobile-menu-toggle {
  position: absolute;
  right: 22px;
  top: 20px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: none;
  z-index: 99;
  font-size: 2rem;
  border: 2px solid var(--primary);
  align-items: center;
  justify-content: center;
  transition: background 0.14s, color 0.12s, border 0.13s;
}
.mobile-menu-toggle:active {
  background: var(--primary);
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
@media (max-width: 1024px) {
  .mobile-menu-toggle { display: flex; }
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 90vw;
  max-width: 350px;
  height: 100vh;
  background: #FFFDF2;
  box-shadow: -2px 0 32px rgba(40,46,54,0.25);
  transform: translateX(105%);
  transition: transform 0.27s cubic-bezier(0.85,0.07,0.57,1.01);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: var(--primary);
  font-size: 2rem;
  border: none;
  position: absolute;
  top: 20px;
  right: 18px;
  z-index: 201;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: background 0.13s, color 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  margin-top: 80px;
  width: 100%;
  align-items: flex-start;
  padding-left: 22px;
}
.mobile-nav a {
  width: 100%;
  padding: 15px 10px 15px 0;
  font-size: 1.05rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  border-bottom: 1px solid #F1DBB8;
  letter-spacing: 1px;
  transition: background 0.139s, color 0.11s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #FFFDF2;
}

/* Overlay (optional, semi-transparent for menu) */
.mobile-menu::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(40,46,54,0.08);
  z-index: 194;
  pointer-events: none;
}

/* Hide header navigation on mobile, show only hamburger menu */
@media (max-width: 1024px) {
  .main-nav, header .logo + nav { display: none !important; }
  header .cta-primary { display: none; }
}

/* =======================================================
   COOKIE CONSENT BANNER & MODAL
======================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 250;
  width: 100vw;
  background: #FFF6DC;
  color: var(--primary);
  box-shadow: 0 -2px 28px rgba(234,198,122,0.18);
  padding: 22px 18px 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  border-top: 2px solid var(--secondary);
  animation: cookieslideIn 0.6s;
}
@keyframes cookieslideIn {
  from { transform: translateY(140px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
}
.cookie-banner button {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 8px;
  padding: 10px 20px;
  border: 2px solid var(--secondary);
  background: var(--secondary);
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.14s, border 0.13s;
  margin-right: 8px;
}
.cookie-banner button.accept {
  background: var(--success-green);
  color: #1E2310;
  border: 2px solid var(--success-green);
}
.cookie-banner button.reject {
  background: #e5a489;
  color: #46220b;
  border: 2px solid #e5a489;
}
.cookie-banner button.settings {
  background: var(--secondary);
  color: var(--primary);
  border: 2px dashed var(--primary);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--retro-brown);
  color: #FFFDF2;
  border: 2px solid var(--retro-brown);
}

.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(1);
  background: #FFF9F0;
  color: var(--primary);
  border-radius: 24px;
  padding: 36px 28px 32px 28px;
  box-shadow: 0 8px 48px rgba(234,198,122,0.23);
  z-index: 299;
  min-width: 330px; max-width: 97vw;
  width: 100%;
  animation: modalpopup 0.38s;
}
@keyframes modalpopup {
  from { transform: translate(-50%,-30%) scale(0.95); opacity: 0.77; }
  to { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}
.cookie-modal-header {
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 19px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-modal-category label {
  font-weight: 600;
}
.cookie-modal-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--secondary);
  margin-right: 6px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 15px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px; right: 15px;
  font-size: 1.7rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.13s, color 0.13s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: var(--secondary);
  color: #FFFDF2;
}

.cookie-modal-category.essential label {
  color: #779008;
  font-weight: 700;
  opacity: 0.74;
}
.cookie-modal-category.essential input {
  accent-color: #b6b856;
}

@media (max-width: 600px) {
  .cookie-modal {
    min-width: 90vw;
    padding: 22px 7px 18px 7px;
  }
  .cookie-banner { font-size: 0.97rem; padding: 13px 7px 7px 7px; }
}

/* =======================================================
   MICRO INTERACTIONS & TRANSITIONS
======================================================== */
section, .card, .testimonial-card, .cta-primary, .cta-secondary, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.3s, background 0.18s, color 0.14s, border 0.13s, transform 0.17s;
}
.card:active, .footer-brand:active, .cta-primary:active, .cta-secondary:active {
  transform: scale(0.99) translateY(2px);
}
main a:not(.cta-primary):not(.cta-secondary):not(nav a) {
  color: var(--retro-orange);
  border-bottom: 1px dashed var(--secondary);
  transition: color 0.12s, border 0.13s;
}
main a:not(.cta-primary):not(.cta-secondary):not(nav a):hover,
main a:not(.cta-primary):not(.cta-secondary):not(nav a):focus {
  color: var(--retro-brown);
  border-bottom: 1px solid var(--secondary);
  background: #fcf5e5;
}

/* =======================================================
   FORM STYLES (for kontakt page, generic)
======================================================== */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid #EAC67A;
  border-radius: 10px;
  background: #FFFDEB;
  margin-bottom: 17px;
  box-shadow: 0 1px 3px var(--shadow);
  transition: border 0.16s, box-shadow 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: #E1A836;
  outline: none;
  box-shadow: 0 1px 10px var(--shadow);
  background: #FEF9E4;
}

button[type="submit"] {
  background: var(--secondary);
  color: var(--primary);
}

/* =======================================================
   Z-INDEX LAYERING
======================================================== */
header { z-index: 30; }
.mobile-menu { z-index: 200; }
.cookie-banner { z-index: 250; }
.cookie-modal { z-index: 299; }

/* Hide modal and cookie banner on JS close (for scripting) */
.cookie-banner.closed {
  display: none !important;
  opacity: 0;
}
.cookie-modal.closed {
  display: none !important;
  opacity: 0;
}

/* =======================================================
   OVERRIDE SYSTEM: Prevent Overlaps/Absolute-Content
======================================================== */
.card, .testimonial-card, .text-section {
  position: relative;
  z-index: 2;
}

/* Ensures min spacing between elements (20px margin gap if not flex gap) */
.section > *, .container > *, .content-wrapper > * {
  margin-bottom: 20px;
}
.section > *:last-child, .container > *:last-child, .content-wrapper > *:last-child {
  margin-bottom: 0;
}

/* Hide decorative absolute position if content related: forbidden */
.decorative, .absolute-background-image {
  pointer-events: none;
  z-index: 1;
}

/* ================ END OF STYLE.CSS ================= */
