/* CSS RESET & NORMALIZE */
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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  font-size: 16px;
  background: #fbf7ef;
  color: #2f2936;
  font-family: 'Lato', Arial, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #A78BFA;
  text-decoration: none;
  transition: color .2s;
}
a:hover,
a:focus {
  color: #7C3AED;
  text-decoration: underline;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
  line-height: 1.6;
}
address {
  font-style: normal;
  color: #3c3544;
  margin-bottom: 16px;
  letter-spacing: .03em;
}

/* TYPOGRAPHY: Retro-Vintage system fallback */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #2f2936;
  text-shadow: 0 1px 0 #efe2c3, 0 2px 4px rgba(60,49,49,.07);
  margin-bottom: 16px;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 14px;
  letter-spacing: 1.5px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
h4, h5 {
  font-size: 1.1rem;
}
p, ul, ol, blockquote {
  font-size: 1rem;
  color: #453941;
}
.large {
  font-size: 1.26rem;
}
strong {
  font-weight: 700;
  color: #2f2936;
}

/* BRAND COLORS (vintage retro palette) */
:root {
  --primary: #374151;
  --secondary: #FFF7EA;
  --accent: #A78BFA;
  --accent-dark: #7C3AED;
  --background: #fbf7ef;
  --vintage-sand: #ecdcb0;
  --vintage-brown: #b19a6a;
  --vintage-rose: #CBA1A1;
  --vintage-mint: #A8D5BA;
  --card-bg: #fff9f2;
  --border: #e6d9c6;
  --shadow: 0 3px 16px 0 rgba(170,140,50,.08), 0 1.5px 8px 0 rgba(154,115,62,0.06);
  --font-display: 'Montserrat', 'Trebuchet MS', Arial, serif;
  --font-body: 'Lato', Arial, sans-serif;
}

/* GENERAL CONTAINER */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER/NAVIGATION */
header {
  background: var(--vintage-sand);
  border-bottom: 4px solid var(--vintage-brown);
  box-shadow: 0 2px 8px 0 rgba(190, 145, 60, 0.09);
  z-index: 19;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  justify-content: space-between;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  padding: 8px 0;
  text-shadow: none;
}
.logo img {
  max-height: 50px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #53433e;
  text-shadow: 0 1px #fff5,
    0 2.5px 8px #bfa37b13;
  padding: 7px 12px;
  border-radius: 7px;
  letter-spacing: .5px;
  transition: background .22s, color .17s;
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  height: 2.5px;
  background: var(--accent);
  width: 0;
  border-radius: 2px;
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  transition: width .22s;
}
.main-nav a:hover:after,
.main-nav a:focus:after {
  width: 90%;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--vintage-mint);
  color: #573c52;
}

.cta-button {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.04rem;
  letter-spacing: 1px;
  border: none;
  border-radius: 24px;
  padding: 11px 32px;
  margin-left: auto;
  box-shadow: 0 1.5px 8px 0 rgba(127,89,200,0.06);
  cursor: pointer;
  transition: background .2s, transform .14s;
  text-shadow: 0 1px 0 #ba8ffa44;
  outline: none;
  position: relative;
}
.cta-button:hover, .cta-button:focus {
  background: var(--accent-dark);
  color: #fffbe7;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 3.5px 18px 0 rgba(127,89,200,0.18);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: var(--primary);
  margin-left: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 5px 14px;
  transition: background .25s;
  border-radius: 7px;
  z-index: 21;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--vintage-rose);
  color: #fff;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(119deg,#ecdcb0 60%,#CBA1A1 100%);
  box-shadow: 0 0 30px 0 rgba(142, 88, 58, 0.14);
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.6,.2,.23,.97);
  z-index: 120;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
  gap: 0;
}
.mobile-menu.open {
  transform: none;
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: #623d2f;
  font-size: 2.2rem;
  margin: 28px 18px 10px 0;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background .18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #fff1da;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 35px;
  align-items: center;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--primary);
  padding: 10px 28px;
  border-radius: 12px;
  text-shadow: 0 1px #fff7,
      0 2px 8px #ccbb;
  background: none;
  margin-bottom: 0;
  transition: background .21s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--vintage-rose);
  color: #fff;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 13px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 13px;
  }
  .cta-button {
    padding: 10px 20px;
  }
}
@media (max-width: 786px) {
  .main-nav,
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    gap: 0;
    min-height: 64px;
  }
}

