/* CSS RESET & BASE TYPOGRAPHY */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  color: #222933;
  background: #f7fafc;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #19547b;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #38bfa7;
  outline: none;
}

/* BRAND FONT FOR HEADINGS & CTAs */
h1, h2, h3, h4, h5, h6, .cta {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #19547b;
}
h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.2;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  color: #19547b;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #19547b;
}
p, ul, ol {
  margin-bottom: 16px;
  color: #222933;
}
ul, ol {
  padding-left: 24px;
}
li {
  margin-bottom: 8px;
}

/* CONTAINER & STRUCTURED LAYOUT */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.content-wrapper {
  margin-bottom: 40px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(25,84,123,0.06);
}

@media (max-width: 900px) {
  .section {
    padding: 30px 10px;
    margin-bottom: 40px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 20px 5px;
    margin-bottom: 24px;
    border-radius: 0;
  }
}

/* FLEXBOX LAYOUTS -------------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(25,84,123,0.07);
  flex: 1 1 260px;
  min-width: 240px;
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(25,84,123,0.16);
  transform: translateY(-4px);
  z-index: 1;
}

.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;
    gap: 20px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f9fafd;
  border: 1px solid #e1e6ee;
  border-radius: 12px;
  box-shadow: 0 1px 5px rgba(25,84,123,0.06);
  padding: 20px;
  margin-bottom: 20px;
  color: #18253a;
  font-size: 1.05rem;
  line-height: 1.6;
}
.testimonial-card p {
  margin: 0 0 0 0;
  font-style: italic;
  color: #18253a;
  flex: 1;
}
.testimonial-card span {
  min-width: 120px;
  font-size: 1em;
  color: #19547b;
  font-weight: 600;
  align-self: flex-end;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f7fafc;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-top: 20px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(25,84,123,0.09);
  flex: 1 1 220px;
  min-width: 240px;
  padding: 24px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 14px rgba(56,191,167,0.14);
  transform: translateY(-2px);
  z-index: 1;
}
.feature-grid img {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .feature-grid {
    gap: 16px;
  }
  .feature-grid > div {
    min-width: 160px;
    flex: 1 1 140px;
    padding: 16px 12px;
  }
}
@media (max-width: 600px) {
  .feature-grid {
    flex-direction: column;
    gap: 12px;
  }
  .feature-grid > div {
    min-width: unset;
    width: 100%;
    margin-bottom: 10px;
  }
}


/* HEADER ----------------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(25,84,123,0.06);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
header img[alt="FlaschenFreude"] {
  height: 44px;
  min-width: 120px;
  margin-right: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-size: 1rem;
  color: #19547b;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: #38bfa7;
  border-bottom: 2px solid #38bfa7;
}
.main-nav .cta {
  margin-left: 18px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #19547b;
  padding: 8px 14px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 3px solid #38bfa7;
}

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

/* MOBILE MENU OVERLAY ---------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #19547b;
  box-shadow: 0 2px 12px rgba(25,84,123,.18);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 36px;
  padding-left: 36px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  position: absolute;
  top: 18px;
  right: 24px;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}
.mobile-menu-close:focus {}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 8px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 7px 0 7px 0;
  transition: color 0.18s, background 0.18s;
  border-radius: 6px;
}
.mobile-nav a:hover {
  background: #2591b6;
  color: #fff;
}

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

/* CTA BUTTONS ------------------------------------------ */
.cta {
  display: inline-block;
  background: #38bfa7;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 28px;
  padding: 12px 32px;
  box-shadow: 0 2px 10px rgba(25,84,123,0.06);
  margin-top: 12px;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
  text-align: center;
}
.cta:hover, .cta:focus {
  background: #19547b;
  color: #f9eec8 !important;
  outline: none;
  box-shadow: 0 6px 16px rgba(25,84,123,0.15);
  transform: translateY(-1px) scale(1.03);
}
.cta:active {
  background: #145184;
}

/* GENERAL BUTTON STYLE */
button,
input[type="submit"],
input[type="button"] {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 30px;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 600;
  background: #38bfa7;
  color: #fff;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  cursor: pointer;
}
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background: #19547b;
  color: #f9eec8;
}

/* LINKS IN FOOTER AND BODY ----------------------------- */
footer a,
.content-wrapper a:not(.cta) {
  color: #19547b;
  text-decoration: underline;
  transition: color 0.2s;
  font-weight: 500;
}
footer a:hover,
.content-wrapper a:not(.cta):hover {
  color: #38bfa7;
  text-decoration: underline;
}

/* LISTS ------------------------------------------------ */
ul, ol {
  margin-bottom: 14px;
  line-height: 1.7;
}

