/* RESET & NORMALIZE */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #27364a;
  background: #f4eddc;
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.01em;
  font-size: 1rem;
  font-weight: 400;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #153965;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #ffb700;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
  box-shadow: none;
}
ul, ol {
  list-style: none;
  padding-left: 0;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  font-family: inherit;
  border-bottom: 1px solid #e1d7b6;
  padding: 10px 12px;
  text-align: left;
}
th {
  background: #ffe9ad;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #153965;
  letter-spacing: 0.02em;
}

/* RETRO COLOR PALETTE */
:root {
  --retro-navy: #153965;
  --retro-sand: #f4eddc;
  --retro-cream: #faf6ef;
  --retro-brown: #907247;
  --retro-orange: #ffb700;
  --retro-rose: #ff9b71;
  --retro-green: #96be5f;
  --retro-shadow: rgba(21,57,101,0.08);
  --focus-outline: 2px dashed #ffb700;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', 'Times New Roman', serif;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.18;
  color: #153965;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
h4 { font-size: 1.2rem; margin-bottom: 8px; }

p, li, td, th {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #27364a;
}
strong { color: #153965; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.15rem; }
}

/* VINTAGE/RETRO EFFECTS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--retro-cream);
  border-radius: 24px;
  box-shadow: 0 6px 24px var(--retro-shadow);
  border: 1.5px solid #e1d7b6;
  position: relative;
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: transparent;
}
.text-section {
  align-items: center;
  text-align: center;
}

/* FLEXBOX UTILITY LAYOUTS */
.card-container, .case-study-cards, .feature-grid, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  margin-bottom: 20px;
  border-radius: 18px;
  background: #faf6ef;
  box-shadow: 0 4px 18px var(--retro-shadow);
  border: 1.5px solid #e1d7b6;
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 270px;
  max-width: 100%;
}
@media (max-width: 900px) {
  .card-container, .case-study-cards, .feature-grid, .card-grid, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .card {
    min-width: unset;
  }
}
.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) {
  .text-image-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  background: #fffbe6;
  border: 2px solid #ffe9ad;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(21,57,101,0.08);
  padding: 20px 24px;
  min-width: 270px;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #27364a;
}
.star-rating img {
  height: 1.1em;
  width: auto;
  display: inline-block;
  margin-right: 2px;
}
.testimonial-card strong {
  color: #907247;
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #faf6ef;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(21,57,101,0.06);
  padding: 18px;
}

/* NAVIGATION */
header {
  background: #fffbe6;
  box-shadow: 0 4px 24px var(--retro-shadow);
  border-bottom: 2.5px solid #ffe9ad;
  position: sticky;
  top: 0;
  z-index: 900;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 0;
}
.main-nav > a {
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
  color: #153965;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.main-nav > a.cta-btn {
  background: #ffb700;
  color: #402f13;
  font-weight: bold;
  box-shadow: 0 2px 12px rgba(255,183,0,0.08);
  border: 2px solid #ffda8d;
  padding: 8px 20px;
  font-size: 1.1rem;
  font-family: 'Roboto Slab', serif;
}
.main-nav > a:hover,
.main-nav > a:focus,
.main-nav > a.cta-btn:hover,
.main-nav > a.cta-btn:focus {
  background: #ffe9ad;
  color: #ffb700;
}
.main-nav img {
  height: 36px;
  margin-right: 12px;
  vertical-align: middle;
}

/* MOBILE NAV */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 18px;
  right: 16px;
  font-size: 2.2rem;
  background: #ffb700;
  color: #402f13;
  border-radius: 8px;
  padding: 4px 16px 4px 13px;
  border: 2.5px solid #ffe9ad;
  z-index: 1001;
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus {
  outline: var(--focus-outline);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1200;
  background: #f4eddc;
  padding: 40px 16px 24px 16px;
  transition: transform 0.35s cubic-bezier(0.33,1,0.68,1);
  transform: translateX(100%);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: #ffb700;
  color: #402f13;
  border-radius: 8px;
  font-size: 2.2rem;
  align-self: flex-end;
  margin-bottom: 20px;
  border: 2.5px solid #ffe9ad;
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 16px;
}
.mobile-nav a {
  font-family: 'Roboto Slab', serif;
  font-size: 1.2rem;
  color: #402f13;
  background: #ffe9ad;
  border-radius: 9px;
  padding: 13px 12px;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0px 2px 10px 0px #ffe9ad52;
}
.mobile-nav a:hover {
  background: #ffb700;
  color: #153965;
}