/* HERO SECTION */
.hero {
  background: linear-gradient(117deg,#ecdcb0 74%,#cba1a1 100%);
  padding: 58px 0 32px 0;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--vintage-brown);
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 680px;
  margin: 0 auto;
}
.hero h1 {
  color: #5b3e32;
  font-size: 2.5rem;
  text-shadow: 0 2px #fff7cc88, 0 6px 15px #b88b6313;
}
.hero p {
  color: #5c4644;
  font-size: 1.13rem;
}
@media (max-width: 650px) {
  .hero {
    padding: 33px 0 18px 0;
  }
  .hero h1 { font-size: 1.55rem; }
}

/* --- FLEXBOX SPACING/ALIGNMENT PATTERNS (CRITICAL) --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: var(--shadow);
  position: relative;
  padding: 24px 20px;
}
.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;
  margin-bottom: 20px;
  background: #fffdfa;
  border: 1.5px solid var(--vintage-brown);
  border-radius: 18px;
  box-shadow: var(--shadow);
  position: relative;
  flex-wrap: wrap;
  color: #3a2f2c;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- CONTENT WRAPPER --- */
.content-wrapper {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.content-wrapper.center {
  align-items: center;
  text-align: center;
}
.text-section {
  max-width: 720px;
  margin: 0 auto 18px auto;
  background: none;
}

@media (max-width: 768px) {
  .content-grid,
  .features-list,
  .services-grid,
  .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .content-wrapper.center {
    align-items: flex-start;
    text-align: left;
  }
}

/* FEATURES-LIST (icon/text pairs) */
.features-list, .services-grid, .services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 18px;
}
.features-list {
  align-items: flex-start;
}
.features-list > li,
.features-list > div {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border: 1.5px solid var(--vintage-mint);
  border-radius: 13px;
  box-shadow: 0 1.5px 12px 0 #bee3dc10;
  padding: 11px 18px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #4c3c35;
}
.features-list img {
  width: 44px;
  height: 44px;
  margin-right: 4px;
  opacity: .89;
  background:#fafbf8;
  border-radius: 9px;
  border: 1px solid #e5d7b8;
  box-shadow: 0 2px 6px #dac2b210;
}
.features-list > div p,
.features-list > li p {
  margin: 0;
}

/* SERVICES GRID/LIST */
.services-grid, .services-list {
  gap: 20px;
}
.services-grid > li, .services-list > li {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 2px 8px 0 #b9b09b12;
  border: 1.5px solid var(--vintage-brown);
  flex: 1 1 220px;
  min-width: 210px;
  margin-bottom: 20px;
  transition: box-shadow .24s, transform .18s;
  position: relative;
}
.services-list > li span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: .95em;
  background: var(--accent);
  color: #fff;
  border-radius: 16px;
  padding: 2.5px 12px;
  margin-left: 7px;
  letter-spacing: 1.25px;
  position: relative;
  top: -2px;
}
.services-grid > li:hover,
.services-list > li:hover {
  box-shadow: 0 4px 24px 0 #a78bfa25, 0 1.5px 8px 0 #a78bfa22;
  transform: translateY(-6px) scale(1.04);
}

@media (max-width: 620px) {
  .features-list > li, .features-list > div, .services-grid > li, .services-list > li {
    padding: 13px 10px;
  }
}

