/* -------------------- 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 {
  line-height: 1.15;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #111820;
  color: #E8ECEF;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  position: relative;
  box-sizing: border-box;
}

*, *::before, *::after { box-sizing: inherit; }

img { max-width: 100%; display: block; border: 0; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ----------------- FONT IMPORT ------------------ */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap");

/* -------------------- COLOR VARIABLES & UTILS -------------------- */
:root {
  --primary: #163250;
  --primary-rgb: 22, 50, 80;
  --secondary: #E8ECEF;
  --accent: #F3B445;
  --accent-neon: #fdcf3a;
  --bg-dark: #111820;
  --bg-light: #1d2a3a;
  --border-radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 2px 24px rgba(22,50,80,0.22),0 1.5px 6px rgba(243,180,69,0.08);
  --neon-glow: 0 0 8px var(--accent), 0 0 16px var(--accent);
}

/* -------------------- TYPOGRAPHY -------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1rem; font-weight: 600; }

p, ul, ol, li, address { font-family: 'Roboto', Arial, sans-serif; font-size: 1rem; }

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
}

strong { font-weight: 700; }

/* -------------------- LAYOUT GROUPS -------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 24px 5px;
  }
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* -------------------- MAIN NAVBAR -------------------- */
header {
  width: 100%;
  background: rgba(17,24,32, 0.99);
  box-shadow: 0 1px 12px rgba(22,50,80,0.06);
  position: sticky;
  top: 0;
  z-index: 51;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 0;
}
.main-nav a {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  color: #E8ECEF;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: background 0.23s, color 0.13s, box-shadow 0.25s;
  position: relative;
}
.main-nav a.primary-cta, .cta-btn {
  background: var(--accent);
  color: #16213e;
  font-weight: 700;
  box-shadow: var(--neon-glow);
  border-radius: var(--border-radius);
  padding: 10px 24px;
}
.main-nav a.primary-cta:hover, .cta-btn:hover {
  background: #fdcf3a;
  color: var(--primary);
  box-shadow: 0 0 20px 2px #F3B445, 0 0 32px 4px #f3b44544;
}
.main-nav a:hover:not(.primary-cta) {
  color: var(--accent);
  background: rgba(34,54,74,0.17);
  text-shadow: 0 0 6px var(--accent-neon);
}
.main-nav img {
  height: 32px;
  width: auto;
  margin-right: 8px;
}
/* Hide burger menu by default */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--accent);
  position: absolute;
  right: 20px;
  top: 14px;
  z-index: 101;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background 0.14s;
}

.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: rgba(243,180,69,0.12);
  outline: 2px solid var(--accent);
}

@media (max-width: 990px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* -------------------- MOBILE MENU -------------------- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(110deg, #182537 70%, #293b51 100%);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 200;
  padding: 0 0 0 0;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.7,.2,.2,1);
  box-shadow: 0 0 80px 0 #111;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  margin-top: 16px;
  margin-right: 20px;
  background: none;
  color: var(--accent);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 201;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background 0.15s;
}
.mobile-menu-close:hover,.mobile-menu-close:focus {
  background: rgba(243,180,69,0.09);
  outline: 2px solid var(--accent);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0px;
  margin-top: 36px;
}
.mobile-nav a {
  width: 100%;
  padding: 19px 32px 18px 38px;
  font-size: 1.15rem;
  font-family: 'Montserrat',Arial,sans-serif;
  color: #E8ECEF;
  font-weight: 600;
  border: none;
  border-left: 5px solid transparent;
  transition: background 0.15s, color 0.15s, border-left 0.18s;
  margin-bottom: 0px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(243,180,69,0.09);
  color: var(--accent);
  border-left: 5px solid var(--accent);
}

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

