/* ================= 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, main, section, article, aside, nav, footer, header, menu, figure, figcaption {
  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.5;
  background: #F6F8FC;
  color: #1D212B;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font: inherit;
  background: none;
  border: none;
  outline: none;
}
ul, ol {
  list-style: inside;
}
a {
  text-decoration: none;
  color: #194487;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E94F37;
}

/* ================= BRAND VARIABLES =================== */
:root {
  --primary: #194487;
  --secondary: #E94F37;
  --accent: #F6F8FC;
  --text: #1D212B;
  --text-muted: #5A6072;
  --surface: #fff;
  --shadow: 0 6px 24px rgba(25, 68, 135, 0.08), 0 1.5px 4px rgba(25,68,135,0.04);
  --radius: 14px;
  --font-sans: 'Roboto', 'Arial', sans-serif;
  --font-serif: 'Playfair Display', Times, 'Times New Roman', serif;
  --font-display: 'Oswald', 'Playfair Display', serif;
  --h1: 2.2rem;
  --h2: 1.75rem;
  --h3: 1.32rem;
  --p: 1rem;
  --small: 0.98rem;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
}

@media (min-width: 992px) {
  :root {
    --h1: 3rem;
    --h2: 2.4rem;
    --h3: 1.5rem;
    --p: 1.13rem;
  }
}

/* ================= TYPOGRAPHY =================== */
body, input, textarea, select {
  font-family: var(--font-serif), Georgia, 'Times New Roman', serif;
  font-size: var(--p);
  letter-spacing: 0.01em;
  color: var(--text);
}
h1, h2, h3, h4 {
  font-family: var(--font-display), var(--font-serif);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.002em;
  margin-bottom: 14px;
}
h1 {
  font-size: var(--h1);
  margin-bottom: var(--spacing-sm);
}
h2 {
  font-size: var(--h2);
  margin-bottom: var(--spacing-sm);
}
h3 {
  font-size: var(--h3);
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}
p, ul, ol, li, span, label {
  font-size: var(--p);
  color: var(--text);
  font-family: var(--font-serif), serif;
  margin-bottom: var(--spacing-xs);
}
ul, ol {
  padding-left: 20px;
}
blockquote {
  font-style: italic;
  color: var(--primary);
  margin: var(--spacing-md) 0;
}
strong {
  font-weight: 700;
  color: var(--primary);
}

/* ================= CONTAINER =================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
}

/* ================= LAYOUT SECTIONS (SPACING) =================== */
main {
  padding-bottom: 92px; /* Enough for cookie banner */
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 992px) {
  .section {
    padding: 32px 10px;
  }
}