/* PRICING TABLE */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff9f2;
  box-shadow: var(--shadow);
  border-radius: 17px;
  overflow: hidden;
  margin-bottom: 18px;
}
.pricing-table thead {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.07em;
  border: none;
}
.pricing-table th, .pricing-table td {
  padding: 12px 10px;
  text-align: left;
  font-size: 1rem;
}
.pricing-table th {
  font-weight: 700;
  border-right: 2px solid #fff9;
}
.pricing-table td {
  color: #464242;
  border-bottom: 1px solid #ecdcb0;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}
@media (max-width: 620px) {
  .pricing-table thead {
    display: none;
  }
  .pricing-table tr {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-bottom: 2px solid #eee1cc;
    margin-bottom: 20px;
  }
  .pricing-table td {
    padding: 8px 6px;
  }
}

/* TESTIMONIALS */
.testimonial-card {
  font-size: 1.11rem;
  color: #332a25;
  background: #fffcf7;
  border: 2.5px solid var(--vintage-sand);
  margin-bottom: 24px;
  box-shadow: 0 1.5px 16px 0 #dac19620;
  position: relative;
}
.testimonial-meta {
  color: #4d443e;
  font-size: .96rem;
  font-style: italic;
  margin-left: 6px;
  text-shadow: 0 1px #ffe1cc99;
}
.star-rating {
  color: var(--accent);
  font-size: 1.22em;
  margin-left: 0.5em;
}

/* FOOTER */
footer {
  background: var(--vintage-brown);
  color: #fffbe3;
  margin-top: 48px;
  box-shadow: 0 -2px 12px #bfa26e18;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 34px 0 18px 0;
  gap: 18px;
  border-bottom: 1.5px solid #efddb1;
}
.footer-top .logo img {
  max-height: 37px;
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #fffbe3;
  font-family: var(--font-display);
  font-size: 1.09rem;
  letter-spacing: .5px;
  opacity: .93;
  transition: color .17s, opacity .17s;
  padding: 7px 12px;
  border-radius: 6px;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--accent);
  color: #fff;
  opacity: 1;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: .97rem;
  padding: 12px 0 16px 0;
  color: #faeacb;
}
.footer-bottom address,
.footer-bottom .footer-note {
  color: #faeacb;
}
.footer-note {
  font-style: italic;
  opacity: .89;
}
@media (max-width: 700px) {
  .footer-top, .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: #614932;
  color: #fffbe8;
  font-size: 1.06rem;
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  z-index: 200;
  box-shadow: 0 -2px 14px #61493233;
  padding: 24px 11px 18px 11px;
  animation: cookie-slideup .7s cubic-bezier(.37,.68,.3,1.09);
  border-top-left-radius: 17px;
  border-top-right-radius: 17px;
}
@keyframes cookie-slideup {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
  margin-top: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn, .cookie-settings-btn {
  border: none;
  padding: 9px 20px;
  font-family: var(--font-display);
  font-size: 1.01em;
  border-radius: 14px;
  margin: 0 2.5px;
  background: var(--accent);
  color: #fffef1;
  font-weight: 700;
  cursor: pointer;
  transition: background .22s, color .17s, box-shadow .18s;
  box-shadow: 0 2px 7px 0 #ab92bc22;
}
.cookie-btn.reject {
  background: #CBA1A1;
  color: #fff;
}
.cookie-btn:hover,.cookie-btn:focus,
.cookie-settings-btn:hover,.cookie-settings-btn:focus {
  background: var(--accent-dark);
  color: #fffbe1;
}
.cookie-settings-btn {
  background: var(--vintage-mint);
  color: #423a34;
  border: 1.5px solid #6db6a7;
}
.cookie-settings-btn:hover,.cookie-settings-btn:focus {
  background: #2ea090;
  color: #fffbe1;
}

/* COOKIE MODAL POPUP */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 250;
  top:0;left:0;right:0;bottom:0;
  background: #2b2c2d99;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookie 0.29s;
}
@keyframes fadeInCookie {
  from { opacity: 0 }
  to   { opacity: 1 }
}
.cookie-modal {
  background: #fffbe9;
  color: #4d3927;
  border-radius: 23px;
  max-width: 340px;
  width: 94vw;
  padding: 28px 18px 16px 18px;
  box-shadow: 0 6px 38px #61493229, 0 2px 14px #b6a37a11;
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: popInCookie 0.33s;
}
@keyframes popInCookie {
  0% { transform: scale(.84) translateY(30px); opacity: 0; }
  70% { transform: scale(1.05) translateY(-6px); }
  80% { transform: scale(.97) translateY(4px); }
  100% { transform: none; opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.16rem;
  color: #614932;
  margin-bottom: 7px;
  font-family: var(--font-display);
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 5px 0 9px 0;
  font-size: 1.01em;
}
.cookie-category label {
  font-weight: 500;
  font-family: var(--font-body);
}
.cookie-category input[type="checkbox"] {
  width: 23px; height: 23px;
  accent-color: var(--vintage-mint);
}
.cookie-category input[disabled] {
  accent-color: #dedede;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 7px;
}
/* --- End Cookie --- */


/* MICRO-INTERACTIONS & HOVER EFFECTS */
.card, .services-grid > li, .services-list > li, .features-list > li, .features-list > div, .testimonial-card {
  transition: box-shadow .25s, transform .16s, border-color .16s;
}
.card:hover, .services-grid > li:hover, .services-list > li:hover, .features-list > li:hover, .features-list > div:hover {
  border-color: var(--accent);
  box-shadow: 0 5.5px 22px 0 #a78bfa38, 0 2px 8px #cca3ab25;
  transform: translateY(-6px) scale(1.03);
  z-index: 3;
}

.testimonial-card:hover {
  box-shadow: 0 4px 26px 0 #baa99f33, 0 1.5px 8px 0 #a78bfa19;
}

/* ADDRESS, LINKS, TABLES */
address a {
  color: var(--accent);
  text-decoration: underline;
}
address a:hover {
  color: var(--accent-dark);
}

/* RESPONSIVENESS */
@media (max-width: 580px){
  section, .section {
    padding: 26px 3vw;
  }
  .testimonial-card {
    padding: 12px 6px;
    font-size: .99em;
  }
  .footer-nav {
    gap: 10px;
  }
  .footer-top {
    padding: 20px 0 10px 0;
  }
}

/* MODAL HIDE/SHOW CLASSES (for JS) */
.cookie-modal-backdrop[aria-hidden='true'] {
  display: none !important;
}
.cookie-banner[aria-hidden='true'] {
  display: none !important;
}

/* UTILITY CLASSES */
.center {
  text-align: center !important;
  align-items: center !important;
}
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* FORM / BUTTONS (for Kontakt, Modal) */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 10px;
  border: 1.5px solid #e6d9c6;
  padding: 12px 9px;
  margin-bottom: 14px;
  box-shadow: none;
  background: #fff9f2;
  color: #2f2936;
  outline: none;
  transition: border .22s, box-shadow .16s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--accent);
  background: #f6edfb;
  box-shadow: 0 0 0 2px #d8c9fa33;
}
button, .button {
  font-family: var(--font-display);
  font-size: 1.09rem;
  color: #fffbe8;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  padding: 10px 23px;
  cursor: pointer;
  box-shadow: 0 2px 8px #bb9ab025;
  transition: background .19s, transform .13s;
}
button:hover, button:focus, .button:hover, .button:focus {
  background: var(--accent-dark);
  color: #fff;
  transform: scale(1.03);
}

