/* =============================================================
   CSS RESET & NORMALIZE (Modern, with vintage tweaks)
   ============================================================= */
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,main,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;
}
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section {
  display: block;
}
body {
  line-height: 1.4;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F7F2EE url('../assets/bg-vintage-pattern.png') repeat;
  color: #313030;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}
a {
  color: #275FC5;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #F2AC2C;
  outline: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}

/* ============================
   VINTAGE RETRO VARIABLES
   ============================ */
:root {
  --primary: #275FC5;
  --primary-dark: #153062;
  --secondary: #B8935F;
  --accent: #F2AC2C;
  --neutral-bg: #F7F2EE;
  --paper-bg: #FFE6B0;
  --vintage-blue: #4C8CB2;
  --vintage-red: #CF5C36;
  --vintage-teal: #57837B;
  --vintage-brown: #85624E;
  --vintage-icon: #B9935F;
  --shadow: 0 2px 12px rgba(85,54,37,0.10), 0 6px 24px rgba(100,65,45,0.10);
  --radius: 16px;
  --radius-card: 18px;
  --radius-btn: 32px;
  --transition: 0.23s cubic-bezier(0.32,0,0.67,0);
  --font-headline: 'Montserrat', Futura, Impact, Arial, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ============================
   TYPOGRAPHY
   ============================ */
h1,h2,h3,h4,h5 {
  font-family: var(--font-headline);
  font-weight: 700;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.8rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
  text-shadow: 1px 1px 0px #FFF4E2;
}
@media (max-width: 900px) { h1 { font-size: 2.1rem; } }
h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 18px;
}
@media (max-width: 900px) { h2 { font-size: 1.35rem; } }
h3 {
  font-size: 1.25rem;
  color: var(--vintage-red);
  margin-bottom: 12px;
}
h4,h5 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}
p, ul, ol {
  font-family: var(--font-body);
  font-size: 1.08rem;
  color: #313030;
  line-height: 1.7;
  margin-bottom: 16px;
}
strong, b {
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: .2px;
}
ul, ol {
  padding-left: 22px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 8px;
  list-style-type: disc;
}
h1, h2, h3, h4, h5, h6 {
  text-rendering: optimizeLegibility;
}
.text-section a {
  color: var(--vintage-red);
  font-weight: 600;
  text-decoration: underline;
}
.text-section a:hover {
  color: var(--accent);
}
.text-section p {
  margin-bottom: 14px;
}

/* ============================
   LAYOUT CONTAINERS
   ============================ */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--paper-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  position: relative;
}

@media (max-width: 600px) {
  .section {
    padding: 30px 5vw;
    margin-bottom: 36px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFF9F1;
  border-radius: var(--radius-card);
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  position: relative;
  border: 2px solid var(--vintage-icon);
  min-width: 220px;
  flex: 1 1 320px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-2px) scale(1.02) rotate(-0.7deg);
  box-shadow: 0 6px 32px rgba(85,54,37,0.18), 0 2px 8px rgba(232,149,57,0.11);
  border-color: var(--accent);
  z-index: 3;
}

