/* 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F1FAEE;
  color: #1D3557;
  font-size: 16px;
  min-height: 100vh;
}

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

/* COLOR & VARIABLES */
:root {
  --primary: #1D3557;
  --secondary: #F1FAEE;
  --accent: #A61B29;
  --highlight: #457B9D;
  --light: #FFFFFF;
  --gray: #E5EAF1;
  --text-gray: #4B5768;
  --shadow: 0 2px 12px 0 rgba(29,53,87,0.08);
  --radius: 10px;
  --transition: .18s cubic-bezier(.45,.03,.54,.96);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--primary);
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, ul, ol {
  color: var(--text-gray);
  font-size: 1rem;
  margin-bottom: 1em;
}
strong {
  color: var(--primary);
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--accent);
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero {
  gap: 16px;
  padding-bottom: 16px;
}

/* SECTION SPACING (MANDATORY) */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  section {
    padding: 24px 10px;
    margin-bottom: 32px;
  }
}

/* NAVIGATION & HEADER */
header {
  background: var(--primary);
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px 0 rgba(29,53,87,0.08);
}
header .container {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
header img {
  height: 40px;
  width: auto;
  vertical-align: middle;
  margin-right: 16px;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav a {
  color: var(--secondary);
  font-weight: 500;
  padding: 5px 2px;
  transition: color var(--transition), border-bottom var(--transition);
  border-bottom: 2px solid transparent;
  font-family: 'Montserrat', Arial, sans-serif;
}
nav a:hover, nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  outline: none;
}
a.cta.primary {
  background: var(--accent);
  color: var(--light);
  border: none;
  padding: 10px 26px;
  border-radius: 24px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 2px 10px 0 rgba(166,27,41,.07);
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
  margin-left: 20px;
}
a.cta.primary:hover, a.cta.primary:focus {
  background: var(--highlight);
  color: var(--light);
  transform: translateY(-2px) scale(1.02);
  outline: none;
}

/* General Button Styles */
.cta {
  background: var(--primary);
  color: var(--light);
  border-radius: 24px;
  padding: 10px 22px;
  font-size: 1rem;
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  box-shadow: var(--shadow);
  border: none;
  outline: none;
  transition: background var(--transition), transform var(--transition), color var(--transition);
  cursor: pointer;
  margin-top: 14px;
}
.cta:hover, .cta:focus {
  background: var(--accent);
  color: var(--light);
  transform: scale(1.045);
  outline: none;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--secondary);
  border: none;
  font-size: 2rem;
  border-radius: 8px;
  padding: 4px 14px;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1201;
  box-shadow: 0 2px 6px rgba(29,53,87,.13);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent);
  color: var(--light);
}
@media (max-width: 990px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  a.cta.primary {
    display: none;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  z-index: 1998;
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.45,.03,.54,.96);
  box-shadow: 0 0 24px 0 rgba(29,53,87,0.18);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  color: var(--light);
  border: none;
  margin: 25px 24px 5px 0;
  cursor: pointer;
  transition: color var(--transition);
  z-index: 2200;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 32px 24px 32px;
  width: 100%;
}
.mobile-nav a {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.3px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(241,250,238,0.085);
  width: 100%;
  display: block;
  transition: color var(--transition), background var(--transition);
  border-radius: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--highlight);
  color: var(--accent);
  outline: none;
}

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

/* MAIN SPACING & FLEX SECTION PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  margin-bottom: 20px;
  min-width: 240px;
  flex: 1 1 250px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 24px 0 rgba(29,53,87,0.13);
  transform: translateY(-3px) scale(1.01);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.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) {
  .card-container,
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 20px;
  background: #F8FAFC;
  border: 1px solid var(--gray);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  color: var(--primary);
  box-shadow: var(--shadow);
  min-width: 280px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card p {
  color: #213152;
  font-size: 1.07rem;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-left: 5px solid var(--accent);
  box-shadow: 0 6px 22px 0 rgba(29,53,87,0.15);
}

@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* FEATURES & ITEMS */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  font-size: 1rem;
  overflow: hidden;
  table-layout: auto;
}
thead {
  background: var(--primary);
  color: var(--light);
  font-family: 'Montserrat', Arial, sans-serif;
}
th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--gray);
}
th {
  font-weight: 700;
}
tr:last-child td {
  border-bottom: none;
}
tbody tr:hover {
  background: var(--gray);
  transition: background var(--transition);
}
@media (max-width: 768px) {
  table,
  thead,
  tbody,
  th, td, tr {
    display: block;
    width: 100%;
  }
  thead {
    display: none;
  }
  tr {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray);
  }
  td {
    padding-left: 42%;
    position: relative;
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: none;
  }
  td:before {
    position: absolute;
    left: 14px;
    top: 10px;
    width: 38%;
    white-space: nowrap;
    color: var(--primary);
    font-weight: bold;
    font-family: 'Montserrat', Arial, sans-serif;
    content: attr(data-label);
    font-size: 0.96rem;
  }
}