/* -------------------- SECTION PATTERNS -------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: rgba(22,50,80,0.28);
  padding: 24px 24px 20px 24px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  box-shadow: 0 2px 10px 0 rgba(22,50,80,0.08);
  min-width: 225px;
  max-width: 355px;
  flex: 1 1 265px;
  border-left: 4px solid var(--accent);
  transition: box-shadow 0.2s, border-left 0.16s;
}
.feature-item img {
  width: 44px;
  height: 44px;
}
.feature-item:hover {
  box-shadow: 0 0 20px 0 var(--accent), 0 2px 32px 0 rgba(22,50,80,0.21);
  border-left: 4px solid #fdcf3a;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.service-item {
  flex: 1 1 270px;
  min-width: 220px;
  background: #192a42;
  border-radius: var(--border-radius);
  padding: 24px 24px 20px 24px;
  box-shadow: 0 2px 16px rgba(22,50,80,0.1);
  margin-bottom: 20px;
  transition: box-shadow 0.20s, filter 0.14s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border-top: 4px solid var(--accent);
  position: relative;
}
.service-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
}
.service-item .price {
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
  background: #f3b44511;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
}
.service-item:hover {
  box-shadow: 0 4px 28px 0 var(--accent), 0 2px 22px 0 rgba(22,50,80,0.21);
  filter: brightness(1.07);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #1E293B;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(22,50,80,0.13);
  padding: 24px 22px;
  color: #e8ecef;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 2px 28px rgba(243,180,69,0.10), var(--neon-glow);
}

.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: 900px) {
  .feature-grid {
    gap: 14px;
  }
  .service-list {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .service-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 17px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* -------------------- TESTIMONIAL CARDS -------------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  color: #222b36;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 28px rgba(243,180,69,0.08), var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
  font-size: 1.04rem;
  line-height: 1.6;
  transition: box-shadow 0.23s, filter 0.14s;
  border-left: 4px solid var(--accent);
}
.testimonial-card span {
  font-size: 0.99rem;
  color: var(--primary);
  font-weight: 600;
}
.testimonial-card:hover {
  box-shadow: 0 0 24px 1px #F3B445, 0 2px 14px #e8ecef3b;
  filter: brightness(1.015);
}

/* Explicit contrast for readability */
.testimonial-card p, .testimonial-card span {
  color: #212b39;
}

/* -------------------- PRICING TABLE -------------------- */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 32px;
  margin-top: 14px;
  background: #141c28;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 16px 0 rgba(22,50,80,0.11);
  overflow: hidden;
}
.pricing-table th, .pricing-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid #223245;
}
.pricing-table th {
  background: #192a42;
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}
.pricing-table td {
  color: #E8ECEF;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}

@media (max-width: 600px) {
  .pricing-table th, .pricing-table td {
    padding: 10px 8px;
    font-size: 0.99rem;
  }
}

/* -------------------- BUTTONS & CTA -------------------- */
.cta-btn {
  background: var(--accent);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  padding: 14px 34px;
  border-radius: var(--border-radius);
  border: none;
  font-size: 1.13rem;
  margin-top: 16px;
  box-shadow: var(--neon-glow);
  cursor: pointer;
  transition: background 0.19s, color 0.14s, box-shadow 0.2s, transform 0.15s;
  text-align: center;
  outline: none;
  display: inline-block;
}
.cta-btn:active {
  transform: scale(0.97);
}
.cta-btn:hover, .cta-btn:focus {
  background: #fdcf3a;
  color: var(--primary);
  box-shadow: 0 0 24px 0 #F3B445, 0 0 36px 2px #f3b44544;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Utility for accent underline */
.accent-uline {
  border-bottom: 3px solid var(--accent);
  display: inline-block;
  padding-bottom: 2px;
}

/* -------------------- FOOTER -------------------- */
footer {
  width: 100%;
  background: #192a42;
  color: #e8ecef;
  padding: 38px 0 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.97rem;
  margin-top: 30px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--accent);
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  transition: background 0.14s, color 0.14s;
}
.footer-nav a:hover {
  background: var(--accent);
  color: var(--primary);
}
footer address {
  font-style: normal;
  color: #b5c0d7;
  margin-top: 3px;
  text-align: center;
}
footer a {
  color: var(--accent);
  text-decoration: underline;
}

/* -------------------- TEXT SECTIONS -------------------- */
.text-section {
  margin-bottom: 20px;
  padding: 0;
  background: none;
  border-radius: 0;
}
.text-section h2 {
  margin-bottom: 12px;
}
.text-section ul,
.text-section ol {
  padding-left: 26px;
  margin-bottom: 0;
  list-style: disc inside;
  margin-top: 6px;
}
.text-section ul li, .text-section ol li {
  margin-bottom: 7px;
  line-height: 1.55;
}
.text-section ul li img {
  vertical-align: middle;
  margin-right: 7px;
  width: 20px;
  height: 20px;
}

/* -------------------- GENERAL UL/OL -------------------- */
ul, ol {
  margin-bottom: 20px;
}
ul li, ol li {
  margin-bottom: 7px;
}

/* -------------------- TABLET & MOBILE RESPONSIVE -------------------- */
@media (max-width: 900px) {
  .main-nav a { font-size: 0.98rem; }
}
@media (max-width: 768px) {
  .content-wrapper { gap: 14px; }
  .section { padding: 20px 1px; margin-bottom: 26px; }
}

/* -------------------- COOKIE CONSENT -------------------- */
.cookie-banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 9999;
  background: linear-gradient(90deg, #1d2a3a 78%, #293b51 100%);
  color: #E8ECEF;
  padding: 24px 36px 20px 30px;
  box-shadow: 0 -4px 22px 0 rgba(22,50,80,0.18);
  font-size: 1rem;
  border-radius: 22px 22px 0 0;
  animation: cookieBannerSlideIn 0.7s cubic-bezier(.85,-0.15,.27,1.16);
  gap: 14px;
}
.cookie-banner p {
  font-size: 1rem;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 8px;
}
.cookie-btn {
  background: var(--accent);
  color: var(--primary);
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 0 8px 1px #f3b44522;
  transition: background 0.13s, color 0.13s, box-shadow 0.2s;
  font-size: 1rem;
  cursor: pointer;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #fdcf3a;
  color: var(--primary);
  box-shadow: 0 0 24px 1px #F3B44544;
}
.cookie-btn.settings {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  transition: background 0.10s, color 0.10s;
  box-shadow: none;
}
.cookie-btn.settings:hover {
  background: var(--accent);
  color: var(--primary);
}

@media (max-width: 600px) {
  .cookie-banner {
    padding: 16px 8px 10px 12px;
    font-size: 0.98rem;
    border-radius: 12px 12px 0 0;
    gap: 12px;
  }
  .cookie-banner-actions {
    flex-direction: column;
    gap: 8px;
  }
}

@keyframes cookieBannerSlideIn {
  0% { transform: translateY(120%); opacity:0; }
  65% { opacity: 1; }
  100% { transform: translateY(0); opacity:1; }
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(17,24,32,0.52);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.23s;
}
.cookie-modal {
  background: #1d2a3a;
  color: #E8ECEF;
  border-radius: 20px 20px 0 0;
  width: 94vw;
  max-width: 410px;
  padding: 32px 24px 24px 24px;
  box-shadow: 0 -5px 32px 0 rgba(22,50,80,0.28);
  animation: modalUp 0.32s cubic-bezier(.85,-0.25,.2,1.19);
  position: relative;
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 1.14rem;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 15px;
  gap: 8px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--accent);
  margin-right: 7px;
  width: 20px;
  height: 20px;
}
.cookie-modal-actions {
  margin-top: 13px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .cookie-modal {
    padding: 20px 6px 18px 10px;
    width: 98vw;
    max-width: none;
  }
}
@keyframes modalUp {
  0% { transform: translateY(45px); opacity:0; }
  55% { opacity:1; }
  100% { transform: translateY(0); opacity:1; }
}