@media (max-width: 950px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* HERO & CTA */
.cta-btn {
  display: inline-block;
  border: none;
  background: #ffb700;
  color: #402f13;
  font-family: 'Roboto Slab', serif;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 12px 34px;
  border-radius: 13px;
  box-shadow: 0 4px 16px rgba(255,183,0,0.15);
  cursor: pointer;
  margin: 8px 0;
  letter-spacing: 0.02em;
  transition: background 0.2s, box-shadow 0.2s, color 0.18s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #153965;
  color: #fffbe6;
  box-shadow: 0 6px 18px rgba(21,57,101,0.13);
}

/* FEATURE & ICON LISTS */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
}
.feature-grid > div {
  background: #faf6ef;
  border: 1.5px solid #edd3a3;
  border-radius: 13px;
  box-shadow: 0 2px 12px rgba(144,114,71,0.07);
  flex: 1 1 300px;
  min-width: 220px;
  max-width: 360px;
  padding: 24px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-grid img {
  height: 40px;
  margin-bottom: 10px;
  filter: sepia(0.8) hue-rotate(-13deg) saturate(0.7);
}
.feature-grid > div:hover {
  box-shadow: 0 8px 30px rgba(255,183,0,0.17);
  transform: translateY(-2px) scale(1.03);
}
@media (max-width: 1000px) {
  .feature-grid {
    flex-direction: column;
    gap: 22px;
  }
  .feature-grid > div {
    min-width: unset;
    max-width: unset;
    width: 100%;
  }
}
.icon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
}
.icon-list img {
  height: 34px;
  padding: 7px;
  background: #ffb70022;
  border-radius: 8px;
}

/* TABLES (Preise) */
table {
  background: #fffbe6;
  border-radius: 15px;
  box-shadow: 0 2px 12px rgba(21,57,101,0.09);
  border: 2px solid #edd3a3;
  overflow: hidden;
  width: 100%;
  margin: 0 0 24px 0;
}
tr:nth-child(odd) td {
  background: #faf6ef;
}
tr:nth-child(even) td {
  background: #fffbe6;
}
td, th {
  font-size: 1rem;
  padding: 16px 10px;
}
td {
  color: #402f13;
  vertical-align: middle;
}