/* UL/LI STYLES */
ul, ol {
  margin-left: 22px;
  margin-bottom: 1em;
  color: var(--text-gray);
  line-height: 1.7;
}
li {
  margin-bottom: 8px;
  max-width: 900px;
  color: var(--text-gray);
}
ul li strong {
  color: var(--primary);
}

/* FORM STYLES (if any forms present in Kontakt) */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 16px;
  background: var(--secondary);
  color: var(--primary);
  transition: border-color var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  outline: none;
}
button, input[type=submit] {
  font-family: 'Montserrat', Arial, sans-serif;
}

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--secondary);
  width: 100%;
  margin-top: 40px;
}
footer .container {
  padding-top: 36px;
  padding-bottom: 24px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--secondary);
  margin-bottom: 16px;
}
.footer-brand img {
  height: 40px;
}
.footer-info {
  min-width: 240px;
  max-width: 340px;
}
.footer-info h3 {
  color: var(--accent);
  font-size: 1.18rem;
}
.footer-info p, .footer-info a {
  color: var(--secondary);
  font-size: 1rem;
}
.footer-legal {
  font-size: 0.97rem;
  color: var(--gray);
}
.footer-legal a {
  color: var(--gray);
  margin-right: 6px;
  transition: color var(--transition);
}
.footer-legal a:hover, .footer-legal a:focus {
  color: var(--accent);
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}

/* ICONS NEXT TO TEXT (KONTAKT) */
.footer-info img, .content-wrapper ul img {
  width: 20px;
  height: 20px;
  margin-right: 9px;
  vertical-align: middle;
  display: inline;
}

/* COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  z-index: 2100;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: var(--light);
  color: var(--primary);
  box-shadow: 0 -2px 12px rgba(29,53,87,0.11);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  font-size: 1rem;
  animation: cookie-slide-up .39s cubic-bezier(.45,.03,.54,.96);
}
@keyframes cookie-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.cookie-consent-banner p {
  flex: 1 1 52%;
  margin: 0;
  color: var(--text-gray);
  font-size: 1rem;
}
.cookie-consent-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  border-radius: 18px;
  padding: 8px 22px;
  background: var(--primary);
  color: var(--light);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
}
.cookie-btn.reject {
  background: #E5EAF1;
  color: var(--accent);
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--light);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--highlight);
  color: var(--light);
  transform: scale(1.037);
  outline: none;
}
@media (max-width: 768px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 10px;
    font-size: 0.97rem;
  }
  .cookie-consent-actions {
    gap: 10px;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(29,53,87,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2300;
  animation: cookie-fade-in .16s cubic-bezier(.45,.03,.54,.96);
}
@keyframes cookie-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: 0 8px 36px 0 rgba(29,53,87,0.23);
  padding: 40px 32px 28px 32px;
  max-width: 98vw;
  width: 390px;
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  animation: cookie-pop .32s cubic-bezier(.45,.03,.54,.96);
}
@keyframes cookie-pop {
  from { transform: scale(0.94) translateY(60px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-content h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 12px;
}
.cookie-category label {
  font-weight: 500;
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
.cookie-category input[type=checkbox] {
  width: 21px;
  height: 21px;
  accent-color: var(--accent);
  margin-left: 18px;
}
.cookie-essential {
  color: var(--text-gray);
  font-size: 0.98rem;
  font-style: italic;
  margin-left: 4px;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 20px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--accent);
}
@media (max-width: 480px) {
  .cookie-modal-content {
    padding: 20px 7vw 18px 7vw;
    width: 90vw;
  }
}

/* ANNOUNCEMENT OR STATUS BANNER (thank-you) */
.status-banner {
  background: var(--highlight);
  color: var(--light);
  border-radius: 8px;
  box-shadow: 0 1px 8px 0 rgba(29,53,87,.10);
  padding: 16px 24px;
  font-size: 1.1rem;
  margin-bottom: 30px;
  text-align: center;
}

/* SCROLLBAR STYLES */
body::-webkit-scrollbar {
  width: 10px;
  background: var(--gray);
}
body::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 6px;
}

/* MICRO-INTERACTIONS */
button, .cta, .cookie-btn, a {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
/* Focus Styles for a11y */
a:focus, button:focus, .cta:focus, .cookie-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Z-INDEX FOR OVERLAYS */
.mobile-menu, .cookie-modal, .cookie-consent-banner {
  z-index: 2100;
}
.mobile-menu-toggle {
  z-index: 2150;
}

/* RESPONSIVE FIXES */
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.18rem; }
  .footer-brand img {
    height: 30px;
  }
  .footer-info p {
    font-size: 0.97rem;
  }
}

/* Utility class: visually hidden for accessibility */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* GENERAL SPACING */
main {
  min-height: 60vh; /* For footer separation */
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Ensure outer html and body take full height */
html, body {
  height: 100%;
}
