/* --------------------------------------------------
  TV Meister Österreich – style.css (Professional Corporate Design)
  Brand colors: #1A2432 (primary), #4694C5 (secondary), #F9F7F1 (accent)
  Fonts: 'Montserrat', 'Roboto'
  Flexbox only, no grid/cols, mobile-first responsive
-------------------------------------------------- */
/* RESET & BASELINE STYLES */
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #1A2432;
  background: #F9F7F1;
  line-height: 1.6;
  min-height: 100vh;
  font-size: 1rem;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: #4694C5;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #1A2432;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.25em;
  margin-bottom: 1.25em;
}
li + li {
  margin-top: 0.5em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #1A2432;
  margin-bottom: 16px;
  line-height: 1.25;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(26,36,50,0.04);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section, .text-image-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-image-section {
  align-items: center;
  gap: 30px;
}

/* ----------------------------------
   HEADER & NAVIGATION
---------------------------------- */
header {
  background: #1A2432;
  padding: 0;
  color: #fff;
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  min-height: 72px;
}
header a img {
  height: 44px;
  margin-right: 32px;
  vertical-align: middle;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
header nav a {
  color: #F9F7F1;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 0;
  transition: color 0.2s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  color: #4694C5;
}
header .btn-primary {
  margin-left: auto;
  min-width: 148px;
}
@media (max-width: 1024px) {
  header .btn-primary {
    margin-left: 0;
  }
  header .container {
    flex-wrap: wrap;
    gap: 16px;
  }
  header nav {
    flex-wrap: wrap;
  }
}
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  header .btn-primary {
    display: none;
  }
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: #F9F7F1;
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  right: 22px;
  top: 14px;
  z-index: 401;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  color: #4694C5;
  outline: 2px solid #4694C5;
}
@media (min-width: 901px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Mobile Menu Styles */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #1A2432;
  color: #fff;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
  box-shadow: 2px 0 24px rgba(26,36,50,0.12);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  appearance: none;
  border: none;
  background: none;
  color: #fff;
  font-size: 2.2rem;
  padding: 24px 16px 16px 16px;
  margin: 0 0 16px 8px;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #4694C5;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: 12px 36px 32px 36px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #F9F7F1;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.18rem;
  padding: 8px 0;
  width: 100%;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #4694C5;
  color: #fff;
}

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

/* MAIN & GENERAL SECTION LAYOUTS */
main {
  width: 100%;
  margin-top: 0;
  background: #F9F7F1;
  min-height: 500px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(26,36,50,0.05);
}
.icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
}
.icon-row img {
  width: 46px;
  height: 46px;
  background: #F9F7F1;
  border-radius: 50%;
  box-shadow: 0 1px 3px 0 rgba(70,148,197,0.06);
  padding: 7px;
}

/* Cards & Lists */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(26,36,50,0.05);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 240px;
  min-width: 240px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(70,148,197,0.10);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Testimonial Cards (for dark text on light background, strong contrast) */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px 28px;
  background: #F9F7F1;
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 rgba(26,36,50,0.09);
  color: #1A2432;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 460px;
}
.testimonial-card p {
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 0;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #4694C5;
  font-style: italic;
  margin-top: 5px;
}

/* Fact Grid and Features  */
.fact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.fact {
  background: #F9F7F1;
  border-radius: 10px;
  padding: 20px 28px;
  box-shadow: 0 2px 10px rgba(26,36,50,0.09);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 130px;
  max-width: 170px;
}
.fact span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #4694C5;
  margin-bottom: 10px;
}
.fact p {
  font-size: 1rem;
  color: #1A2432;
  margin-bottom: 0;
}

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

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-item {
  background: #F9F7F1;
  border-left: 5px solid #4694C5;
  border-radius: 7px;
  padding: 20px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px 0 rgba(26,36,50,0.07);
}
.faq-item h2 {
  font-size: 1.18rem;
  color: #1A2432;
  margin-bottom: 8px;
  font-weight: 600;
}

/* BUTTONS */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 12px 32px;
  min-width: 148px;
  min-height: 48px;
  border: none;
  transition: box-shadow 0.2s, background 0.2s, color 0.2s, transform 0.18s;
  box-shadow: 0 2px 10px rgba(70,148,197,0.03);
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.btn-primary {
  background: #4694C5;
  color: #fff;
  box-shadow: 0 2px 12px rgba(70,148,197,0.10);
}
.btn-primary:active, .btn-primary:focus, .btn-primary:hover {
  background: #266390;
  color: #fff;
  transform: translateY(-1px) scale(1.018);
  box-shadow: 0 10px 24px rgba(70,148,197,0.13);
}