/* RETRO/VINTAGE CLASSIC PATTERNS (backgrounds, details) */
.section, section {
  background: repeating-linear-gradient(135deg, #fff9f2 0, #fff9f2 23px, #f5ead7 23px, #f5ead7 46px);
  border-radius: 22px;
  box-shadow: 0 2px 15px #e5cfc418;
}

/* Hide pattern for hero, footer, mobile nav etc */
.hero, footer, .mobile-menu { background: inherit !important; }

/* Hide unneeded dot for lists in .features-list, .services-grid */
.features-list > li, .features-list > div, .services-grid > li {
  list-style: none outside none;
}

/* Accessibility: focus states */
a:focus, .cta-button:focus, button:focus, .cookie-btn:focus, .cookie-settings-btn:focus {
  outline: 2.5px solid var(--accent-dark);
  outline-offset: 2px;
  background: #edeff0;
}

/* Miscellaneous */
::-webkit-input-placeholder { color: #b3a083; }
::-moz-placeholder { color: #b3a083; }
:-ms-input-placeholder { color: #b3a083; }
::placeholder { color: #b3a083; }

/* Remove number input arrows */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

/* Hide scrollbars in overlays (WebKit only)*/
.mobile-menu, .cookie-modal-backdrop, .cookie-modal {
  scrollbar-width: none;
}
.mobile-menu::-webkit-scrollbar { display: none; }

/* --- END --- */
