/* ==== CSS RESET & BASE ==== */
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,
main, 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 {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100%;
  font-family: 'Roboto', Arial, sans-serif;
  background: #151E29;
  color: #F5F5F5;
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  background-color: #151E29;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #65E0FF;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B49C63;
  text-decoration: underline;
}
ul, ol {
  margin-left: 20px;
}
strong {
  font-weight: 700;
}

/* ==== BRAND COLORS ==== */
:root {
  --color-primary: #193152;
  --color-secondary: #B49C63;
  --color-accent: #F5F5F5;
  --color-bg-dark: #151E29;
  --color-bg-darker: #101622;
  --color-bg-light: #212B40;
  --color-neon: #65E0FF;
  --color-error: #FF3274;
}

/* ==== FONT FAMILIES ==== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Roboto:wght@400;700&display=swap');
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #F5F5F5;
  line-height: 1.13;
}

h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin: 32px 0 16px 0; }
h3 { font-size: 1.4rem; margin: 24px 0 12px; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }

@media (max-width: 600px) {
  h1 { font-size:2rem; }
  h2 { font-size:1.4rem; }
  h3 { font-size:1.1rem; }
}
p, li, span, strong { font-family: 'Roboto', Arial, sans-serif; }

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.hero-section {
  background: linear-gradient(45deg, #193152 60%, #1E2238 100%);
  padding: 60px 0 46px 0;
  border-bottom: 2px solid var(--color-neon);
}
.testimonial-section {
  background: linear-gradient(90deg, #212B40 80%, #151E29 100%);
  padding: 40px 0 60px 0;
}
.cta-section {
  background: #101622;
  padding: 50px 0 42px 0;
  border-top: 2px solid var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 900px) {
  .content-wrapper {
    gap: 32px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #212B40;
  border-radius: 18px;
  box-shadow: 0 4px 28px rgba(44,196,255,0.10);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.3s, transform 0.18s;
  border: 1.5px solid #193152;
  overflow: hidden;
}
.card:hover, .card:focus-within {
  box-shadow: 0 7px 36px 0 var(--color-neon), 0 4px 28px rgba(44,196,255,0.15);
  transform: translateY(-2px) scale(1.012);
  border-color: var(--color-neon);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.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; }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F5F5F5;
  color: #193152;
  padding: 20px 28px 18px 28px;
  border-radius: 14px;
  box-shadow: 0 2px 14px 2px rgba(25,49,82,0.11);
  margin-bottom: 24px;
  min-width: 230px;
  max-width: 520px;
  border-left: 4px solid var(--color-neon);
}
.testimonial-card strong {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #193152;
  margin-top: 3px;
}
.testimonial-card p {
  color: #212B40;
  font-size: 1.1rem;
  line-height: 1.5;
}
.testimonial-card img {
  height: 20px; width: 20px; vertical-align: middle;
}

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

/* ==== LISTS ==== */
ul, ol {
  margin-bottom: 14px;
  color: #F5F5F5;
}
ul {
  list-style: disc inside;
}
ol {
  list-style: decimal inside;
}

