/* ===== 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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F8F6F0; /* Vintage paper tone */
  color: #2D2A22;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-height: 100%;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #3E77B6;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B94F23;
}
ul, ol {
  margin-left: 24px;
}
li {
  margin-bottom: 10px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #1A2A4F;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 0 #FFF3;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 16px; }
h4 { font-size: 1.2rem; margin-bottom: 12px; }
p, dl, dt, dd {
  font-size: 1rem;
  margin-bottom: 12px;
}
dt { font-weight: bold; color: #3E77B6; }
dd { margin-bottom: 16px; margin-left: 0; color: #40341A; }
strong { color: #B94F23; font-weight: bold; }

/* ===== BRAND & VINTAGE RETRO COLOR VARIABLES ===== */
:root {
  --primary: #1A2A4F;
  --secondary: #3E77B6;
  --accent: #E9F0F8;
  --retro-mustard: #E2B24C;
  --retro-sand: #F8F6F0;
  --retro-blue: #3E77B6;
  --retro-brick: #B94F23;
  --retro-green: #507D63;
  --card-bg: #FFFDF6;
  --paper-shadow: 0 6px 32px 0 rgba(53, 36, 15, 0.08), 0 1.5px 6px 0 rgba(186, 156, 80, 0.08);
  --radius: 14px;
  --shadow-vintage: 0 3px 16px 0 rgba(101, 92, 67, 0.08), 0 1px 4px 0 rgba(182,155,91,0.06);
  --focus-outline: 2px dashed #E2B24C;
}

/* ===== UTILITIES & GENERAL LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-vintage);
  background-image: repeating-linear-gradient(135deg, rgba(226,178,76,0.04) 0, rgba(226,178,76,0.04) 5px, transparent 5px, transparent 24px);
}
@media (max-width: 768px) {
  .section { padding: 24px 10px; }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== HEADER & LOGO ===== */
header {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 18px 0 rgba(26, 42, 79, 0.09);
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img {
  height: 44px;
  width: auto;
  margin-right: 14px;
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  header img { height: 38px; }
}

/* NAVIGATION */
.main-nav {
  display: flex;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  color: #E2B24C;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  background: none;
  padding: 6px 12px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E2B24C22;
  color: #FFFDF6;
}
.cta-button {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  display: inline-block;
  padding: 12px 28px;
  border-radius: 32px;
  background: var(--retro-mustard);
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-vintage);
  font-size: 1rem;
  transition: background 0.2s, color 0.2s, transform 0.18s;
  border: 2.5px solid transparent;
  margin-left: 16px;
}
.cta-button:hover, .cta-button:focus {
  background: #FFFDF6;
  color: var(--retro-brick);
  border: 2.5px solid var(--retro-mustard);
  transform: translateY(-2px) scale(1.04);
  outline: none;
}
.cta-button.secondary {
  background: var(--retro-brick);
  color: #fff;
}
.cta-button.secondary:hover, .cta-button.secondary:focus {
  background: var(--primary);
  color: var(--retro-mustard);
  border: 2.5px solid var(--retro-brick);
}

@media (max-width: 1024px) {
  .main-nav { gap: 12px; }
  .cta-button { margin-left: 6px; padding: 11px 16px; font-size: 0.95rem; }
}

/* ===== MOBILE BURGER MENU ===== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  z-index: 3001;
  font-size: 2.1rem;
  background: var(--retro-mustard);
  color: var(--primary);
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 16px 0 rgba(226, 178, 76, 0.15);
  padding: 0;
  cursor: pointer;
  outline: none;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--secondary);
  color: #fff;
}

@media (max-width: 900px) {
  .main-nav, .cta-button {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFFDF6;
  z-index: 3002;
  box-shadow: 0 0 250px 0 #000A;
  transform: translateX(-105%);
  transition: transform 0.33s cubic-bezier(0.8,0.1,0.2,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
  transition: transform 0.32s cubic-bezier(0.8,0.1,0.2,1);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  font-weight: bold;
  align-self: flex-end;
  margin: 20px 28px 0 0;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--retro-mustard);
  color: var(--retro-brick);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 28px 36px;
  margin-top: 18px;
}
.mobile-nav a {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.20rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 14px 0 12px 0;
  border-bottom: 1.5px dashed #E2B24CAA;
  transition: color 0.18s, background 0.18s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #E2B24C11;
  color: #B94F23;
  outline: none;
}

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

/* ===== MAIN LAYOUT & FLEX PATTERNS ===== */
.features-grid, .services-list, .card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card-container { gap: 24px; }
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 12px 0 #d0b87328;
  padding: 28px 22px;
  min-width: 240px;
  flex: 1 1 260px;
}
.card-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.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) {
  .features-grid, .services-list, .card-container, .card-grid, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
  }
}

.trust-badges {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 14px;
}
.trust-badges img {
  background: #fff4;
  border-radius: 50%;
  padding: 9px;
  box-shadow: 0 0 7px #C2A35E33;
  width: 46px;
  height: 46px;
}

/* ===== VINTAGE RETRO CARD/FEATURE/BLOCK STYLES ===== */
.features-grid div,
.service-block,
.card {
  border: 1.5px solid #E2B24C33;
  background: var(--card-bg);
  box-shadow: var(--paper-shadow);
  border-radius: var(--radius);
  padding: 30px 22px 18px 22px;
  flex: 1 1 260px;
  transition: box-shadow 0.18s, background 0.23s, transform 0.18s;
  position: relative;
}
.features-grid div:hover,
.service-block:hover,
.card:hover {
  box-shadow: 0 8px 32px 0 #E2B24C22, 0 1.5px 8px 0 #5e4d2b13;
  background: #FFF9ED;
  transform: translateY(-2px) scale(1.02);
}
.features-grid img, .service-block img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
}
.features-grid h3, .service-block h2 {
  color: var(--retro-brick);
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.features-grid p, .service-block p {
  color: #2D2A22;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
.services-list { gap: 32px; }
.service-block strong {
  color: var(--retro-blue);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-left: 5px solid var(--retro-brick);
  padding-left: 18px;
}

.timeline-visual {
  margin: 30px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}
.timeline-visual img {
  height: 55px;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #FFFDF6;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px 0 #E2B24C22;
  border: 2.2px solid #E2B24C77;
  margin-bottom: 22px;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #1A2A4F;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.testimonial-card strong {
  color: var(--retro-brick);
  font-size: 1.06em;
}
.testimonial-card ul {
  margin: 0;
  margin-left: 16px;
}
.testimonial-card li {
  color: #3E77B6;
}

@media (max-width: 600px) {
  .testimonial-card {
    padding: 11px 6px;
  }
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 32px;
  padding-bottom: 32px;
}
footer a {
  color: #E2B24C;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s;
}
footer a:hover, footer a:focus {
  color: #FFFDF6;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact {
  font-size: 0.98rem;
  color: #FFE6BA;
  margin-top: 18px;
}
.footer-contact img {
  height: 19px;
  width: auto;
  margin-right: 10px;
  vertical-align: middle;
}
footer img {
  margin-bottom: 15px;
  height: 44px;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .footer-contact { margin-top: 5px; }
}

/* ===== FORMS & LISTS ===== */
ul, ol {
  margin-bottom: 13px;
  color: #4C4013;
  line-height: 1.7;
}
input, textarea, select {
  font-size: 1rem;
  border-radius: 7px;
  border: 1.5px solid #E2B24CAA;
  background: #F8F6F0;
  padding: 10px 12px;
  margin-bottom: 13px;
  width: 100%;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
input:focus, textarea:focus, select:focus {
  outline: var(--focus-outline);
}
button, input[type="submit"] {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
}

/* ===== SPACING FOR PAGES & COMPONENTS ===== */
main {
  margin-bottom: 60px;
  min-height: 300px;
}
@media (max-width: 768px) {
  main { margin-bottom: 44px; }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 3200;
  background: #E2B24C;
  color: #1A2A4F;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  padding: 22px 20px 18px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  box-shadow: 0 -4px 28px 0 #a8843236;
  border-top-left-radius: 13px;
  border-top-right-radius: 13px;
  animation: slideUpCookie 0.4s cubic-bezier(.5,1.4,.5,1) 0.05s both;
}
@keyframes slideUpCookie {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.5;
  flex-grow: 1;
  max-width: 440px;
  font-size: 1rem;
}
.cookie-banner .cookie-btn {
  margin-left: 4px;
  margin-right: 4px;
  padding: 10px 18px;
  border: none;
  border-radius: 21px;
  background: var(--retro-brick);
  color: #fff;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  box-shadow: 0 1px 4px #E2B24C42;
  transition: background 0.20s, color 0.15s, transform 0.18s;
  cursor: pointer;
}
.cookie-banner .cookie-btn.secondary {
  background: #fff;
  color: var(--retro-brick);
  border: 2px solid var(--retro-brick);
}
.cookie-banner .cookie-btn.settings {
  background: var(--secondary);
  color: #fff;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #1A2A4F;
  color: #E2B24C;
  outline: none;
  transform: translateY(-2px) scale(1.04);
}
.cookie-banner .cookie-btn.secondary:hover, .cookie-banner .cookie-btn.secondary:focus {
  background: var(--retro-mustard);
  color: #fff;
  border-color: #FFFDF6;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    padding: 14px 7px 13px 7px;
  }
  .cookie-banner p {
    max-width: 98vw;
  }
}

/* COOKIE MODAL OVERRLAY */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3400;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(26,42,79,0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: #F8F6F0;
  color: #1A2A4F;
  border-radius: 17px;
  box-shadow: 0 8px 44px #E2B24C33;
  padding: 32px 28px 24px 28px;
  max-width: 350px;
  width: 90vw;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalIn 0.32s cubic-bezier(.5,1.4,.5,1) 0.02s both;
}
@keyframes modalIn {
  from { transform: translateY(50px) scale(0.94); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  color: var(--retro-brick);
  font-size: 1.28rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px dashed #E2B24C66;
  font-size: 1rem;
}
.cookie-category:last-child { border-bottom: none; }
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #E2B24C55;
  border-radius: 13px;
  position: relative;
  outline: none;
  margin-left: 10px;
  transition: background 0.2s;
  cursor: pointer;
  vertical-align: middle;
}
.cookie-toggle:checked {
  background: var(--secondary);
}
.cookie-toggle:before {
  content: "";
  position: absolute;
  top: 3px; left: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1.5px 4px 0 #B94F2344;
  transition: left 0.18s;
}
.cookie-toggle:checked:before {
  left: 18px;
  background: var(--retro-mustard);
}
.cookie-modal .cookie-btn {
  margin-left: 0; margin-right: 6px;
  margin-top: 10px;
}
.cookie-modal .cookie-btn:last-child {
  margin-right: 0;
}
.cookie-modal .close-modal {
  background: none;
  border: none;
  color: #B94F23;
  font-size: 1.45rem;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: -12px;
  margin-top: -17px;
  transition: color 0.18s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: var(--retro-blue);
}

/* ===== TYPOGRAPHY RETRO STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Montserrat:wght@700;900&display=swap');

body {
  font-size: 1.07rem;
  font-weight: 400;
}
h1, h2 {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.10em;
}
h3, h4, h5, h6 {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  text-transform: none;
  font-weight: 700;
}

/* Retro headers with bottom border accents */
h1, h2 {
  border-bottom: 4px double var(--retro-mustard);
  display: inline-block;
  padding-bottom: 6px;
  box-shadow: none;
  margin-bottom: 18px;
}
h2 {
  border-bottom: 2px dashed var(--retro-brick);
  margin-bottom: 12px;
}

/* ===== VINTAGE/RETRO PATTERNS ===== */
.card, .service-block, .features-grid div {
  background-image: linear-gradient(125deg, #FFF9ED 90%, #E2B24C0D 100%);
  border-radius: 14px 42px 14px 14px/16px 32px 14px 14px;
}
.features-grid div:before, .service-block:before, .card:before {
  content: '';
  position: absolute;
  top: -14px; left: -14px;
  width: 38px; height: 38px;
  background: url('../assets/pattern-dot.png'), #E2B24C44;
  background-size: 22px 22px, contain;
  border-radius: 50%;
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  display: none;
}
@media (min-width: 1025px) {
  .features-grid div:before, .service-block:before, .card:before { display: block; }
}

/* ===== ANIMATIONS & MICRO-INTERACTIONS ===== */
.card, .service-block, .features-grid div, .testimonial-card {
  transition: box-shadow 0.2s, background 0.18s, transform 0.19s;
}
.card:focus-within, .service-block:focus-within {
  outline: var(--focus-outline);
}
.cta-button, .cookie-btn {
  transition: background 0.18s, color 0.16s, transform 0.12s, border 0.16s;
}

/* ===== TABLES ===== */
table {
  border-collapse: collapse;
  background: #FAF6EA;
  border-radius: 11px;
  box-shadow: 0 1px 9px #e2b24c25;
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 10px 18px;
  border-bottom: 1px solid #E2B24C33;
}
th {
  background: #E2B24C;
  color: #1A2A4F;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
}
tr:last-child td {
  border-bottom: none;
}

/* ===== ACCESSIBILITY ===== */
a:focus, button:focus, input:focus {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1120px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 900px) {
  .features-grid, .services-list, .card-container, .card-grid {
    gap: 12px;
  }
  .service-block, .features-grid div, .card {
    min-width: unset;
    padding: 21px 10px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.13rem; }
  h3 { font-size: 0.98rem; }
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
}

/* ==== PAGE-SPECIFIC & MISC ==== */
.text-section ul {
  /* Kontakt page address etc. */
  margin-bottom: 0;
  margin-left: 12px;
}
.text-section li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  font-size: 1rem;
  color: #40341A;
}
.text-section li img {
  height: 22px; width: 22px;
}

ol {
  margin-left: 24px;
}
ol li {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #506021;
}

dd a {
  color: var(--retro-blue);
  text-decoration: underline dotted #E2B24C;
}

/* ==== PRINT FRIENDLY ==== */
@media print {
  header, footer, .mobile-menu-toggle, .mobile-menu, .cookie-banner { display: none !important; }
  .container { max-width: 100vw !important; }
  main, .section {background: #fff !important;}
}