.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) {
  .content-wrapper,
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch !important;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: #FFF;
  border-radius: var(--radius-card);
  box-shadow: 0 3px 16px rgba(0,0,0,0.06);
  border: 2px dashed var(--accent);
  max-width: 420px;
  min-width: 250px;
  flex: 1 1 260px;
  font-family: var(--font-body);
  color: #262214;
}
.testimonial-card p {
  color: #231b07;
  font-size: 1.08rem;
  margin-bottom: 9px;
  font-style: italic;
}
.testimonial-card span {
  color: var(--primary-dark);
  font-size: 1rem;
  font-family: var(--font-headline);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Vintage patterns for containers */
.section:before {
  content: '';
  display: block;
  position: absolute;
  top: -16px; left: -16px;
  width: 64px; height: 64px;
  background: url('../assets/vintage_corner1.svg') no-repeat center;
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}
.section:after {
  content: '';
  display: block;
  position: absolute;
  bottom: -16px; right: -16px;
  width: 64px; height: 64px;
  background: url('../assets/vintage_corner2.svg') no-repeat center;
  opacity: 0.11;
  pointer-events: none;
  z-index: 1;
}

/* =============================
   HEADER/NAVIGATION
   ============================= */
header {
  background: var(--primary);
  color: #fff7f1;
  padding: 0;
  min-height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(39,95,197,0.13);
}
header > a > img {
  display: block;
  height: 48px;
  margin: 10px 0 0 0;
  border-radius: 0;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
  margin-left: 24px;
  margin-top: 2px;
}
.main-nav a {
  font-family: var(--font-headline);
  font-size: 1.08rem;
  color: #FFF4E2;
  font-weight: 600;
  background: none;
  padding: 4px 14px 7px 14px;
  border-radius: var(--radius-btn);
  transition: color 0.2s, background 0.18s;
  text-decoration: none;
  letter-spacing: 1px;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--vintage-blue);
  color: var(--accent);
}
header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 0 18px;
}
a.btn-primary {
  margin-left: auto;
}

/* Responsive - main desktop header */
@media (max-width: 1080px) {
  header { gap: 10px; }
  .main-nav { margin-left: 12px; gap: 10px; }
}
@media (max-width: 900px) {
  header { flex-direction: column; align-items: flex-start; padding: 8px 2vw 0; min-height: 58px; }
  .main-nav { flex-wrap: wrap; gap: 3px; }
  a.btn-primary { margin-left: 0; margin-top: 8px; }
}

/* Hide main nav and CTA on mobile, show hamburger */
@media (max-width: 768px) {
  .main-nav,
  .btn-primary[href="kontakt.html"] {
    display: none;
  }
  .mobile-menu-toggle {
    display: block !important;
  }
}

/* =============================
   BUTTONS
   ============================= */
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: var(--font-headline);
  font-weight: bold;
  font-size: 1.09rem;
  padding: 10px 38px 11px 38px;
  border-radius: var(--radius-btn);
  border: 2px solid var(--accent);
  cursor: pointer;
  background: var(--accent);
  color: #fff8eb;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 1.5px 10px rgba(227,181,53,0.055);
  letter-spacing: 1.1px;
  margin-right: 9px;
  margin-top: 8px;
  margin-bottom: 8px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  position: relative;
}
.btn-primary:active {
  transform: scale(0.97);
}
.btn-primary:hover,
.btn-primary:focus {
  background: #F2C778;
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-secondary {
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--primary);
  color: #FFF9E7;
  border-color: var(--accent);
}

/* == Hamburger Menu Button == */
.mobile-menu-toggle {
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 50%;
  padding: 9px 17px 12px 17px;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  margin-left: 12px;
  margin-top: 2px;
  box-shadow: 0 1.5px 6px rgba(170,110,12,0.08);
  display: none;
  z-index: 104;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.14s;
}
.mobile-menu-toggle:active {
  background: var(--primary-dark);
  color: var(--accent);
}

/* ================================
   MOBILE MENU & OVERLAY
   ================================ */
.mobile-menu {
  display: flex;
  flex-direction: column;
  background: var(--paper-bg);
  box-shadow: 0 0 32px rgba(0,0,0,0.21);
  position: fixed;
  top:0; right:0; height:100vh; width: 96vw;
  transform: translateX(110vw);
  z-index: 1200;
  transition: transform 0.31s cubic-bezier(0.56,0.01,0.38,1), box-shadow 0.2s;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.08rem;
  border: none;
  background: none;
  color: var(--vintage-red);
  padding: 12px 21px 8px 0;
  cursor: pointer;
  transition: color 0.19s, background 0.14s;
}
.mobile-menu-close:hover {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 18px 0 18px;
}
.mobile-nav a {
  font-family: var(--font-headline);
  font-size: 1.19rem;
  color: var(--primary-dark);
  background: transparent;
  border-radius: var(--radius-btn);
  padding: 11px 17px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent);
  color: #fffdf6;
}

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