/* FOOTER ----------------------------------------------- */
footer {
  background: #1f2b38;
  color: #fff;
  padding: 40px 0 18px 0;
  font-size: 1rem;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  justify-content: flex-start;
}
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #b9d3e7;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.17s, border 0.17s;
  font-size: 1rem;
}
.footer-nav a:hover {
  color: #38bfa7;
  border-bottom: 1px solid #38bfa7;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: #e5f2ff;
  font-size: 1rem;
}
.footer-contact img {
  width: 22px;
  height: 22px;
  margin-right: 4px;
}
.footer-bottom {
  font-size: 0.95rem;
  color: #b9d3e7;
  margin-top: 8px;
}
@media (max-width: 800px) {
  footer .container {
    gap: 18px;
  }
  .footer-contact {
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* SECTION HEADINGS & LAYOUTS --------------------------- */
main section {
  margin-bottom: 40px;
}

/* TABLES (if any) */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 24px;
}
th, td {
  border: 1px solid #d7e1eb;
  padding: 12px;
  text-align: left;
  font-size: 1rem;
}
th {
  background: #f3f7fa;
  color: #19547b;
  font-weight: 700;
}

/* FORMS (if used at all) -------------------------------- */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  border: 1px solid #b5c4d3;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 18px;
  width: 100%;
  font-size: 1rem;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #38bfa7;
  border-color: #38bfa7;
}
label {
  font-size: 1rem;
  font-weight: 500;
  color: #19547b;
  margin-bottom: 4px;
}

/* MISCELLANEOUS ---------------------------------------- */
strong {
  color: #19547b;
  font-weight: 700;
}
hr {
  border: 0;
  border-top: 1px solid #dbe8f3;
  margin: 32px 0 28px 0;
}
sub, sup {
  font-size: 0.88em;
}

/* UTILITIES -------------------------------------------- */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.hide-mobile {
  display: block;
}
@media (max-width: 700px) {
  .hide-mobile {
    display: none !important;
  }
}

/* ANIMATIONS & MICRO-INTERACTIONS ---------------------- */
.card, .feature-grid > div, .testimonial-card, .cta, button {
  transition: box-shadow 0.16s, background 0.16s, color 0.16s, transform 0.18s;
}
section, .section {
  animation: fadeInSection 0.8s cubic-bezier(.46,.03,.52,.96);
}
@keyframes fadeInSection {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* RESPONSIVE TYPOGRAPHY SCALE -------------------------- */
@media (max-width: 900px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1rem; }
  body, p, li { font-size: 1rem; }
}

/* COOKIE CONSENT BANNER & MODAL ------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #1f2b38;
  color: #fff;
  box-shadow: 0 -2px 12px rgba(25,84,123,0.16);
  padding: 26px 16px 18px 16px;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 1rem;
  animation: fadeInSection 0.7s cubic-bezier(.37,.12,.74,.82);
}
.cookie-banner p {
  margin: 0;
  flex: 1 1 220px;
  color: #fff;
  font-size: 1.04rem;
}
.cookie-banner button {
  margin-left: 10px;
  min-width: 120px;
  background: #38bfa7;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.cookie-banner button.reject {
  background: #e03333;
}
.cookie-banner button.settings {
  background: #19547b;
  color: #fff;
}
.cookie-banner button:hover {
  filter: brightness(1.08);
  box-shadow: 0 2px 8px rgba(25,84,123,0.09);
}

/* COOKIE MODAL ----------------------------------------- */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(31,43,56,0.75);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInSection 0.5s cubic-bezier(.43,.18,.53,.82);
}
.cookie-modal .modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 38px rgba(25,84,123,0.25);
  padding: 38px 30px 32px 30px;
  width: 94vw;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 18px;
  top: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  font-weight: bold;
  color: #19547b;
  cursor: pointer;
}
.cookie-modal h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #19547b;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
}
.cookie-category label {
  font-size: 1rem;
  color: #19547b;
}
.cookie-category input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.cookie-category.essential label {
  color: #555;
  font-weight: bold;
}

.cookie-modal .save-btn {
  background: #38bfa7;
  color: #fff;
  border-radius: 24px;
  margin-top: 16px;
  padding: 12px 0;
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 700;
  font-size: 1rem;
}
.cookie-modal .save-btn:hover {
  background: #19547b;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 6px;
  }
  .cookie-modal .modal-content {
    padding: 22px 10px 18px 10px;
  }
}

/* CUSTOM SCROLLBAR ------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
  background: #f3f3f5;
}
::-webkit-scrollbar-thumb {
  background: #b5c4d3;
  border-radius: 6px;
}

/* PRINT ------------------------------------------------ */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body, main { background: #fff !important; color: #000 !important; }
}