/* ================= FLEXBOX PATTERNS =================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--spacing-md);
  min-width: 280px;
  flex: 1 1 330px;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 5px 24px rgba(25, 68, 135, 0.16);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(25,68,135,0.08);
  margin-bottom: 20px;
  min-width: 260px;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 26px rgba(25,68,135,0.13);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}
.feature-grid > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 340px;
  padding: 30px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: box-shadow 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 34px rgba(25,68,135,0.17);
}

/* Content alignment for .text-section */
.text-section {
  margin-top: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ================= HEADER & NAV =================== */
header {
  background: #fff;
  box-shadow: 0 1px 10px rgba(25,68,135,0.06);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: var(--font-display), serif;
  font-weight: 500;
  font-size: 1.09rem;
  color: var(--primary);
  padding: 6px 0 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}
.cta-btn {
  background: var(--primary);
  color: #fff !important;
  font-family: var(--font-display), serif;
  font-weight: 600;
  border-radius: 26px;
  padding: 10px 28px;
  font-size: 1.15rem;
  margin-left: 12px;
  box-shadow: 0 3px 12px rgba(25,68,135,0.08);
  border: none;
  transition: background 0.18s, box-shadow 0.2s, color 0.2s;
  cursor: pointer;
  text-align: center;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(233, 79, 55, 0.10);
}

/* Hamburger for mobile */
.mobile-menu-toggle {
  background: none;
  font-size: 2.1rem;
  border-radius: 6px;
  padding: 6px 12px;
  color: var(--primary);
  cursor: pointer;
  margin-left: 15px;
  display: none;
  z-index: 1001;
  border: 1px solid #D8DFEB;
  transition: background .17s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #EDF2FC;
}

/* Mobile menu layout */
.mobile-menu {
  position: fixed;
  z-index: 1060;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  transform: translateX(-110vw);
  transition: transform 0.35s cubic-bezier(.7,.23,.34,1.36);
  box-shadow: 4px 0 24px rgba(25,68,135,0.12);
  display: flex;
  flex-direction: column;
  padding-top: 36px;
  will-change: transform;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--primary);
  font-size: 2.3rem;
  font-weight: bold;
  line-height: 1.2;
  margin-left: 18px;
  margin-bottom: 24px;
  cursor: pointer;
  align-self: flex-start;
  border-radius: 5px;
  border: 1px solid #D8DFEB;
  padding: 4px 12px;
  transition: background .17s;
}
.mobile-menu-close:active, .mobile-menu-close:focus {
  background: #EDF2FC;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 28px;
}
.mobile-nav a {
  color: var(--primary);
  font-size: 1.24rem;
  font-family: var(--font-display), serif;
  font-weight: 500;
  padding: 11px 0;
  border-bottom: 1px solid #F2F5FA;
  transition: color 0.14s;
  border-radius: 0px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: #fafafa;
}
@media (max-width: 940px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 941px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ================= MAIN CONTENT =================== */
main {
  width: 100%;
  background: var(--accent);
}
.content-wrapper {
  max-width: 810px;
  margin: 0 auto;
}

/* ================= BUTTONS & LINK BUTTONS =================== */
button, .button, input[type="submit"] {
  font-family: var(--font-display), serif;
  font-weight: 600;
  border-radius: 22px;
  font-size: 1rem;
  padding: 10px 22px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  border: none;
  outline: none;
  box-shadow: 0 1.5px 10px rgba(25,68,135,0.06);
  transition: background 0.17s, box-shadow 0.16s, color 0.12s;
}
button:hover, .button:hover, input[type="submit"]:hover,
button:focus, .button:focus, input[type="submit"]:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 5px 18px rgba(233,79,55,0.08);
}

/* Inline links in content */
.content-wrapper a:not(.cta-btn):not(.button) {
  text-decoration: underline;
  color: var(--primary);
  transition: color 0.19s;
}
.content-wrapper a:not(.cta-btn):not(.button):hover,
.content-wrapper a:not(.cta-btn):not(.button):focus {
  color: var(--secondary);
}

/* Icon styling in features */
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  filter: grayscale(25%);
  opacity: 0.93;
}

/* ================== TESTIMONIALS =================== */
.testimonial-card {
  background: #fff;
  color: #1D212B;
  border-left: 4px solid var(--primary);
  font-family: var(--font-serif), serif;
  box-shadow: 0 2px 12px rgba(25,68,135,0.08);
}
.testimonial-card p {
  font-size: 1.05rem;
  color: var(--text);
}
.testimonial-card span {
  color: var(--secondary);
  font-weight: 600;
  font-size: 1.01rem;
  font-family: var(--font-display), serif;
}

/* ================= CARDS =================== */
.card {
  border: 1px solid #E9ECF3;
}