/* ==== BUTTONS ==== */
.cta-btn, button, .mobile-nav a, .cookie-btn {
  font-family: 'Roboto', Arial, sans-serif;
  display: inline-flex;
  align-items: center;
  border-radius: 50px;
  border: none;
  padding: 13px 32px;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(90deg, #193152 80%, #65E0FF 100%);
  color: #F5F5F5;
  letter-spacing: 0.12em;
  box-shadow: 0 2px 14px rgba(36, 220, 255, 0.08);
  cursor: pointer;
  outline: none;
  transition: background 0.19s, box-shadow 0.18s, color 0.18s, transform 0.15s;
  margin-top: 12px;
  position: relative;
  border-bottom: 2.5px solid var(--color-neon);
  gap: 8px;
}
.cta-btn:hover, .cta-btn:focus, button:hover, .cookie-btn:hover {
  background: linear-gradient(90deg, #101622 40%, #B49C63 100%);
  color: #65E0FF;
  box-shadow: 0 6px 34px 1.5px var(--color-neon);
  transform: scale(1.04);
}
button[disabled], .cta-btn[disabled] {
  opacity: 0.65;
  pointer-events: none;
}

/* ==== HEADER & NAV ==== */
header {
  background: #101622;
  box-shadow: 0 2px 16px 0 rgba(25,49,82,0.12);
  border-bottom: 2px solid var(--color-neon);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 50;
}
header .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  gap: 16px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
header nav a {
  color: #F5F5F5;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 7px 10px;
  transition: color 0.14s, background 0.14s, border-bottom 0.14s;
  border-bottom: 2px solid transparent;
  border-radius: 4px;
}
header nav a:hover, header nav a:focus {
  color: var(--color-neon);
  border-bottom: 2px solid var(--color-neon);
  background: #151E29;
}
header img {
  height: 46px;
  width: auto;
}

/* ==== MOBILE MENU ==== */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--color-neon);
  font-size: 2.1rem;
  cursor: pointer;
  padding: 7px 14px;
  margin-left: 8px;
  display: flex;
  align-items: center;
  z-index: 250;
  border-radius: 7px;
  transition: background 0.18s, color 0.14s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #212B40;
  color: #fff;
}
@media (min-width: 1000px) {
  .mobile-menu-toggle { display: none !important; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(21,30,41,0.98);
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.68,-0.25,.65,1.45), opacity 0.26s;
}
.mobile-menu.active {
  transform: translateX(0px);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 20px 32px 16px 0;
  padding: 5px 13px;
  background: none;
  border: none;
  color: var(--color-neon);
  font-size: 2rem;
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.15s;
  z-index: 260;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #212B40;
  color: #fff;
}
.mobile-nav {
  width: 100vw;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  padding: 12px 0 0 50px;
}
.mobile-nav a {
  color: #F5F5F5;
  background: none;
  padding: 16px 0 16px 6px;
  font-size: 1.18rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 5px;
  border-left: 4px solid transparent;
  box-shadow: none;
  transition: color 0.18s, border-color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-neon);
  border-left: 4px solid #65E0FF;
  background: #193152;
}
@media (min-width: 1000px) {
  .mobile-menu, .mobile-menu.active, .mobile-menu-close {
    display: none !important;
  }
  header nav { display: flex !important; }
}
@media (max-width: 999px) {
  header nav { display: none; }
}

/* ==== MAIN LAYOUT ==== */
main {
  min-height: 65vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-bottom: 40px;
  z-index: 1;
}
section {
  width: 100%;
  min-width: 0;
}

@media (max-width: 800px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  main {
    gap: 32px;
    padding-bottom: 20px;
  }
}

