/* === 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,
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 {
  line-height: 1.6;
  background: #fff;
  min-height: 100vh;
  color: #223A5E;
  font-family: 'Roboto', Georgia, Times, 'Times New Roman', serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #223A5E;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFD447;
}
strong, b {
  font-weight: bold;
}

/* === TYPOGRAPHY (Elegant Classic Aesthetic) === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, 'Times New Roman', Times, serif;
  color: #223A5E;
  line-height: 1.1;
  letter-spacing: 0.5px;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p, ul, ol, table, li {
  font-size: 1rem;
  margin-bottom: 12px;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 20px;
}
ul li, ol li {
  padding-left: 2px;
  margin-bottom: 8px;
}

/* --- Classic Muted Colors --- */
:root {
  --color-primary: #223A5E;
  --color-secondary: #FFD447;
  --color-accent: #E4E4E4;
  --color-bg: #FCFCFA; /* very light off-white */
  --color-text: #223A5E;
  --color-muted: #767676;
  --color-card-bg: #fff;
  --color-card-shadow: rgba(34,58,94,0.08);
  --color-border: #D6D6D6;
  --color-footer-bg: #1B2C47;
  --color-footer-text: #E4E4E4;
  --color-testimonial-bg: #F7F4EE;
  --color-btn-primary: #223A5E;
  --color-btn-primary-text: #fff;
  --color-btn-secondary: #FFD447;
  --color-btn-secondary-text: #223A5E;
  --color-btn-shadow: rgba(34,58,94,0.08);
  --border-radius: 14px;
  --transition-fast: 0.2s cubic-bezier(.65,.05,.36,1);
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .text-image-section, .card-container, .content-grid, .feature-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}

/* === FLEXBOX MANDATORY CLASSES === */
.card-container, .content-grid, .feature-grid, .features, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  background: var(--color-card-bg);
  box-shadow: 0 2px 12px var(--color-card-shadow);
  border-radius: var(--border-radius);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.card:hover,
.card:focus-within {
  box-shadow: 0 4px 18px rgba(34,58,94,.13);
  transform: translateY(-3px) scale(1.015);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Cards Specific */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature {
  flex: 1 1 225px;
  background: var(--color-card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px var(--color-card-shadow);
  border: 1px solid var(--color-border);
  padding: 24px 20px 18px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 220px;
  max-width: 270px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.feature img {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  filter: grayscale(15%) contrast(1.05);
}
.feature:hover,
.feature:focus {
  box-shadow: 0 4px 18px rgba(34,58,94,.12);
  transform: translateY(-2px) scale(1.01);
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 20px;
  margin-bottom: 20px;
  background: var(--color-testimonial-bg);
  border-radius: var(--border-radius);
  border: 1px solid #E6E6EA;
  box-shadow: 0 3px 14px rgba(34,58,94,0.08);
  max-width: 490px;
  color: #223A5E;
}
.testimonial-card p {
  font-size: 1.1rem;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--color-muted);
  font-family: 'Roboto', Georgia, serif;
  letter-spacing: 0.1px;
}
@media (max-width: 768px){
  .testimonial-card {
    max-width: 100%;
    padding: 20px 10px;
  }
}

/* --- Buttons --- */
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', 'Roboto', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 11px 34px;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  outline: none;
  transition: box-shadow 0.18s, background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  letter-spacing: 0.2px;
  margin-top: 10px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px var(--color-btn-shadow);
  line-height: 1.2;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-btn-primary);
  color: var(--color-btn-primary-text);
}
.btn-primary:hover, .btn-primary:focus {
  background: #182848;
  color: #FFD447;
  transform: translateY(-2px) scale(1.025);
}
.btn-secondary {
  background: var(--color-btn-secondary);
  color: var(--color-btn-secondary-text);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #F5C401;
  color: #223A5E;
  transform: translateY(-1.5px) scale(1.025);
}

/* --- Tables --- */
table {
  width: 100%;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 6px rgba(34,58,94,0.06);
  margin-bottom: 28px;
  border-collapse: collapse;
  font-size: 1rem;
  overflow: hidden;
}
thead tr {
  background: var(--color-accent);
}
th, td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
th {
  font-weight: bold;
  font-size: 1rem;
  color: #223A5E;
}
tr:last-child td {
  border-bottom: none;
}
@media (max-width: 600px){
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }
  th, td {
    padding: 10px 4px;
    font-size: 0.98rem;
  }
  thead {display: none;}
}

/* --- Header --- */
header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 10px rgba(34,58,94,0.03);
  position: relative;
  z-index: 90;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  padding: 18px 0;
  font-size: 1rem;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', serif;
  color: #223A5E;
  text-decoration: none;
  font-weight: 500;
  margin-right: 16px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.main-nav a:last-child {margin-right: 0;}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: #223A5E;
}
.main-nav img {
  height: 40px;
  margin-right: 18px;
  vertical-align: middle;
}
/* Hide burger button on desktop */
.mobile-menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  color: #223A5E;
  font-size: 2rem;
  outline: none;
  cursor: pointer;
  z-index: 201;
  padding: 6px 12px;
  transition: color var(--transition-fast);
}
.mobile-menu-toggle:focus {
  color: var(--color-secondary);
}

