/* --------------------------------------------------
   CSS RESET & BASELINE 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, font, 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 {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
  min-height: 100%;
}
body {
  background: #F7FAFC;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: #2A3A55;
  min-height: 100vh;
  line-height: 1.6;
}
img, picture, video, canvas, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol { list-style: none; }
input, button, textarea, select {
  font: inherit;
  outline: none;
}
a {
  color: #B71C1C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFD700;
}
b, strong {
  font-weight: bold;
}

/* --------------------------------------------------
   CUSTOM FONTS
   (Google Fonts assumed; fallback local if installed)
-------------------------------------------------- */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 700;
  src: local('Merriweather Bold'), local('Merriweather-Bold'), url('https://fonts.gstatic.com/s/merriweather/v28/u-4n0qyriQwlOrhSvowK_l52xwNZWMf_.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans Regular'), local('OpenSans-Regular'), url('https://fonts.gstatic.com/s/opensans/v34/mem8YaGs126MiZpBA-U1U1w.woff2') format('woff2');
  font-display: swap;
}

/* --------------------------------------------------
   BRAND TOKEN COLORS
-------------------------------------------------- */
:root {
  --primary: #2A3A55;
  --secondary: #B71C1C;
  --accent: #FFD700;
  --bg: #F7FAFC;
  --text-main: #222d40;
  --text-invert: #fff;
  --card-bg: #fff;
  --shadow: 0 2px 12px rgba(42,58,85,0.07), 0 1.5px 6px rgba(42,58,85,0.09);
  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-large: 30px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* --------------------------------------------------
   GEOMETRIC STRUCTURED TYPOGRAPHY
-------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.12;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  text-transform: none;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
h4 { font-size: 1.25rem; }
.body-text, p {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

/* --------------------------------------------------
   GENERAL CONTAINERS & SECTIONS
-------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-large);
  background: var(--card-bg);
  box-shadow: var(--shadow);
}
@media (max-width: 768px) {
  .section {
    padding: 24px 10px;
    margin-bottom: 40px;
    border-radius: 0;
    box-shadow: none;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* --------------------------------------------------
   HEADER & NAVIGATION
-------------------------------------------------- */
header {
  background: var(--primary);
  color: var(--text-invert);
  width: 100%;
  position: relative;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(42,58,85,0.13);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
header img {
  height: 40px;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav a {
  font-family: 'Merriweather', serif;
  font-size: 1.05rem;
  color: var(--text-invert);
  padding: 2px 4px;
  border-radius: 5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background var(--transition), color var(--transition);
}
nav a.cta-btn {
  background: var(--accent);
  color: var(--primary);
  padding: 10px 32px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.065em;
  margin-left: 24px;
  box-shadow: 0 4px 12px rgba(42,58,85,0.10);
  border: none;
  position: relative;
  text-transform: uppercase;
}
nav a.cta-btn:hover, nav a.cta-btn:focus {
  background: var(--secondary);
  color: var(--accent);
  box-shadow: 0 8px 18px rgba(183,28,28,0.14);
}
nav a:hover, nav a:focus {
  background: var(--accent);
  color: var(--primary);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2.2rem;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: rgba(255,215,0,0.13);
}
@media (max-width: 990px) {
  header .container {
    height: 60px;
  }
  nav {
    gap: 16px;
  }
  nav a.cta-btn {
    padding: 8px 22px;
    margin-left: 8px;
  }
  header img {
    height: 30px;
  }
}
@media (max-width: 820px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --------------------------------------------------
   MOBILE MENU OVERLAY
-------------------------------------------------- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(42,58,85, 0.98);
  z-index: 3000;
  width: 100vw;
  height: 100vh;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.53,0,.32,1);
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  background: transparent;
  color: var(--accent);
  font-size: 2.3rem;
  border: none;
  align-self: flex-end;
  margin: 18px 30px 10px 0;
  cursor: pointer;
  border-radius: 6px;
  transition: background var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,215,0,0.12);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 38px 12px 38px;
  width: 100%;
  gap: 10px;
}
.mobile-nav a {
  font-family: 'Merriweather', serif;
  color: var(--accent);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  padding: 12px 0 6px 2px;
  width: 100%;
  border-radius: 2px;
  transition: color 0.18s, background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: rgba(255,255,255,0.03);
  font-weight: 700;
}

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

/* --------------------------------------------------
   HERO SECTION
-------------------------------------------------- */
.hero {
  background: linear-gradient(110deg, #f7fafd 70%, #FFD70008 100%);
  border-radius: var(--radius-large);
  margin-bottom: 46px;
  padding: 50px 0 40px 0;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.hero h1 {
  color: var(--secondary);
  font-size: 2.4rem;
  margin-bottom: 10px;
}
.hero p {
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.hero .cta-btn {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 3px 12px rgba(183,28,28,0.08);
}
@media (max-width: 900px) {
  .hero {
    padding: 32px 0 16px 0;
    border-radius: 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

/* --------------------------------------------------
   CTAs & BUTTONS
-------------------------------------------------- */
.cta-btn, button.cta-btn {
  display: inline-block;
  padding: 12px 34px;
  background: var(--primary);
  color: #fff;
  font-family: 'Merriweather', serif;
  border: none;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform 0.16s;
  box-shadow: var(--shadow);
  text-transform: uppercase;
  position: relative;
  margin-top: 6px;
}
.cta-btn:hover, .cta-btn:focus, button.cta-btn:hover, button.cta-btn:focus {
  background: var(--secondary);
  color: var(--accent);
  box-shadow: 0 8px 26px rgba(42,58,85,0.20);
  transform: translateY(-3px) scale(1.04) skew(-2deg);
}
button[disabled], .cta-btn[disabled] { 
  opacity: .44; 
  cursor: not-allowed;
}

/* --------------------------------------------------
   FLEX SPACING & LAYOUT PATTERNS
-------------------------------------------------- */
.card-container, .feature-grid, .service-list, .service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .service-cards > div, .service-list > div, .feature-grid > div {
  margin-bottom: 20px;
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 24px 20px 18px 20px;
  flex: 1 1 270px;
  min-width: 250px;
  max-width: 325px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 2.5px solid #e9edf3;
  /* For geometric accent: subtle accent border */
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.card:hover, .service-cards > div:hover, .feature-grid > div:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(42,58,85,0.17);
  transform: translateY(-4px) scale(1.025) skew(-1deg, 0deg);
}

.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-grid {
    flex-direction: column;
    gap: 10px;
  }
  .card-container, .feature-grid, .service-list, .service-cards {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}


/* --------------------------------------------------
   FEATURE & SERVICE ITEMS
-------------------------------------------------- */
.feature-item, .feature-grid > div, .service-list > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
  min-width: 220px;
  max-width: 320px;
}
.feature-grid img, .service-list img {
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
}
.feature-grid h3, .service-list h3 {
  font-size: 1.23rem;
  color: var(--secondary);
  margin: 4px 0 6px 0;
}

/* --------------------------------------------------
   TEXT SECTION
-------------------------------------------------- */
.text-section, .tip-box {
  background: #f2f5f8;
  border-radius: 14px;
  padding: 22px 22px 22px 32px;
  margin-bottom: 16px;
  color: #222d40;
  box-shadow: 0 1px 4px rgba(42,58,85,.07);
  font-size: 1.04rem;
  position: relative;
  overflow: hidden;
}
.text-section strong, .tip-box strong {
  color: var(--secondary);
}
.text-section ul, .tip-box ul {
  padding-left: 0;
  margin: 0 0 0 0;
}
.text-section li, .tip-box li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: 8px;
}
.text-section li img {
  width: 28px;
  height: 28px;
}

/* --------------------------------------------------
   TESTIMONIALS
-------------------------------------------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(42,58,85,0.10);
  margin-bottom: 24px;
  border-left: 6px solid var(--accent);
  color: var(--primary);
  font-size: 1.07rem;
}
.testimonial-card p {
  color: #1b2340;
  margin: 0;
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  line-height: 1.5;
}
.testimonial-card b {
  color: var(--secondary);
}
@media (max-width: 700px) {
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* --------------------------------------------------
   FAQ & LIST ITEMS
-------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-list > div {
  background: #fff;
  border-radius: 10px;
  padding: 14px 18px 14px 22px;
  box-shadow: var(--shadow);
  border: 2px solid #f0e9da;
}
.faq-list h3 {
  font-size: 1.18rem;
  color: var(--primary);
  margin-bottom: 3px;
}
.faq-list p {
  font-size: 1rem;
}
.tip-box {
  border-left: 5px solid var(--secondary);
  background: #fbeee7;
  color: var(--primary);
  margin-top: 12px;
  margin-bottom: 0;
}
.tip-box a { color: var(--secondary); font-weight: bold; }
.tip-box a:hover { color: var(--accent); }

/* --------------------------------------------------
   FOOTER & LEGAL
-------------------------------------------------- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 54px 0 40px 0;
  position: relative;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 38px;
  justify-content: space-between;
}
.footer-brand {
  min-width: 200px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.footer-brand img {
  height: 38px;
  margin-bottom: 10px;
}
.footer-brand p {
  font-size: 1.08rem;
  color: #fff;
  opacity: 0.92;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.94;
  border-radius: 3px;
  padding: 3px 5px;
  transition: background var(--transition), color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}
.footer-contact p {
  font-size: 0.97rem;
  color: #e3e6ef;
  opacity: 0.93;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  footer { padding: 36px 0 22px 0; }
  .footer-brand img {
    height: 26px;
  }
}

/* --------------------------------------------------
   COOKIE CONSENT BANNER
-------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--primary);
  color: var(--accent);
  width: 100vw;
  z-index: 5000;
  box-shadow: 0 -2px 16px rgba(42,58,85,0.11);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
  justify-content: center;
  padding: 20px 18px 22px 18px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: transform 0.45s cubic-bezier(.51,0,.41,1), opacity 0.25s; 
}
.cookie-banner.hide { 
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 430px;
}
.cookie-btn, .cookie-btn-secondary {
  font-family: 'Merriweather', serif;
  font-size: 1.02rem;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 7px;
  margin-left: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  min-width: 110px;
  text-align: center;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--secondary);
  color: var(--accent);
}
.cookie-btn-secondary {
  background: rgba(255,255,255,0.22);
  color: var(--accent);
  border: 2px solid var(--accent);
  margin-left: 10px;
}
.cookie-btn-secondary:hover, .cookie-btn-secondary:focus {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--secondary);
}
@media (max-width: 660px) {
  .cookie-banner {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    padding: 15px 5vw 18px 5vw;
    font-size: 0.97rem;
  }
  .cookie-btn, .cookie-btn-secondary {
    margin-left: 0;
    margin-right: 0;
    margin-top: 5px;
  }
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(42,58,85,0.21);
  z-index: 5500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.35s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  color: var(--primary);
  border-radius: 19px;
  box-shadow: 0 6px 40px rgba(42,58,85,0.15);
  padding: 34px 34px 28px 34px;
  max-width: 375px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: modalUp 0.38s cubic-bezier(.5,0,.27,1);
}
@keyframes modalUp {
  0% { transform: translateY(50px) scale(.93); opacity: 0; }
  85% { transform: translateY(-5px) scale(1.02); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-content h2 {
  font-size: 1.5rem;
  color: var(--secondary);
}
.cookie-modal-content .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  background: #f9f9ff;
  border-radius: 10px;
  padding: 10px 0 10px 16px;
  font-size: 1.05rem;
}
.cookie-modal-content input[type="checkbox"] {
  accent-color: var(--accent);
  width: 22px;
  height: 22px;
}
.cookie-modal-content .category-label {
  font-weight: 600;
  color: var(--primary);
}
.cookie-modal-content .is-essential {
  color: #8ca5d3;
  font-size: 0.95rem;
}
.cookie-modal-content .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
}
.cookie-modal-content button {
  font-family: 'Merriweather', serif;
  font-size: 1.01rem;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 7px;
  padding: 10px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal-content button:hover, .cookie-modal-content button:focus {
  background: var(--secondary);
  color: var(--accent);
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 1.5rem;
  background: transparent;
  color: var(--secondary);
  border: none;
  cursor: pointer;
  border-radius: 4px;
  padding: 2px 6px;
  transition: background 0.17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #ffecc4;
}

/* --------------------------------------------------
   RESPONSIVE TYPOGRAPHY & SPACING
-------------------------------------------------- */
@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.10rem; }
  body { font-size: 15px; }
  .card, .service-cards > div, .service-list > div {
    min-width: 92vw;
    max-width: 98vw;
    padding: 16px 8px 16px 12px;
  }
}

/* --------------------------------------------------
   MICRO-INTERACTIONS & ACCESSIBILITY
-------------------------------------------------- */
*:focus {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}
[role="button"], button, .cta-btn {
  &:focus-visible {
    outline: 2.5px solid var(--accent);
    outline-offset: 2.5px;
  }
  &:active {
    filter: brightness(0.98);
  }
}

/* --------------------------------------------------
   GEOMETRIC VISUAL ELEMENTS (BORDERS/ACCENTS)
-------------------------------------------------- */
.card::before, .feature-grid > div::before, .service-cards > div::before {
  content: '';
  display: block;
  width: 38px;
  height: 7px;
  background: var(--accent);
  margin-bottom: 15px;
  border-radius: 4px 20px 4px 20px;
  opacity: 0.21;
}

.card > h3, .service-cards > div > h3, .feature-grid > div > h3 {
  font-family: 'Merriweather', serif;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--primary);
  font-size: 1.18rem;
  margin-top: 0;
}

/* --------------------------------------------------
   FORMS (Kontaktformular etc.)
-------------------------------------------------- */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 18px 0;
}
input, textarea, select {
  border-radius: 8px;
  border: 2px solid #e4e9f3;
  padding: 12px 10px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.22s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
}

/* --------------------------------------------------
   UTILITIES
-------------------------------------------------- */
.d-none { display: none !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.m-0 { margin: 0 !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.pt-16 { padding-top: 16px !important; }

/* --------------------------------------------------
   OVERRIDE DEFAULTS FOR DARK BACKGROUNDS (e.g., footer)
-------------------------------------------------- */
footer h2, footer h3, footer strong { color: #fff; }

/* --------------------------------------------------
   END OF STYLE.CSS
-------------------------------------------------- */