/* ==== FOOTER ==== */
footer {
  background: #101622;
  border-top: 2px solid var(--color-secondary);
  padding: 38px 0 14px 0;
  color: #8EA3C6;
  font-size: 1rem;
  width: 100%;
}
footer .container {
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
footer nav a {
  color: #8EA3C6;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  text-decoration: none;
  transition: color 0.18s, border-bottom 0.18s;
  border-bottom: 2px solid transparent;
  border-radius: 3px;
  padding: 2px 6px;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
  background: #151E29;
}
.footer-contact {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  margin-bottom: 10px;
}
.footer-contact img {
  height: 18px;
  width: 18px;
  margin-right: 5px;
  vertical-align: middle;
  filter:brightness(0.8) contrast(1.1);
}
@media (max-width: 800px) {
  .footer-contact { flex-direction: column; gap: 12px; align-items: flex-start; }
  footer nav { flex-direction: column; gap: 7px; }
}
footer div:last-child {
  margin-top: 18px;
  color: #48586F;
  font-size: 0.9rem;
}

/* ==== FORMS & INTERACTIONS (for e.g. kontakt-form-side) ==== */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  border-radius: 7px;
  border: none;
  background: #212B40;
  color: #F5F5F5;
  font-size: 1rem;
  padding: 10px 16px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  border-left: 3px solid #193152;
  transition: border-color 0.15s, box-shadow 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-neon);
  box-shadow: 0 0 0 2px var(--color-neon);
}
label {
  font-family: 'Roboto', Arial, sans-serif;
  color: #B49C63;
  font-size: 1rem;
  margin-bottom: 6px;
  display: block;
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 24px;
  background: linear-gradient(90deg, #212B40 85%, #151E29 100%);
  color: #F5F5F5;
  box-shadow: 0 -2px 32px 0 rgba(25,49,82,0.20);
  font-size: 1rem;
  padding: 20px 32px;
  min-height: 70px;
  opacity: 1;
  pointer-events: auto;
  animation: bannerIn 0.42s cubic-bezier(.5,.01,.5,1.2);
}
@keyframes bannerIn {
  0% { opacity:0; transform: translateY(60px); }
  80% { opacity:0.97; }
  100% { opacity:1; transform: translateY(0px); }
}
@media (max-width: 575px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 16px 6px;
    font-size: 0.95rem;
  }
}
.cookie-btn {
  margin: 0 6px 0 0;
  background: linear-gradient(90deg, #B49C63 60%, #65E0FF 100%);
  color: #212B40;
  font-weight: 700;
  border: none;
  box-shadow: 0 2px 14px 0 rgba(44,196,255,0.10);
  min-width: 120px;
  border-radius: 30px;
  transition: background 0.14s, color 0.13s, box-shadow 0.15s;
  cursor: pointer;
  padding: 10px 18px;
  font-size: 1rem;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #193152;
  color: #65E0FF;
  box-shadow: 0 4px 22px 2px var(--color-neon);
}

/* ==== COOKIE MODAL POPUP ==== */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 3040;
  inset: 0;
  background: rgba(21,30,41,0.86);
  backdrop-filter: blur(2.5px);
  opacity: 1;
  transition: opacity 0.19s;
}
.cookie-modal {
  position: fixed;
  z-index: 3041;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(1);
  background: #212B40;
  color: #F5F5F5;
  min-width: 320px;
  max-width: 98vw;
  width: 450px;
  border-radius: 18px;
  box-shadow: 0 8px 50px 5px var(--color-neon), 0 2px 24px 0 rgba(44,196,255,0.13);
  padding: 32px 28px 26px 28px;
  animation: cookieIn 0.45s cubic-bezier(.42,1.2,.32,1.0);
  opacity: 1;
}
@keyframes cookieIn {
  0% { opacity:0; transform: translate(-50%,-30%) scale(0.92); }
  100% { opacity:1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal h2 {
  color: #65E0FF;
  font-size: 1.35rem;
  margin-bottom: 18px;
}
.cookie-modal-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-toggle-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-toggle-row label {
  flex: 1;
  color: #F5F5F5;
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-toggle-switch {
  width: 36px; height: 20px; border-radius: 14px; background: #151E29;
  border: 1.5px solid #193152;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: border-color 0.14s, background 0.14s;
}
.cookie-toggle-switch input[type=checkbox] {
  opacity: 0;
  width: 36px; height: 20px;
  position: absolute;
  left: 0; top: 0;
  cursor: pointer;
  margin: 0;
}
.cookie-toggle-slider {
  height: 16px;
  width: 16px;
  background: #B49C63;
  border-radius: 50%;
  position: absolute;
  left: 2px; top: 2px;
  transition: left 0.17s, background 0.14s;
  z-index: 1;
}
.cookie-toggle-switch input:checked + .cookie-toggle-slider {
  left: 18px;
  background: #65E0FF;
}
.cookie-modal .cookie-btn-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 24px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn:last-child {
  margin-right: 0;
}

/* ==== VISUAL FUTURISTIC EFFECTS ==== */
.section, .card, .testimonial-card, .cookie-modal, .cookie-banner {
  box-shadow: 0 1.4px 15px 0 rgba(101,224,255,0.04);
}
.card, .testimonial-card, .cta-btn, .cookie-btn, .cookie-toggle-slider {
  border-radius: 14px;
}
hr {
  border:none;
  border-top:2.5px solid var(--color-neon);
  opacity:0.19;
  margin: 30px 0;
}

/* ==== MICRO-INTERACTIONS ==== */
.card, .testimonial-card, .cta-btn, .cookie-btn, .cookie-toggle-switch {
  transition: box-shadow 0.22s, background 0.20s, border-color 0.2s, color 0.22s, transform 0.17s;
}
.card:active, .cta-btn:active, .cookie-btn:active {
  transform: scale(0.985);
  box-shadow: 0 1px 7px rgba(36,220,255,0.07);
}

/* ==== SPACING & WRAPPING RULES ENFORCEMENT ==== */
.section, 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;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1120px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .content-grid { flex-direction: column; gap: 18px; }
  .testimonial-section { padding: 32px 0 48px 0; }
  .cta-section { padding: 38px 0 28px 0; }
}
@media (max-width: 600px) {
  .card, .testimonial-card, .cookie-modal { padding: 16px 12px; }
  .section, section { padding: 26px 4px; }
  .hero-section { padding: 36px 0 24px 0; }
}

/* ==== ACCENTUATE ICONS & SVG ==== */
img[alt^="Stjärna"], img[alt^="icon"] {
  filter: drop-shadow(0 0 3px #65E0FF) brightness(1.09) contrast(1.12);
}

/* ==== ACCESSIBILITY ==== */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 3px solid #65E0FF;
  outline-offset: 1.5px;
}

/* ==== UTIL CLASSES ==== */
.mt-40 { margin-top: 40px; }
.mt-20 { margin-top: 20px; }
.mb-32 { margin-bottom: 32px; }

/* ==== HIDE EMPTY CONTENT (no grid/col cols at all) ==== */
.hide { display: none !important; }

/* ==== END ==== */
