/* =====================================================================
   CSS RESET & BASE (Normalize, Remove Default, Box Sizing)
   ===================================================================== */
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {font-size: 16px;}
body { line-height: 1.6; background: #fff; color: #191f23; font-family: 'Roboto', Arial, sans-serif; min-height: 100vh;}
*, *:before, *:after { box-sizing: inherit; }

/* ==============
   FONT IMPORTS
   ============== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* ===============
   COLOR VARIABLES
   =============== */
:root {
  --primary: #00446b;
  --primary-rgb: 0, 68, 107;
  --secondary: #e5e7eb;
  --accent: #ffc700;
  --text: #1b252f;
  --heading: #182c3f;
  --bg: #fff;
  --border: #e8eaed;
  --shadow: rgba(0,0,0,0.04);
  --shadow-strong: rgba(0,68,107,0.08);
}

/* =============================
   LAYOUT & STRUCTURE CONTAINERS
   ============================= */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Used for section/hero flexibility */
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Section Spacing & Layout (from instructions) */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/* =====================
   TYPOGRAPHY & HEADINGS
   ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--heading);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.18; margin-bottom: 20px;}
h2 { font-size: 1.8rem; line-height: 1.22; margin-bottom: 18px;}
h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: 8px;}
h4, h5, h6 { font-size: 1rem; margin-bottom: 8px;}
p { color: var(--text); font-family: 'Roboto', Arial, sans-serif; margin-bottom: 16px; font-size: 1rem;}
a { color: var(--primary); text-decoration: none; transition: color 0.18s cubic-bezier(.7,.2,.17,1);}
a:hover, a:focus { text-decoration: underline; color: var(--accent);}
strong, b { font-weight: bold;}
ul, ol { padding-left: 24px; margin-bottom: 16px; font-size: 1rem; }
ul ul, ul ol, ol ul, ol ol { margin-bottom: 0; }
li { margin-bottom: 10px; }

.text-section ul {
  list-style-type: disc;
  padding-left: 24px;
}
.text-section {
  max-width: 680px;
}

/* =================
   HERO STYLING
   ================= */
.hero {
  background: var(--secondary);
  padding: 64px 0 64px 0;
  margin-bottom: 60px;
  box-shadow: 0 2px 16px var(--shadow-strong);
}
.hero .container { align-items: center; justify-content: center; }
.hero .content-wrapper {align-items: flex-start;}
.hero h1 {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.hero p {
  font-size: 1.12rem;
  color: var(--text);
  margin-bottom: 26px;
  max-width: 600px;
}

/* =============
   BUTTONS
   ============= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 28px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 24px;
  box-shadow: 0 2px 12px var(--shadow);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.12s, box-shadow 0.25s, color 0.12s;
  outline: none;
  gap: 8px;
  white-space: nowrap;
  margin-top: 8px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 24px var(--shadow-strong);
}

/* Secondary/outline buttons */
.btn-outline {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 28px;
  height: 44px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.12s, color 0.14s, border 0.2s;
}
.btn-outline:hover, .btn-outline:focus {
  background: var(--primary);
  color: #fff;
}

/* ===================
   HEADER, NAVIGATION
   =================== */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 18px 20px;
  min-height: 64px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  padding: 6px 3px;
  border-radius: 2px;
  transition: color 0.14s, background 0.12s;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: var(--accent);
  text-decoration: none;
}
header img {
  height: 36px;
}
header .btn-primary {
  margin-left: 24px;
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
  display: none;
}

/* ========================
   MOBILE MENU OVERLAY
   ======================== */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 160;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.8,.2,.17,1);
  box-shadow: 0 0 20px 0 rgba(0,20,40,0.10);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 26px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 200;
  width: 44px; height: 44px;
  display: flex; align-items: center;
  justify-content: center;
  transition: background 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { background: var(--secondary); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 86px;
  align-items: center;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: var(--primary);
  text-align: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 0;
  border-radius: 4px;
  transition: background 0.16s, color 0.14s;
  font-family: 'Montserrat', Arial, sans-serif;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  background: var(--secondary);
}