/* -------------------- ANIMATIONS & MICROINTERACTIONS -------------------- */
.feature-item, .service-item, .card, .testimonial-card, .cta-btn, .cookie-btn {
  transition: box-shadow 0.16s, filter 0.12s, background 0.12s, color 0.12s, transform 0.09s;
}
.service-item:active, .feature-item:active, .cta-btn:active, .main-nav a:active {
  transform: scale(0.99);
}

/* Neon accent lines (for Futuristic look) */
.section::before {
  content: '';
  display: block;
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 6px;
  background: linear-gradient(90deg, var(--accent) 0%, #F7D97A 100%);
  box-shadow: 0 0 12px 0 var(--accent),0 0 24px 0 #F3B44577;
  opacity: 0.47;
  z-index: 0;
}

/* -------------------- RESPONSIVENESS (MOBILE FIRST) -------------------- */
@media (max-width: 660px) {
  header, footer { padding-left: 0; padding-right: 0; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.1rem; }
  .feature-item, .service-item, .card {
    padding: 13px 10px 12px 13px;
    min-width: unset;
  }
  .testimonial-card {
    font-size: 0.97rem;
    padding: 12px;
  }
}

/* -------------------- FORM ELEMENTS (for kontakt.html) -------------------- */
input, textarea, select {
  background: #233a58;
  border: 1px solid #314a69;
  color: #e8ecef;
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 4px 0 #253b5228;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  margin-bottom: 18px;
  width: 100%;
  transition: border 0.14s, box-shadow 0.14s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 10px 1px #fdcf3a33;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 5px;
}

@media (max-width:400px) {
  html { font-size: 93%; }
  .cta-btn, .main-nav a.primary-cta {
    padding: 9px 17px;
    font-size: 1rem;
  }
}

/* ---------------------------------------------------------
  --- MAKE SURE FLEXBOX ONLY, NO GRID/COLUMNS ---
---------------------------------------------------------- */
/* All containers, sections, and card groupings use ONLY Flex layouts! */

/* -------------------- ACCESSIBILITY FOCUS STYLES --------------------*/
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  z-index: 11;
  background: #f3b44513;
}

/* Hide visually but accessible for screen readers */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* -------------------- MISC -------------------- */
::selection {
  background: #F3B445;
  color: #192a42;
}

/* Hide scroll on body when modal/mobile menu are open - handled via JS toggle of a class .noscroll */
body.noscroll {
  overflow: hidden;
}