/* =========================
   FOOTER
   ========================= */
footer {
  background: var(--primary-dark);
  color: #fff5eb;
  padding: 40px 0 0px 0;
  margin-top: 40px;
}
footer .container {
  padding-bottom: 32px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 3px 11px;
  border-radius: 16px;
  transition: color 0.2s, background 0.19s;
}
.footer-nav a:hover {
  background: var(--accent);
  color: #153062;
}
.social {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 12px 0;
}
.social a img {
  height: 28px;
  width: 28px;
  filter: sepia(0.25) contrast(1.1);
  transition: filter 0.18s;
}
.social a:hover img {
  filter: brightness(120%) sepia(0.48) drop-shadow(0 2px 4px #F2AC2C60);
}
.contact-info {
  font-size: 0.98rem;
  color: #fffaea;
  max-width: 420px;
  line-height: 1.7;
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* =========================
   HERO & SECTION SPECIALS
   ========================= */
.hero {
  background: var(--paper-bg);
  border-radius: var(--radius-card);
  padding: 50px 0;
  margin-bottom: 60px;
  box-shadow: var(--shadow);
  position: relative;
  border: 2px solid var(--accent);
}
.hero h1, .hero h2 {
  text-shadow: 1px 1px 0px #fff9ea44;
}

/* Features list, services, special vintage styling */
ul {
  list-style-type: disc inside;
  padding-left: 12px;
}
section ul li {
  margin-bottom: 16px;
}
section ul li strong {
  color: var(--vintage-red);
}
.feature-item img,
section ul img {
  width: 42px; height: 42px;
  margin-right: 8px;
}
section ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* =========================
   CALL TO ACTION
   ========================= */
.call-to-action {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .call-to-action {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===========================
   CONTENT CARD, TEXT BLOCKS
   =========================== */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.text-section {
  background: transparent;
  border: none;
  padding: 0;
}

/* For Kontakt page 'contact-data' block */
.contact-data {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--secondary);
  border-radius: var(--radius-card);
  box-shadow: 0 1.5px 10px rgba(38,71,194,0.13);
  color: #fffefb;
  padding: 22px 22px;
  font-size: 1.08rem;
  margin: 18px 0;
  font-family: var(--font-body);
}
.contact-data img {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-bottom: -4px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ===========================
   SPACING: Ensure minimum 20px between cards/sections
   =========================== */
section {
  margin-bottom: 60px !important;
  position: relative;
}
@media (max-width: 650px) {
  section {
    margin-bottom: 36px !important;
  }
}
section > .container > .content-wrapper > * + * {
  margin-top: 20px !important;
}
.main > section + section, .section + .section {
  margin-top: 60px;
}

/* ===========================
   ANIMATIONS & TRANSITIONS
   =========================== */
.btn-primary, .btn-secondary,
.main-nav a, .footer-nav a,
.mobile-nav a {
  transition: background 0.13s, color 0.13s, border-color 0.17s, box-shadow 0.17s;
}
.card, .testimonial-card {
  transition: box-shadow 0.22s, border-color 0.18s, transform 0.2s;
}
.testimonial-card:hover {
  transform: scale(1.032) rotate(-0.4deg);
  box-shadow: 0 7px 32px rgba(242,172,44,0.12), 0 3px 12px rgba(21,48,98,0.12);
}
.mobile-menu {
  transition: transform 0.28s, box-shadow 0.17s;
}

/* Micro-interaction for cards */
.card:focus-within {
  outline: 2px dashed var(--vintage-red);
  outline-offset: 2px;
}

/* ===========================
   COOKIE CONSENT BANNER
   =========================== */
#cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFF5E2;
  color: #23403B;
  box-shadow: 0 -2px 12px rgba(44,16,8,0.08);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 19px 16px;
  font-size: 1.02rem;
  gap: 14px;
  animation: appearUP 0.8s cubic-bezier(0.44,0.03,0.44,0.96);
}
@keyframes appearUP {
  from { opacity: 0; transform: translateY(80px); }
  to { opacity: 1; transform: translateY(0); }
}
#cookie-consent-banner .cookie-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.cookie-btns button {
  padding: 9px 29px;
  margin-top: 4px;
  margin-bottom: 4px;
  font-family: var(--font-headline);
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: #2e2512;
  border: 2px solid var(--accent);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 7px 16px rgba(242,172,44,0.09);
  cursor: pointer;
  transition: background 0.12s, color 0.1s, border-color 0.13s;
}
.cookie-btns button:focus,
.cookie-btns button:hover {
  background: var(--primary-dark);
  color: #FFF9E7;
  border-color: var(--primary-dark);
}
.cookie-btns .cookie-settings-btn {
  background: transparent;
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}
.cookie-btns .cookie-settings-btn:hover {
  background: var(--primary-dark);
  color: #FFEBC1;
}

/* Cookie MODAL */
#cookie-modal {
  display: none;
  position: fixed;
  z-index: 1502;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(36, 28, 10, 0.57);
  align-items: center;
  justify-content: center;
  animation: appearBG 0.44s;
}
@keyframes appearBG {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #FFF8ED;
  color: #262010;
  border-radius: var(--radius-card);
  box-shadow: 0 6px 48px rgba(33,22,1,0.18), 0 1.5px 8px rgba(242,172,44,0.12);
  max-width: 540px;
  width: 92vw;
  padding: 32px 24px 26px 24px;
  animation: modalPop 0.38s cubic-bezier(0.5,1.2,0.25,1.05);
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.7) translateY(40px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal-content h2 {
  font-size: 1.28rem;
  color: var(--primary-dark);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1.09rem;
  border-radius: 13px;
  background: #FFF4DF;
  padding: 10px 13px;
  margin-bottom: 4px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--primary);
  width: 21px;
  height: 21px;
  margin-right: 8px;
}
.cookie-category input[type="checkbox"]:disabled {
  accent-color: #B8935F;
  opacity: 0.45;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 21px;
}
.cookie-modal-content .cookie-modal-close {
  background: transparent;
  border: none;
  color: var(--vintage-red);
  font-size: 2rem;
  position: absolute;
  top: 14px; right: 20px;
  cursor: pointer;
  transition: color 0.14s;
  padding: 2px 4px;
}
.cookie-modal-close:hover {
  color: var(--primary-dark);
}

@media (max-width: 490px) {
  .cookie-modal-content {
    padding: 19px 8px 16px 8px;
    max-width: 96vw;
  }
  .cookie-modal-content h2 { font-size: 1rem; }
  .cookie-categories { gap: 11px; }
  .cookie-modal-actions { flex-direction: column; gap: 8px; }
}

/* =========================
   FORM ELEMENTS
   ========================= */
input[type="text"],
input[type="email"],
textarea {
  border-radius: 9px;
  border: 2px solid var(--vintage-icon);
  background: #fff7e3;
  font-size: 1.05rem;
  padding: 10px 16px;
  color: var(--primary-dark);
  margin-bottom: 12px;
  width: 100%;
  transition: border-color 0.19s;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--primary);
  outline: none;
}
label { font-weight: 700; margin-bottom: 6px; display: inline-block; }

/* ===========================
   RESPONSIVE TYPOGRAPHY & LAYOUT
   =========================== */
@media (max-width: 960px) {
  body { font-size: 0.98rem; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.18rem; }
  .content-wrapper, .content-grid { gap: 14px; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.07rem; }
  .container { padding: 0 4vw; }
}

/* =========================
   MISC RETRO DETAILS
   ========================= */
::-webkit-scrollbar { width: 12px; background: #FFECBC; }
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 14px;
}

hr, .divider {
  border: none;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--primary-dark), var(--primary-dark) 8px, #FFC795 8px, #FFC795 20px);
  margin: 38px 0;
  border-radius: 3px;
}

/* For color blind users, ensure test readability */
.testimonial-card,
.card,
.text-section {
  color-scheme: only light;
}

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