/* Show/hide main nav & mobile nav at breakpoints */
@media (max-width: 1024px) {
  header .container nav, header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px; height: 44px;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 2rem;
    border-radius: 8px;
    z-index: 15;
    cursor: pointer;
    transition: background 0.13s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus { background: var(--secondary);}
}

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

/* ============
   FOOTER
   ============ */
footer {
  background: var(--secondary);
  border-top: 1px solid var(--border);
  padding: 38px 0 14px 0;
  font-size: 0.96rem;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
footer nav a {
  color: var(--primary);
  font-size: 1rem;
  padding: 3px 0;
}
footer nav a:hover, footer nav a:focus {color: var(--accent);}
footer .branding {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
}
footer .branding img {
  width: 32px; height: 32px;
}
footer .social-links {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
footer .social-links a img {
  width: 26px; height: 26px;
  filter: grayscale(1) brightness(1);
  opacity: 0.68;
  transition: opacity 0.18s, filter 0.18s;
}
footer .social-links a:hover img,
footer .social-links a:focus img {
  opacity: 1;
  filter: grayscale(0) brightness(1.05);
}

/* Responsiveness for footer */
@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  footer nav {gap: 12px;}
  footer .social-links {margin-top: 8px;}
}

/* ====================
   FLEXBOX PATTERNS
   ==================== */
.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 3px 18px var(--shadow);
  position: relative;
  padding: 26px;
  flex: 1 1 280px;
  min-width: 260px; max-width: 360px;
  transition: box-shadow .17s, transform .11s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 10px 28px -2px var(--shadow-strong);
  transform: translateY(-1px) scale(1.012);
}

.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 30px;
  margin-bottom: 18px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 22px var(--shadow-strong);
  flex: 1 1 320px;
  min-width: 0;
  max-width: 680px;
  color: #191f23;
  transition: box-shadow 0.18s, transform 0.14s;
}
.testimonial-card p {
    font-size: 1.08rem;
    color: #191f23;
    font-family: 'Roboto', Arial, sans-serif;
}
.testimonial-card span {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
  opacity: 0.7;
}
.testimonial-card:hover {
  box-shadow: 0 8px 42px var(--shadow);
  transform: translateY(-1px) scale(1.01);
}

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

/* ================
   LIST WITH ICONS
   ================ */
.content-wrapper ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.content-wrapper ul li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: var(--text);
  gap: 16px;
}
.content-wrapper ul li img {
  width: 30px;
  min-width: 30px;
  max-width: 32px;
  height: 30px;
  margin-right: 10px;
  opacity: 0.94;
  filter: grayscale(0.2) brightness(1.09);
  vertical-align: middle;
}

/* Text lists in .text-section (bullets only) */
.text-section ul li img {display: none;}

/* ===============
   SECTION & GAPS
   =============== */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper, .content-grid, .card-container, .card-grid {
  gap: 24px;
}

/* ====================
   RESPONSIVE BREAKPOINTS
   ==================== */
@media (max-width: 1100px) {
  .container { max-width: 98vw; }
}

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

@media (max-width: 768px) {
  .container { padding: 0 9px; }
  .hero { padding: 36px 0 36px 0; }
  section, .section { padding: 28px 4px; }
  .testimonial-card { padding: 16px 12px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.2rem; }
  .hero h1 { font-size: 1.32rem; }
  .btn-primary, .btn-outline { font-size: 1rem; padding: 0 20px; height: 40px; }
}

@media (max-width: 590px) {
  .card-container, .card-grid, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  section, .section { margin-bottom: 32px; }
}

/* =====================
   MICRO-INTERACTIONS
   ===================== */