.btn-secondary {
  background: #F9F7F1;
  color: #4694C5;
  border: 2px solid #4694C5;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #4694C5;
  color: #fff;
  border-color: #266390;
  transform: translateY(-1px) scale(1.018);
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
footer {
  background: #1A2432;
  color: #F9F7F1;
  font-size: 0.98rem;
  padding: 32px 0 18px 0;
  margin-top: 56px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
footer nav {
  margin-bottom: 8px;
}
footer nav a {
  color: #F9F7F1;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin: 0 7px;
  padding: 3px 0;
  transition: color 0.2s;
}
footer nav a:hover, footer nav a:focus {
  color: #4694C5;
}

/* --------------------------------------------------
   COOKIE CONSENT BANNER
-------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 5000;
  background: #fff;
  border-top: 2px solid #4694C5;
  box-shadow: 0 -6px 32px rgba(26,36,50,0.11);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 18px 18px 18px;
  min-height: 110px;
  width: 100vw;
  gap: 18px;
  font-size: 1rem;
  animation: slideUpIn 0.5s cubic-bezier(.4,0,.2,1);
}
@keyframes slideUpIn {
  from { transform: translateY(100%); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}
.cookie-banner button, .cookie-banner .btn-secondary {
  font-size: 1.02rem;
  min-width: 120px;
  min-height: 40px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, border-color 0.18s;
}
.cookie-banner .accept {
  background: #4694C5;
  color: #fff;
  box-shadow: 0 2px 8px rgba(70,148,197,0.09);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #1A2432;
  color: #fff;
}
.cookie-banner .reject {
  background: #F9F7F1;
  color: #1A2432;
  border: 2px solid #dfe7ef;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #efefef;
  color: #4694C5;
}
.cookie-banner .settings {
  background: none;
  color: #4694C5;
  border: none;
  text-decoration: underline;
  font-weight: 500;
  padding-left: 6px;
  padding-right: 6px;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  color: #1A2432;
  background: #F9F7F1;
}

/* Cookie Settings Modal */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 5100;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(26,36,50,0.32);
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 430px;
  width: 98vw;
  padding: 36px 26px 28px 26px;
  box-shadow: 0 4px 42px 0 rgba(26,36,50,0.13);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInScale 0.2s cubic-bezier(.4,0,.2,1);
  color: #1A2432;
}
@keyframes fadeInScale {
  from { transform: scale(0.86); opacity:0; }
  to { transform: scale(1); opacity:1; }
}
.cookie-modal-content h3 {
  font-size: 1.28rem;
  margin-bottom: 6px;
  color: #4694C5;
}
.cookie-modal-content .category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #e8e8ee;
  font-size: 1.06rem;
}
.cookie-modal-content .category:last-child {
  border-bottom: none;
}
.cookie-modal-content .toggler {
  width: 43px;
  height: 24px;
  position: relative;
  display: inline-block;
}
.cookie-modal-content .toggler input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-modal-content .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 12px;
  transition: background 0.2s;
}
.cookie-modal-content .toggler input:checked + .slider {
  background-color: #4694C5;
}
.cookie-modal-content .slider:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.cookie-modal-content .toggler input:checked + .slider:before {
  transform: translateX(19px);
}
.cookie-modal-content .category.essential label {
  color: #aaa;
  font-size: 1rem;
}
.cookie-modal-content .category.essential .slider {
  background-color: #4694C5;
}
.cookie-modal-content .category.essential .slider:before {
  background: #fff;
}
.cookie-modal-footer {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal-footer button {
  min-width: 108px;
  min-height: 40px;
  font-size: 1rem;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal-footer .apply {
  background: #4694C5;
  color: #fff;
  border: none;
}
.cookie-modal-footer .apply:focus, .cookie-modal-footer .apply:hover {
  background: #1A2432;
}
.cookie-modal-footer .cancel {
  background: #F9F7F1;
  color: #4694C5;
  border: 2px solid #e5e8f1;
}
.cookie-modal-footer .cancel:hover, .cookie-modal-footer .cancel:focus {
  background: #fff;
}

/* --------------------------------------------------
   RESPONSIVE DESIGN (mobile-first)
-------------------------------------------------- */
/* Responsive Section */
@media (max-width: 900px) {
  .section {
    padding: 32px 8px;
  }
  .container {
    padding: 0 10px;
  }
  .icon-row {
    gap: 16px;
  }
  .card-container, .fact-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.6rem;
    margin-bottom: 16px;
  }
  h2 {
    font-size: 1.28rem;
    margin-bottom: 12px;
  }
  .section {
    padding: 22px 0;
    margin-bottom: 36px;
    border-radius: 9px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .icon-row {
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .card {
    padding: 18px 10px;
    min-width: 135px;
    box-shadow: 0 1px 5px 0 rgba(70,148,197,0.07);
  }
  .fact-grid, .card-container {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .testimonial-card {
    padding: 16px 10px;
    max-width: 100%;
    font-size: 1rem;
  }
  .faq-item {
    padding: 14px 10px;
  }
  .cookie-banner {
    font-size: 0.98rem;
    padding: 18px 7px 10px 7px;
    min-height: 82px;
    gap: 10px;
  }
  .cookie-modal-content {
    padding: 18px 6px 17px 6px;
    max-width: 98vw;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-16 { margin-top: 16px; }
.mb-24 { margin-bottom: 24px !important; }
.mb-40 { margin-bottom: 40px !important; }

/* Headings custom contrast */
h2, h3 {
  color: #4694C5;
}

/* Accessibility outline */
:focus {
  outline: 2px solid #4694C5;
  outline-offset: 2px;
}

/* Micro-interaction transitions */
*:not(input):not(textarea) {
  transition: background 0.13s, border-color 0.13s, box-shadow 0.13s, color 0.13s;
}

/* Hide visually for screenreaders utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* If browser does not support Montserrat/Roboto, fallback safely */
@font-face {
  font-family: 'Montserrat';
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  font-display: swap;
}
