/* HanseSpanndecken Vibrant Energetic CSS: style.css */

/* ---------- RESET & BASE ---------- */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #F4F6FA;
  color: #224E81;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: #224E81; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #FFB531; }
ul, ol { padding-left: 20px; }
input, button, textarea, select { font-family: inherit; font-size: 1rem; }
:focus { outline: 2px solid #FFB531; outline-offset: 2px; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  color: #224E81;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.5rem; line-height: 1.15; }
h2 { font-size: 2rem;  }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; font-weight: 700; }
p, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem; margin-bottom: 12px;
}
strong { color: #224E81; font-weight: 700; }
main {
  word-break: break-word;
}
/* Typography scaling for mobile-first */
@media (min-width: 600px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.7rem; }
}
@media (min-width: 1024px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
}

/* ---------- LAYOUTS & SPACING ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {  /* for future use of cards */
  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;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px 2px rgba(34,78,129,0.10), 0 0.5px 0 #FFB531;
  margin-bottom: 20px;
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 991px) {
  .container { max-width: 98vw; }
}
@media (max-width: 768px) {
  .section { padding: 30px 8px; margin-bottom: 36px; }
  .content-wrapper, .card-container, .content-grid, .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card { flex-direction: column; align-items: flex-start; }
}

/* Prevent overlap globally */
section, .section, .content-wrapper, .card, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}

/* ---------- HEADER & NAVIGATION ---------- */
header {
  background: #224E81;
  width: 100%;
  box-shadow: 0 5px 15px -6px rgba(34,78,129,0.15);
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 12px 16px;
  position: relative;
}
header nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  padding: 7px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.22s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  color: #FFB531;
  border-bottom: 2px solid #FFB531;
}
header a.btn-primary {
  margin-left: 16px;
}
header img {
  height: 46px;
  width: auto;
}
.mobile-menu-toggle {
  display: none;
  font-size: 2.3rem;
  color: #FFB531;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 16px;
  z-index: 100;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #fff;
}

/* ---------- MOBILE NAVIGATION ---------- */
@media (max-width: 991px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
.mobile-menu {
  display: none;
  position: fixed;
  z-index: 1200;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,78,129,1);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100vw);
  transition: transform 0.38s cubic-bezier(.7,.19,.37,.99);
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #FFB531;
  background: none;
  border: none;
  padding: 20px 20px 0 20px;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 1400;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex; flex-direction: column; gap: 28px;
  width: 100%;
  padding: 48px 32px 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 18px 0 12px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.22s;
  display: block;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  color: #FFB531;
  border-bottom: 2px solid #FFB531;
}

@media (max-width: 991px) {
  .mobile-menu { display: flex; }
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  background: #FFB531;
  color: #224E81 !important;
  border: none;
  border-radius: 28px;
  padding: 12px 32px;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(34,78,129,0.13);
  transition: background 0.19s, color 0.15s, box-shadow 0.19s;
  text-align: center;
  margin-top: 12px;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #fff1d1;
  color: #224E81 !important;
  box-shadow: 0 3px 18px 3px rgba(255,181,49,0.14);
}
.btn-primary:active {
  background: #FFB531;
  box-shadow: 0 1.5px 10px 0 rgba(255,181,49,0.11);
}
/* Utility for accent buttons if needed */
.btn-accent {
  background: #224E81;
  color: #fff;
}
.btn-accent:hover, .btn-accent:focus {
  background: #335e9a; color: #fff;
}

/* ---------- TABLES ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px 0 rgba(34,78,129,0.07);
}
thead {
  background: #FFB531;
  color: #224E81;
}
th, td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid #F4F6FA;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1em;
}
tr:last-child td { border-bottom: none; }

/* ---------- LISTS, ICONS, FEATURES ---------- */
ul li, ol li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  position: relative;
}
ul li img { height: 28px; width: 28px; flex-shrink: 0; margin-right: 6px; }

/* Features */
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 5px 24px -2px rgba(34,78,129,0.10);
  padding: 20px 18px;
  min-width: 220px;
  max-width: 100%;
  color: #224E81;
  margin-bottom: 16px;
}

/* ---------- TESTIMONIALS ---------- */
.testimonial-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px 2px rgba(34,78,129,0.10), 0 0.5px 0 #FFB531;
  color: #224E81;
  padding: 20px;
  margin-bottom: 20px;
  min-width: 0;
  gap: 20px;
  font-size: 1.1rem;
}
.testimonial-card p {
  color: #253b51;
  margin-bottom: 10px;
  font-size: 1.12rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.testimonial-card strong {
  color: #224E81;
}
.testimonial-card span {
  font-size: 1em;
  color: #224E81;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: 0.95;
}
.testimonial-card img {
  height: 21px!important; width: 21px!important; margin-right: 2px;
  display: inline-block;
  vertical-align: middle;
}
.testimonial-card div img {
  margin-top: 2px;
}

/* ---------- ACCORDION (FAQ) ---------- */
.faq-accordion > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 12px -4px rgba(34,78,129,0.11);
  margin-bottom: 16px;
  padding: 18px 20px;
  transition: box-shadow 0.13s;
}
.faq-accordion > div:hover, .faq-accordion > div:focus-within {
  box-shadow: 0 8px 28px -6px #FFB53133, 0 1.5px 0 #FFB531;
}
.faq-accordion h3 { font-size: 1.22em; cursor: pointer; }
.faq-accordion h3::after {
  content: '+';
  float: right;
  color: #FFB531;
  font-weight: 700;
  margin-left: 10px;
}
.faq-accordion div.active h3::after { content: '-'; }
.faq-accordion div > div { display: none; padding-top: 10px; }
.faq-accordion div.active > div { display: block; }