/* CASE STUDIES */
.case-study-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  justify-content: space-between;
}
.case-study-cards > div {
  background: #faf6ef;
  border-radius: 15px;
  border: 2px solid #ffe9ad;
  box-shadow: 0 2px 12px rgba(21,57,101,0.07);
  flex: 1 1 320px;
  padding: 20px 20px;
  min-width: 250px;
  max-width: 360px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.17s;
}
.case-study-cards > div:hover {
  box-shadow: 0 6px 22px #90724722;
  transform: translateY(-2px) scale(1.03);
}
@media (max-width: 900px) {
  .case-study-cards {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .case-study-cards > div {
    min-width: unset;
    max-width: unset;
  }
}

/* ACCORDION FAQ */
.faq-accordion h2 {
  font-size: 1.1rem;
  background: #ffb70017;
  padding: 12px 18px;
  margin: 0 0 2px 0;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  font-family: 'Roboto Slab', serif;
  color: #153965;
  transition: background 0.15s;
}
.faq-accordion h2:hover, .faq-accordion h2.active {
  background: #ffe9ad;
}
.faq-accordion div {
  background: #faf6ef;
  border-radius: 0 0 8px 8px;
  padding: 0 18px 12px 18px;
  display: none;
}
.faq-accordion div.open {
  display: block;
  animation: fadeinfaq 0.3s;
}
@keyframes fadeinfaq {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

.quick-links {
  margin: 24px 0 14px 0;
}
.quick-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}
.quick-links a {
  background: #ffe9ad;
  color: #153965;
  padding: 7px 14px;
  border-radius: 6px;
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
  transition: background 0.18s;
}
.quick-links a:hover {
  background: #ffb700;
  color: #402f13;
}

.contact-hint {
  background: #ffb70019;
  border: 1px solid #ffe9ad;
  border-radius: 9px;
  padding: 16px 16px;
  margin-top: 20px;
  text-align: center;
}

/* CONTACT PAGE */
.contact-information {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #faf6ef;
  border-radius: 13px;
  border: 1.5px solid #edd3a3;
  padding: 18px 14px;
  margin-bottom: 22px;
  box-shadow: 0 2px 10px #90724722;
  max-width: 410px;
}
.contact-information img {
  height: 34px;
  margin-bottom: 8px;
}
.location-map {
  background: #fffbe6;
  border-radius: 13px;
  border: 1px solid #ffe9ad;
  padding: 11px 17px;
  margin-bottom: 22px;
}
.office-hours {
  background: #faf6ef;
  border-radius: 10px;
  border: 1px solid #e1d7b6;
  padding: 11px 17px;
}

/* FOOTER */
footer {
  background: #FFFBF2;
  border-top: 2.5px solid #ffe9ad;
  padding: 42px 0 30px 0;
}
footer .container {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 8px;
}
footer nav a {
  color: #153965;
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
  padding: 3px 0;
  margin: 0;
  transition: color 0.18s;
}
footer nav a:hover {
  color: #ffb700;
}
footer a img {
  height: 30px;
  vertical-align: middle;
  margin-right: 14px;
}
footer > .container > .content-wrapper > a {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  color: #153965;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
footer .content-wrapper > div p, footer .content-wrapper > div a {
  color: #907247;
  font-size: 1rem;
  margin-bottom: 3px;
}

@media (max-width: 1000px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 23px;
    align-items: flex-start;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: #ffe9ad;
  color: #27364a;
  font-size: 1rem;
  box-shadow: 0 -2px 24px rgba(21,57,101,0.18);
  padding: 28px 20px 20px 20px;
  border-top: 3px double #907247;
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: center;
  animation: bannerfade 0.4s;
}
@keyframes bannerfade {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 7px;
}
.cookie-banner button {
  background: #ffb700;
  color: #153965;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  border-radius: 7px;
  padding: 8px 20px;
  border: 2px solid #ffe9ad;
  transition: background 0.16s, color 0.13s, box-shadow 0.21s;
  box-shadow: 0 1px 7px #ffe9ad33;
  margin: 0 2px;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #153965;
  color: #fffbe6;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 2050;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(21,57,101,0.08);
  justify-content: center;
  align-items: center;
  animation: overlayin 0.21s;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes overlayin {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #faf6ef;
  border-radius: 18px;
  padding: 34px 25px 27px 25px;
  box-shadow: 0 6px 38px #90724722;
  border: 2px solid #ffe9ad;
  font-size: 1rem;
  min-width: 320px;
  max-width: 95vw;
  color: #153965;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 9999;
  animation: modalin 0.32s;
}
@keyframes modalin {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.3rem;
  color: #153965;
  margin-bottom: 8px;
}
.cookie-modal .category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal .category-item {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
}
.cookie-modal .category-item input[type="checkbox"] {
  appearance: none;
  width: 19px;
  height: 19px;
  border: 1.5px solid #907247;
  border-radius: 5px;
  background: #ffe9ad;
  cursor: pointer;
  margin-right: 5px;
  position: relative;
}
.cookie-modal .category-item input[type="checkbox"]:checked {
  background: #ffb700;
}
.cookie-modal .modal-buttons {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #ffe9ad;
  border-radius: 8px;
  border: 1.7px solid #ffb700;
  color: #153965;
  font-size: 1.27rem;
  font-family: 'Roboto Slab', serif;
  width: 36px;
  height: 36px;
  text-align: center;
  line-height: 32px;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: #ffb700;
  color: #fffbe6;
}

/* COOKIES: ESSENTIAL DISABLED TOGGLE */
.cookie-modal .category-item input[disabled] {
  background: #e1d7b6;
  cursor: not-allowed;
  border-color: #b6a07b;
}

/* MISC */
ul, ol {
  margin-bottom: 15px;
  padding-left: 20px;
}
ul li, ol li {
  margin-bottom: 6px;
  position: relative;
  color: #402f13;
}
ul li:before {
  content: "\25A0 ";
  color: #907247;
  font-size: 0.85em;
  display: inline-block;
  margin-right: 4px;
}
.feature-grid ul li:before, .feature-item ul li:before {
  color: #ffb700;
}

/* HEADINGS vintage underline accent */
h1, h2, h3 {
  position: relative;
}
h1:after, h2:after {
  content: '';
  display: block;
  margin: 10px auto 0 auto;
  height: 4px;
  width: 42px;
  background: #ffb700;
  border-radius: 7px;
}
.text-section h1:after, .text-section h2:after {
  margin-left: auto;
  margin-right: auto;
}

/* Animations */
.cta-btn,
.feature-grid > div,
.card,
.testimonial-card,
.case-study-cards > div,
.content-wrapper {
  transition: box-shadow 0.18s, transform 0.18s, background 0.17s, color 0.13s;
}

/* Responsive spacing adjustments */
@media (max-width: 600px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
  .card, .testimonial-card, .case-study-cards > div {
    padding: 16px 8px;
  }
  .container {
    padding: 0 4px;
  }
}

/* Accessibility Focus */
a:focus, button:focus, .cta-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: var(--focus-outline);
  outline-offset: 1px;
}

/* Hide scrollbar in modal overlay */
.cookie-modal-overlay::-webkit-scrollbar {
  display: none;
}
/* End of CSS */
