/* ===========================
   RESET & BASE STYLES
   =========================== */
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 {
  font-family: 'Open Sans', 'Georgia', Times, serif;
  font-size: 16px;
  background: #F1F3F8;
  color: #18202c;
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border: none;
}
a {
  color: #123A5A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B05F22;
  text-decoration: underline;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
strong {
  font-weight: bold;
}
em {
  font-style: italic;
}
section {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 22px 0 rgba(18,58,90,0.05);
  margin-bottom: 60px;
  padding: 40px 20px;
  position: relative;
}
@media (max-width: 768px) {
  section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
}
.container {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===========================
   TYPOGRAPHY & HEADINGS
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Georgia', Times, serif;
  color: #123A5A;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.2;
}
h2 {
  font-size: 1.875rem;
  margin-bottom: 14px;
  line-height: 1.22;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  line-height: 1.24;
}
h4 { font-size: 1.125rem; margin-bottom: 8px; }
h5, h6 { font-size: 1rem; }
p, li, blockquote, cite {
  font-size: 1rem;
}
p {
  margin-bottom: 16px;
}
blockquote {
  border-left: 3px solid #B05F22;
  padding-left: 18px;
  font-style: italic;
  background: #F8F5F1;
  color: #2A3650;
  margin-bottom: 8px;
}
cite {
  font-style: normal;
  color: #7D6E57;
  letter-spacing: 0.02em;
  display: block;
  margin-top: 2px;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */
header {
  width: 100%;
  background: #123A5A;
  color: #fff;
  box-shadow: 0 2px 10px 0 rgba(18,58,90,0.03);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 0;
  padding-bottom: 0;
}
header img {
  height: 50px;
  width: auto;
  margin-right: 24px;
  margin-bottom: 0;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.063rem;
  color: #fff;
  padding: 8px 4px;
  border-radius: 3px;
  transition: background 0.15s, color 0.18s;
  margin-bottom: 0;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F1F3F8;
  color: #123A5A;
}
header .button.primary {
  margin-left: auto;
  font-size: 1rem;
}
@media (max-width: 1024px) {
  .main-nav {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  header .container {
    gap: 12px;
  }
  .main-nav {
    display: none;
  }
  header .button.primary {
    display: none;
  }
}

/* ===========================
   MOBILE NAVIGATION
   =========================== */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
  margin-left: 8px;
  z-index: 120;
}
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 24px;
    top: 13px;
    padding: 8px 14px;
    border-radius: 6px;
    background: #123A5A;
    box-shadow: 0 2px 10px 0 rgba(18,58,90,0.07);
    transition: background 0.15s;
  }
  .mobile-menu-toggle:active, .mobile-menu-toggle:focus {
    background: #0d2940;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  color: #123A5A;
  z-index: 2000;
  transform: translateX(-105vw);
  transition: transform 0.45s cubic-bezier(0.77,0,0.175,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
  box-shadow: 0 10px 36px 0 rgba(18,58,90,0.14);
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  font-size: 2.2rem;
  background: none;
  color: #123A5A;
  border: none;
  align-self: flex-end;
  padding: 18px 28px 10px 0;
  margin-bottom: 18px;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #B05F22;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100vw;
  align-items: flex-start;
  padding-left: 38px;
}
.mobile-nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.22rem;
  color: #123A5A;
  border-radius: 5px;
  padding: 10px 10px;
  transition: background 0.15s, color 0.20s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F1F3F8;
  color: #B05F22;
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===========================
   BUTTONS & BADGES
   =========================== */
.button {
  display: inline-block;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.06rem;
  background: #B05F22;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  margin-top: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: 0 2px 6px 0 rgba(44,56,83,0.06);
  transition: background 0.18s, color 0.21s, box-shadow 0.18s;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
}
.button.primary {
  background: #123A5A;
  color: #fff;
}
.button.primary:hover, .button.primary:focus {
  background: #B05F22;
  color: #fff;
  box-shadow: 0 6px 24px 0 rgba(176,95,34,0.11);
  text-decoration: none;
}
.button:hover, .button:focus {
  background: #944b18;
  color: #fff;
  box-shadow: 0 6px 16px 0 rgba(18,58,90,0.09);
  text-decoration: none;
}
.badge {
  font-size: 0.93rem;
  padding: 3.5px 12px;
  background: #F1F3F8;
  color: #123A5A;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.025em;
  margin-left: 12px;
  vertical-align: middle;
  display: inline-block;
}

/* ===========================
   FLEX LAYOUTS - CARDS, GRIDS
   =========================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 16px 0 rgba(18,58,90,0.06);
  padding: 28px 24px 22px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.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;
    gap: 20px;
    align-items: flex-start;
  }
}

/* ===========================
   TESTIMONIALS & FEATURE CARDS
   =========================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 13px rgba(44,56,83,0.07);
  margin-bottom: 20px;
  border-left: 4px solid #123A5A;
  color: #1b222c;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 28px rgba(44,56,83,0.14);
}
.testimonial-card blockquote {
  font-size: 1.10rem;
  color: #18202c;
  border: none;
  background: transparent;
  padding-left: 0;
}
.testimonial-card cite {
  color: #7D6E57;
  font-size: 1rem;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.feature-grid > div {
  background: #F1F3F8;
  border-radius: 10px;
  padding: 14px 27px;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.04rem;
  color: #123A5A;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===========================
   FAQ ACCORDION
   =========================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item h2 {
  font-size: 1.22rem;
  color: #123A5A;
  margin: 0 0 8px 0;
}
.faq-item p {
  color: #1b222c;
}

/* ===========================
   SERVICES & TABLES
   =========================== */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-card {
  background: #F1F3F8;
  border-radius: 12px;
  padding: 25px 20px 15px 20px;
  box-shadow: 0 2px 9px rgba(44,56,83,0.06);
  min-width: 250px;
  max-width: 360px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  border-left: 5px solid #B05F22;
  transition: box-shadow 0.16s, border-color 0.14s;
}
.service-card:hover, .service-card:focus {
  box-shadow: 0 4px 19px rgba(176,95,34,0.11);
  border-color: #123A5A;
}
@media (max-width: 880px) {
  .services-list {
    flex-direction: column;
    gap: 18px;
  }
  .service-card {
    max-width: 100%;
    min-width: 0;
  }
}
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 1px 7px rgba(44,56,83,0.07);
  overflow: hidden;
}
thead {
  background: #123A5A;
  color: #fff;
  font-family: 'Montserrat', Georgia, serif;
}
th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e9ed;
  font-size: 1rem;
}
th:last-child, td:last-child {
  text-align: left;
}
tbody tr:hover {
  background: #F1F3F8;
}
@media (max-width: 700px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }
  th, td {
    padding-left: 2px;
    padding-right: 2px;
  }
  thead {
    display: none;
  }
  tbody tr {
    margin-bottom: 18px;
    box-shadow: 0 1px 6px rgba(44,56,83,.06);
    border-radius: 8px;
    background: #fff;
  }
  tbody td {
    border-bottom: none;
    display: flex;
    gap: 6px;
    justify-content: flex-start;
  }
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: #123A5A;
  color: #fff;
  padding: 40px 0 26px 0;
  box-shadow: 0 -2px 16px 0 rgba(18,58,90,0.03);
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #F1F3F8;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  padding: 3px 7px;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #B05F22;
}
.footer-contact p {
  color: #cbd5e1;
  font-size: 0.96rem;
  line-height: 1.65;
}
@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* ===========================
   SUCCESS MESSAGES
   =========================== */