/* ---------- FOOTER ---------- */
footer {
  background: #224E81;
  color: #fff;
  padding: 40px 0 10px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}
footer nav a {
  color: #FFB531;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1em;
  transition: color 0.21s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  text-decoration: underline;
}
footer p, footer a { color: #fff; font-size: 0.99em; }
footer a:hover, footer a:focus { color: #FFB531; }
footer img { height: 25px; width: 25px; display: inline-block; margin-right: 7px; }
footer div:last-child { margin-top: 10px; }
.footer-social a {
  display: inline-block;
  margin-right: 7px;
}

@media (max-width: 700px) {
  footer .container { flex-direction: column; gap: 12px; align-items: stretch; }
}

/* ---------- COOKIE CONSENT ---------- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 2100;
  background: #224E81;
  color: #fff;
  padding: 24px 16px 16px 16px;
  box-shadow: 0 -3px 32px 0 rgba(0,0,0,0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: slideInBottom 0.44s cubic-bezier(.65,.16,.45,.93);
}
@keyframes slideInBottom {
  0% { transform: translateY(80px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  color: #fff;
  font-size: 1.08em;
  margin-bottom: 8px;
  text-align: center;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.cookie-btn, .cookie-btn-settings {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 23px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  background: #FFB531;
  color: #224E81;
  transition: background 0.18s, color 0.18s, box-shadow 0.17s;
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: #fff1d1; color: #224E81;
  box-shadow: 0 3px 16px 1px #FFB53155;
}
.cookie-btn.reject {
  background: #fff;
  color: #224E81;
  border: 1.5px solid #FFB531;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #FFB531; color: #224E81;
}
.cookie-btn-settings {
  background: #224E81;
  color: #FFB531;
  border: 1.5px solid #FFB531;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: #FFB531; color: #224E81;
}

/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34,78,129,0.72);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookie .39s cubic-bezier(.47,.02,.68,1.61);
}
@keyframes fadeInCookie {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #224E81;
  border-radius: 22px;
  padding: 34px 24px 26px 24px;
  max-width: 98vw;
  min-width: 320px;
  max-width: 420px;
  box-shadow: 0 7px 32px 6px #224E8155;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: popInCookieModal .27s cubic-bezier(.47,.02,.68,1.21);
}
@keyframes popInCookieModal {
  from { transform: scale(0.87); opacity: 0; }
  to { transform: scale(1.0); opacity: 1; }
}
.cookie-modal h3 {
  color: #FFB531;
  margin-bottom: 12px;
  font-size: 1.25em;
}
.cookie-category {
  display: flex; align-items: center; gap: 13px;
  font-size: 1em;
  margin-bottom: 12px;
}
.cookie-toggle {
  appearance: none;
  width: 36px; height: 20px;
  background: #d9e3f1;
  border-radius: 20px;
  position: relative;
  outline: none;
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.16s;
  border: 1px solid #FFB53122;
}
.cookie-toggle:checked {
  background: #FFB531;
}
.cookie-toggle:after {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute; left: 1px; top: 1px;
  transition: left 0.18s;
  box-shadow: 0 1px 4px 0 #F4F6FA22;
}
.cookie-toggle:checked:after {
  left: 17px;
}
.cookie-modal .modal-close {
  position: absolute; right: 18px; top: 14px;
  background: none; border: none;
  font-size: 1.18em; color: #FFB531;
  cursor: pointer; z-index: 10;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: #224E81;
}

/* ---------- RESPONSIVE UTILITIES ---------- */
@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .btn-primary, .cookie-btn, .cookie-btn-settings { padding: 11px 18px; font-size: 0.98em; }
  .mobile-nav a { font-size: 1.15rem; }
  .cookie-modal { min-width: 0; width: 95vw; padding: 21px 10px 21px 10px; }
}

/* ---------- MICRO-INTERACTIONS & EFFECTS ---------- */
section, .section, .card, .feature-item, .testimonial-card, .faq-accordion > div {
  transition: box-shadow 0.16s cubic-bezier(.37,.22,.2,.85), background 0.17s;
}
section:hover, .feature-item:hover, .card:hover, .testimonial-card:hover, .faq-accordion > div:hover, section:focus-within, .card:focus-within {
  box-shadow: 0 7px 38px -8px #FFB53133, 0 1.5px 0 #FFB531;
  background: #fffbe8;
}

.btn-primary, .cookie-btn, .cookie-btn-settings {
  transition: box-shadow 0.15s, background 0.15s, color 0.15s;
}

/* ---------- UTILITIES & MISC ---------- */
.text-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 #224E8120;
  padding: 21px 18px;
  margin-bottom: 16px;
  font-size: 1.05rem;
}
@media (max-width: 700px) {
  .text-section { padding: 14px 6px; }
}

/* Icon alignment in contact info */
a img[alt='Telefon'], a img[alt='E-Mail'] {
  height: 20px; width: 20px; margin-right: 7px; display: inline-block; vertical-align: -4px;
}

/* Map & clock icon */
p img[alt='Lage'], p img[alt='Öffnungszeiten'] {
  height: 19px; width: 19px; margin-right: 6px; display: inline-block; vertical-align: -3px;
}

/* ---------- END HanseSpanndecken CSS ---------- */