/* ================= FOOTER =================== */
footer {
  background: #fff;
  border-top: 1px solid #EEF3FC;
  padding: 36px 0 14px 0;
  margin-top: 42px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
footer nav {
  display: flex;
  gap: 16px;
  margin: 18px 0 10px 0;
  font-size: 1rem;
}
footer nav a {
  color: var(--text-muted);
  font-size: 1rem;
  font-family: var(--font-sans);
  border-bottom: 1px solid transparent;
  padding: 2px 1px 2px 1px;
  transition: border 0.16s, color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
}
footer img {
  width: 48px;
  height: auto;
  margin-bottom: 2px;
}
footer p {
  font-family: var(--font-serif), serif;
  font-size: 1.01rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ================= COOKIE CONSENT BANNER =================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1300;
  width: 100vw;
  background: #F6F8FC;
  color: var(--text);
  border-top: 1.5px solid #D7DEEB;
  box-shadow: 0 -2px 22px rgba(25, 68, 135, 0.09);
  padding: 24px 18px 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: cookie-fade-in 0.7s cubic-bezier(.4,0,.6,1);
}
@keyframes cookie-fade-in {
  0% { opacity: 0; transform: translateY(70px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  margin-bottom: 0;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-serif), serif;
  font-size: 1.01rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.cookie-btn {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display), serif;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  margin: 0 2px;
  box-shadow: 0 1.5px 6px rgba(25,68,135,0.07);
  transition: background 0.19s, color 0.16s;
}
.cookie-btn.secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid #D7DEEB;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #EDF2FC;
  color: var(--primary);
}

/* Cookie modal (preferences) */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 1310;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(25,68,135,0.36);
  display: none;
}
.cookie-modal-backdrop.active {
  display: block;
  animation: fade-in .31s cubic-bezier(.4,0,.6,1);
}
@keyframes fade-in {
  from { opacity:0; }
  to   { opacity:1; }
}
.cookie-modal {
  position: fixed;
  z-index: 1350;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 120vh);
  background: #fff;
  border-radius: 22px 22px 0 0;
  width: 96vw;
  max-width: 410px;
  box-shadow: 0 8px 40px rgba(25,68,135,0.12);
  padding: 34px 28px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.36s cubic-bezier(.6,.09,.37,1.44);
}
.cookie-modal.active {
  transform: translate(-50%, 0);
}
.cookie-modal h2 {
  font-size: 1.32rem;
  margin-bottom: 8px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category label {
  font-size: 1rem;
  font-family: var(--font-serif), serif;
  color: var(--primary);
  font-weight: 500;
}
.cookie-category input[type=checkbox] {
  width: 19px;
  height: 19px;
  accent-color: var(--primary);
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal-close-btn {
  position: absolute;
  top: 9px;
  right: 19px;
  background: none;
  color: var(--primary);
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
  padding: 3px 10px;
  font-weight: 600;
  border-radius: 5px;
  transition: background .17s;
}
.cookie-modal-close-btn:hover {
  background: #EDF2FC;
}

/* ================= RESPONSIVE LAYOUTS =================== */
@media (max-width: 768px) {
  .container {
    padding: 0 7px;
  }
  header .container {
    padding: 0 5px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  footer .container {
    flex-direction: column;
    gap: 9px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
  }
  .section {
    padding: 28px 5px;
    margin-bottom: 36px;
  }
}

/* ========== FORM FIELDS (for Kontakt/Feedback forms) =========== */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  border-radius: 10px;
  border: 1.2px solid #CED6EB;
  background: #fcfcfc;
  padding: 10px 15px;
  width: 100%;
  font-size: 1rem;
  margin-bottom: 16px;
  box-sizing: border-box;
  transition: border-color 0.17s;
}
input:focus, textarea:focus {
  border-color: var(--primary);
}
label {
  font-size: 1rem;
  color: var(--primary);
  font-family: var(--font-display), serif;
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

/* ========== UTILITIES & HELPERS ========== */
.text-muted {
  color: var(--text-muted);
  font-size: 0.97rem;
}
.align-center {
  text-align: center;
}
.align-right {
  text-align: right;
}
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }
.gap-4 { gap: var(--spacing-lg); }
.flex {
  display: flex;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}

/* ========== SCROLLBAR DESIGN ========== */
::-webkit-scrollbar {
  width: 11px;
  background: #E8EFFC;
  border-radius: 12px;
}
::-webkit-scrollbar-thumb {
  background: #D7DEEB;
  border-radius: 12px;
  border: 3px solid #F6F8FC;
}
::-webkit-scrollbar-thumb:hover {
  background: #BCCFEB;
}

/* ================= MICRO-INTERACTIONS =============== */
.card, .testimonial-card, .feature-grid > div {
  transition: box-shadow 0.18s, transform 0.13s;
}
.card:hover, .testimonial-card:hover, .feature-grid > div:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 9px 32px rgba(25,68,135,0.12);
}
.cta-btn, .cookie-btn, button, .button {
  transition: background 0.19s, color 0.16s, box-shadow 0.17s, transform 0.13s;
}
.cta-btn:active, .cookie-btn:active, button:active, .button:active {
  transform: scale(0.98);
}
input, textarea {
  transition: border-color 0.13s;
}

/* === Z-INDEX for overlays, banners, header === */
header { z-index: 900; position: relative; }
.mobile-menu { z-index: 1060; }
.cookie-banner { z-index: 1300; }
.cookie-modal-backdrop { z-index: 1310; }
.cookie-modal { z-index: 1350; }

/* ================= PRINT STYLES =================== */
@media print {
  header, footer, .cookie-banner, .mobile-menu, .cookie-modal, .cookie-modal-backdrop {
    display: none !important;
  }
  main, .section, body {
    background: #fff !important;
    box-shadow: none !important;
    color: #222 !important;
  }
}