.card, .testimonial-card, .btn-primary, .btn-outline, .mobile-nav a {
  transition: box-shadow 0.16s cubic-bezier(.7,.2,.17,1), background 0.13s, color 0.14s, transform 0.13s;
}
.card:hover, .testimonial-card:hover { box-shadow: 0 12px 32px var(--shadow-strong); }
.btn-primary:active, .btn-outline:active { transform: scale(0.97); }

/* =============
   FORMS / INPUTS (for Kontakt page, not many fields in demo)
   ============= */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 8px;
  outline: none;
  padding: 9px 12px;
  margin-bottom: 16px;
  width: 100%;
  transition: border 0.15s, box-shadow 0.13s;
  box-sizing: border-box;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 2px 10px var(--shadow-strong);
}

label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 4px;
  display: block;
}

/* =========================
   COOKIE BANNER & MODAL
   ========================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: var(--bg);
  color: var(--primary);
  box-shadow: 0 -6px 24px -6px var(--shadow-strong);
  border-top: 1.5px solid var(--border);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 18px 16px;
  gap: 34px;
  z-index: 2000;
  font-size: 1rem;
  animation: cookieSlideUp 0.5s cubic-bezier(.7,.2,.17,1);
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

/* Buttons in Cookie Banner */
.cookie-banner .btn-primary,
.cookie-banner .btn-outline {
  min-width: 92px;
  height: 36px;
  font-size: 0.96rem;
  padding: 0 16px;
  box-shadow: none;
  border-radius: 19px;
  font-weight: 500;
}
.cookie-banner .btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
}
.cookie-banner .btn-primary:hover, .cookie-banner .btn-primary:focus { background: var(--accent); color: var(--primary); }
.cookie-banner .btn-outline {
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary);
}
.cookie-banner .btn-outline:hover, .cookie-banner .btn-outline:focus { background: var(--primary); color: #fff; }

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cookie-banner .cookie-banner-buttons { width: 100%; }
}

/* Cookie Consent Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,32,55,0.18);
  z-index: 2200;
  justify-content: center;
  align-items: center;
  animation: cookieModalFadeIn 0.2s cubic-bezier(.6, .2, .25, 1);
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px var(--shadow-strong);
  padding: 36px 32px 24px 32px;
  max-width: 420px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cookieModalUp .25s cubic-bezier(.6, .2, .25, 1);
}
@keyframes cookieModalUp {
  from { transform: translateY(64px) scale(.96); opacity: 0;}
  to   { transform: translateY(0) scale(1); opacity: 1;}
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  color: var(--primary);
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal label {
  font-weight: 500;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.cookie-modal input[type='checkbox'] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 10px; right: 13px;
  width: 34px; height: 34px;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background .12s;
  z-index: 999;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus { background: var(--secondary); }
.cookie-modal .modal-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-modal .btn-primary, .cookie-modal .btn-outline {
  font-size: 0.96rem;
  min-width: 80px;
  height: 36px;
  padding: 0 14px;
  margin-top: 0;
}

@media (max-width: 480px) {
  .cookie-modal { padding: 18px 6px 16px 6px; border-radius: 15px; }
}

/* ==============================
   ACCESSIBILITY FOCUS STATES
   ============================== */
a:focus, button:focus, input:focus, textarea:focus, .btn-primary:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Utility: visually hidden for a11y */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ================
   MISC/ADDITIONAL
   ================ */
::-webkit-input-placeholder { color: #99a; opacity: 1; }
::-moz-placeholder { color: #99a; opacity: 1; }
:-ms-input-placeholder { color: #99a; opacity: 1; }
::placeholder { color: #99a; opacity: 1; }

img { max-width: 100%; height: auto; border-style: none; display: inline-block;}

/* Loading spinner/icon for modal (if implemented, optional, kept minimal) */
.cookie-modal .modal-loading {
  margin-left: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  border-right-color: var(--accent);
  animation: spin 1s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* END */