@media (max-width: 1020px){
  .main-nav {
    flex-wrap: wrap;
    gap: 8px;
  }
  .main-nav img{margin-right:10px;}
}
@media (max-width: 850px){
  .main-nav a {
    margin-right: 10px;
    font-size: 0.97rem;
    padding: 4px 5px;
  }
}
@media (max-width: 700px){
  .main-nav {
    display:none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* === Mobile Menu Overlay === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right:0; bottom: 0;
  background: rgba(34,58,94,0.97);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.53,.1,.1,1) 0s;
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 0;
  width: 100vw;
  min-height: 100vh;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.4rem;
  font-family: inherit;
  color: #FFD447;
  background: none;
  border: none;
  align-self: flex-end;
  margin: 28px 20px 18px 0;
  cursor: pointer;
  z-index: 9999;
  transition: color var(--transition-fast);
}
.mobile-menu-close:focus {
  color: #fffbe6;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100vw;
  padding: 10px 36px 0 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', serif;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 0 10px 10px;
  border-radius: 6px;
  transition: background 0.16s, color 0.16s;
  width: 100%;
  margin-bottom: 4px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #FFD447;
  background: rgba(255,212,71,0.10);
}
@media (min-width: 701px){
  .mobile-menu{display:none !important;}
  .mobile-menu-toggle{display:none;}
}

/* === Footer === */
footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 38px 16px 24px 16px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--color-footer-text);
  font-size: 1rem;
  text-decoration: none;
  font-family: 'Montserrat', Georgia, serif;
  opacity: 0.90;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}
.footer-nav a:hover, .footer-nav a:focus {
  opacity: 1;
  color: var(--color-secondary);
}
footer p {
  font-size: 0.97rem;
  color: #B6B6C2;
  letter-spacing: 0.03em;
}

/* === Cookie Consent Banner === */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1100;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -3px 18px rgba(34,58,94,0.10);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: cookie-in 0.4s cubic-bezier(.53,.1,.1,1);
}
@keyframes cookie-in {
  0% {transform: translateY(100%); opacity: 0;}
  100% {transform: translateY(0); opacity: 1;}
}

.cookie-consent-banner p {
  color: #223A5E;
  font-size: 1rem;
  text-align: center;
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-btn {
  font-family: 'Montserrat',serif;
  border-radius: 24px;
  border: none;
  font-weight: 600;
  letter-spacing: 0.1px;
  font-size: 1rem;
  cursor: pointer;
  margin: 0 4px;
  padding: 9px 24px;
  background: var(--color-btn-secondary);
  color: var(--color-btn-secondary-text);
  box-shadow: 0 1px 6px rgba(34,58,94,0.05);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.cookie-btn.accept {
  background: var(--color-btn-primary);
  color: var(--color-btn-primary-text);
}
.cookie-btn.reject {
  background: #E9E9E9;
  color: #223A5E;
}
.cookie-btn:hover, .cookie-btn:focus {
  color: #FFD447;
  background: var(--color-primary);
  transform: translateY(-1px) scale(1.03);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #182848;
  color: #FFD447;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ccc;
  color: #223A5E;
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34,58,94,0.44);
  z-index: 1201;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 6px 32px rgba(34,58,94,0.16);
  max-width: 390px;
  width: 96vw;
  padding: 32px 24px 20px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookie-modal-in 0.30s cubic-bezier(.53,.1,.1,1);
}
@keyframes cookie-modal-in {
  0% {transform: scale(0.75); opacity: 0;}
  70% {transform: scale(1.04);}
  100% {transform: scale(1); opacity: 1;}
}
.cookie-modal h2 {
  font-size: 1.16rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #223A5E;
  text-align: left;
}
.cookie-modal p, .cookie-modal ul {
  font-size: 1rem;
  color: #223A5E;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0 8px 0;
}
.cookie-cat-row {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}
.cookie-cat-label {
  font-size: 1rem;
  color: #223A5E;
  flex: 1 1 auto;
}
.cookie-toggle {
  accent-color: #FFD447;
  width: 28px;
  height: 18px;
  cursor: pointer;
}
.cookie-close-btn {
  position: absolute;
  right: 16px; top: 13px;
  font-size: 1.6rem;
  color: #223A5E;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  font-weight: 700;
  z-index: 2;
  transition: color 0.16s;
}
.cookie-close-btn:hover, .cookie-close-btn:focus {
  color: #FFD447;
}

/* --- Responsive Spacing and Flex Adjustments --- */
@media (max-width: 600px){
  section {
    padding: 28px 6px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 5px;
  }
  .content-wrapper, .feature-grid, .card-container, .content-grid {gap:14px;}
}

/* === Accessibility === */
:focus {
  outline: 2px solid #FFD447;
  outline-offset: 2px;
}

/* === Utility Classes (for card lists, mobile) === */
.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 15px;
}

.mt-32 {margin-top:32px !important;}
.mt-24 {margin-top:24px !important;}
.mb-32 {margin-bottom:32px !important;}
.mb-24 {margin-bottom:24px !important;}

/* === Misc Elements === */
hr {
  border: none;
  border-bottom: 1px solid var(--color-border);
  margin: 32px 0;
}

/* === Form Styling (for kontakt.html, future-proofing) === */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f9f9f6;
  margin-bottom: 14px;
  width: 100%;
  transition: border 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #FFD447;
}

/* --- Elegant List Style --- */
ul {
  list-style-type: disc;
}
ol {
  list-style-type: decimal;
}
ul li, ol li {
  font-family: 'Roboto', Georgia, serif;
  font-size: 1rem;
  line-height: 1.8;
}

/* --- Elegant Classic Section Spacing --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === VISUAL MICRO-INTERACTIONS (subtle for elegance) === */
.btn-primary, .btn-secondary, .cookie-btn {
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.card, .feature {
  transition: box-shadow 0.19s, transform 0.19s;
}
.card:hover, .feature:hover {
  box-shadow: 0 7px 28px rgba(34,58,94,0.15);
  transform: translateY(-4px) scale(1.015);
}

/* === HIDE NAV/FOOTER ELEMENTS IN PRINT === */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal-overlay {display:none !important;}
  body {background:none;color:#000;}
}

/* --- Custom Font Face Loading (for fallback) --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