.success-message {
  border: 1.8px solid #B05F22;
  background: #F8F5F1;
  color: #123A5A;
  border-radius: 11px;
  padding: 22px 24px;
  text-align: center;
  box-shadow: 0 2px 14px rgba(176,95,34,0.08);
}
.success-message h2 {
  color: #B05F22;
  margin-bottom: 8px;
}
.success-message a.button {
  margin-top: 15px;
  margin-bottom: 0;
}

/* ===========================
   COOKIE CONSENT BANNER
   =========================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: #1b222c;
  box-shadow: 0 -2px 16px rgba(18,58,90,0.11);
  z-index: 2500;
  padding: 22px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 1rem;
  transition: transform 0.45s cubic-bezier(0.77,0,0.175,1);
}
.cookie-banner.hide {
  transform: translateY(140%);
}
.cookie-banner__text {
  max-width: 640px;
  flex: 1;
}
.cookie-banner__actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn {
  font-size: 1rem;
  font-family: 'Montserrat', Georgia, serif;
  padding: 9px 22px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.18s;
  font-weight: 600;
}
.cookie-btn.accept {
  background: #123A5A;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #B05F22;
  color: #fff;
}
.cookie-btn.reject {
  background: #F1F3F8;
  color: #123A5A;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #B05F22;
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: #123A5A;
  border: 1.2px solid #B05F22;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #B05F22;
  color: #fff;
}
@media (max-width:650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 5px;
  }
  .cookie-banner__actions {
    gap: 10px;
  }
}

.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18,58,90,0.38);
  z-index: 2600;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.35s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal__dialog {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 13px 44px 0 rgba(18,58,90,0.14);
  min-width: 320px;
  max-width: 94vw;
  padding: 34px 28px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: 'Open Sans', 'Georgia', serif;
  color: #18202c;
}
.cookie-modal__header {
  font-family: 'Montserrat', Georgia, serif;
  color: #123A5A;
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cookie-category label {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
.cookie-category input[type="checkbox"] {
  accent-color: #123A5A;
  width: 19px;
  height: 19px;
  margin-right: 6px;
}
.cookie-category.essential label {
  color: #7D6E57;
  opacity: 0.89;
}
.cookie-modal__actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal__close {
  position: absolute;
  top: 12px;
  right: 22px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #B05F22;
  cursor: pointer;
  z-index: 2630;
}
@media (max-width:450px) {
  .cookie-modal__dialog {
    min-width: 0;
    padding: 17px 4px 14px 7px;
  }
}

/* ===========================
   UTILITIES & SPACING
   =========================== */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }

.flex {
  display: flex;
}
.flex-center {
  align-items: center;
  justify-content: center;
}
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-20 { gap: 20px; }

/* ===========================
   RESPONSIVE MEDIA QUERIES
   =========================== */
@media (max-width: 1100px) {
  .container { max-width: 98vw; }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  h2 {
    font-size: 1.33rem;
  }
  .feature-grid, .card-container, .services-list {
    flex-direction: column;
    gap: 15px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width:500px) {
  h1 { font-size: 1.27rem; }
  h2 { font-size: 1.09rem; }
}

/* ===========================
   SPECIAL ELEMENTS
   =========================== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Kontakt Icons (kontakt.html) */
ul li img {
  vertical-align: middle;
  height: 24px;
  width: 24px;
  margin-right: 9px;
}

/* Accessibility: Focus Outline */
a:focus, button:focus, .button:focus, .cookie-btn:focus {
  outline: 2px solid #B05F22;
  outline-offset: 2px;
}

/* Hide print-only images (if any) */
@media print {
  nav, header, footer, .mobile-menu, .cookie-banner, .cookie-modal {
    display: none !important;
  }
}

/* ===========================
   END OF CSS
   =========================== */