/* CSS RESET & BASE TYPOGRAPHY */
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;
}
/* Modern Normalize */
html { line-height: 1.5; -webkit-text-size-adjust:100%; }
body { background: #fff; color: #205072; font-family: 'Roboto', Arial, sans-serif; font-size: 16px; }
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section { display: block; }
img { max-width: 100%; display: block; height: auto; border-radius: 8px; }
ul,ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
strong,b { font-weight: 700; }

/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700,900&family=Roboto:wght@400;700&display=swap');

:root {
  --primary: #205072;
  --secondary: #48A9A6;
  --accent: #F4EAE6;
  --white: #fff;
  --black: #222;
  --gray: #dde7ed;
  --error: #ff4545;
  --success: #2ecc40;

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;

  --radius: 20px;
  --radius-small: 8px;
  --shadow:
    0 3px 18px 2px rgba(32,80,114,0.10), 0 1.5px 6px 0 rgba(72,169,166,0.08);
}

body {
  background: var(--accent);
  font-family: var(--font-body);
  color: var(--primary);
  min-width: 320px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -1px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.13;
  margin-bottom: 16px;
}
h1 { font-size: 2.4rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; }
p, ul, ol { margin-bottom: 12px; font-size: 1rem; }
.tagline {
  font-size: 1.25rem;
  font-family: var(--font-display);
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  .tagline { font-size: 1.5rem; }
}

/* CONTAINER & WRAPPERS */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (min-width: 768px) {
  .section {
    padding: 60px 0;
  }
  .content-wrapper {
    gap: 36px;
  }
}

/* MAIN NAVIGATION */
header {
  background: var(--white);
  box-shadow: 0 4px 22px -6px rgba(32,80,114,0.10);
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  justify-content: flex-start;
}
.main-nav img {
  height: 48px;
  margin-right: 18px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  letter-spacing: 0.02em;
  padding: 7px 16px;
  border-radius: var(--radius-small);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  position: relative;
}
.main-nav a:not(.cta):hover,
.main-nav a:not(.cta):focus {
  background: var(--secondary);
  color: var(--white);
}
.main-nav .cta {
  background: var(--primary);
  color: var(--white);
  margin-left: 22px;
  border-radius: 30px;
  box-shadow: 0 3px 10px 0 rgba(72,169,166,0.11);
  font-size: 1.1rem;
  padding: 9px 28px;
  transition: background 0.22s, box-shadow 0.18s, color 0.18s;
}
.main-nav .cta:hover, .main-nav .cta:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 6px 20px -5px rgba(32,80,114,0.15);
}

/* ---- HAMBURGER MENU MOBILE ---- */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 22px;
  top: 15px;
  background: var(--primary);
  color: var(--accent);
  border: none;
  border-radius: 40px;
  font-size: 2.1rem;
  width: 46px;
  height: 46px;
  z-index: 1090;
  cursor: pointer;
  transition: background 0.15s;
  box-shadow: var(--shadow);
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--secondary);
}

/* Hide nav on mobile */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu-toggle {
    display: none;
  }
  .main-nav {
    display: flex;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 1200;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  box-shadow: -7px 0 32px rgba(32,80,114,0.18);
  transform: translateX(100%);
  transition: transform 0.43s cubic-bezier(0.33,0.77,0.3,1);
  padding: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--accent);
  font-size: 2.2rem;
  border: none;
  align-self: flex-end;
  margin: 32px 32px 0 0;
  cursor: pointer;
  z-index: 1300;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 36px 40px;
  margin-top: 24px;
}
.mobile-nav a {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.03em;
  padding: 12px 7px 12px 0;
  transition: color 0.15s;
  border-radius: var(--radius-small);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: var(--accent);
}

/* ---- HERO SECTION ---- */
.hero {
  background: var(--secondary);
  color: var(--white);
  padding: 58px 0 42px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  color: var(--white);
  font-size: 2.7rem;
  margin-bottom: 0.5em;
}
.hero .tagline {
  color: var(--accent);
  font-weight: 900;
  font-size: 1.35rem;
  margin-bottom: 32px;
}
.hero .cta {
  font-weight: bold;
  background: var(--primary);
  color: var(--accent);
  border-radius: 32px;
  padding: 13px 30px;
  font-size: 1.15rem;
  box-shadow: 0 4px 18px -1px rgba(32,80,114,0.11);
  transition: background 0.21s, color 0.21s, box-shadow 0.23s;
  margin-top:16px;
}
.hero .cta:hover, .hero .cta:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 8px 30px -5px rgba(32,80,114,0.19);
}

@media (min-width: 768px) {
  .hero h1 { font-size: 3.3rem; }
  .hero .container { padding-top: 10px; }
}

/* ---- FEATURES GRID ---- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 16px;
  justify-content: space-between;
}
.features-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 16px 26px 16px;
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.19s, box-shadow 0.18s;
}
.features-grid > div:hover, .features-grid > div:focus-within {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 30px -10px rgba(72,169,166,0.21);
}
.features-grid img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}
.features-grid h3 {
  color: var(--primary);
  font-size: 1.23rem;
  margin-bottom:7px;
}
.features-grid p {
  color: var(--primary);
  font-size: 1rem;
}
@media (max-width: 1024px) {
  .features-grid { gap: 18px; }
  .features-grid > div { padding: 22px 10px; }
}
@media (max-width: 768px) {
  .features-grid {
    flex-direction: column;
    gap:20px;
  }
  .features-grid > div {
    width: 100%;
    min-width: 0;
  }
}

/* ---- TESTIMONIAL CARDS ---- */
.testimonials {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  justify-content: space-between;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 24px;
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 3px 15px -3px rgba(32,80,114,0.08);
  min-width: 220px;
  flex: 1 1 240px;
  position: relative;
  transition: box-shadow 0.17s, transform 0.18s;
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.1rem;
  font-family: var(--font-body);
  margin-bottom: 4px;
}
.testimonial-card span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--secondary);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 10px 28px -8px rgba(32,80,114,0.12);
  transform: translateY(-3px) scale(1.03);
}
@media (max-width: 1024px) {
  .testimonials { gap: 20px; }
  .testimonial-card { padding: 18px 14px; }
}
@media (max-width: 768px) {
  .testimonials {
    flex-direction: column;
    gap: 20px;
  }
}

/* ---- CTA SECTIONS ---- */
section.cta {
  background: var(--primary);
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--accent);
  text-align: center;
  padding-top:50px;
  padding-bottom:50px;
  margin-bottom: 0;
}
section.cta h2 {
  color: var(--accent);
  margin-bottom: 16px;
}
section.cta .cta {
  background: var(--secondary);
  color: var(--primary);
  margin: 24px 0 0 0;
  font-size: 1.1rem;
  padding: 13px 32px;
  border-radius: 32px;
  box-shadow: 0 3px 10px 0 rgba(244,234,230,0.10);
  font-weight: 900;
  transition: background 0.16s, color 0.16s, box-shadow 0.18s;
}
section.cta .cta:hover, section.cta .cta:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 9px 24px -6px rgba(244,234,230,0.20);
}
section.cta p {
  color: var(--accent);
  margin-top: 16px;
}

/* ---- CARDS AND LISTS ---- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 18px;
  transition: box-shadow 0.16s, transform 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 14px 30px -8px var(--secondary);
  transform: translateY(-3px) scale(1.02);
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 768px) {
  .container, .content-grid, .card-container, .features-grid, .text-image-section {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .card, .features-grid > div, .testimonial-card {
    width: 100%;
    min-width: 0;
  }
}

/* TEXT SECTIONS */
.text-section {
  padding: 12px 0 0 0;
  font-size: 1rem;
}
.text-section h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-top: 18px;
  margin-bottom: 8px;
  font-weight: bold;
}
.text-section ul, .text-section ol {
  margin-left: 1.3em;
  margin-bottom: 16px;
  list-style: disc inside;
  color: var(--primary);
}
.text-section li {
  margin-bottom: 6px;
}

/* TABLES (Preise) */
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  background: var(--accent);
  margin-bottom: 24px;
  font-size: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
thead {
  background: var(--primary);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 900;
}
th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray);
  text-align: left;
}
tbody tr:last-child td {
  border-bottom: none;
}
th {
  font-weight: bold;
}
tr:hover td {
  background: var(--secondary);
  color: var(--white);
  transition: background 0.22s, color 0.22s;
}

@media (max-width: 600px) {
  table, tbody, thead, tr, td, th { display: block; width: 100%; }
  tr { margin-bottom: 10px; }
  th {border-bottom: none;}
}

/* FORMS (generic) */
input, select, textarea, button {
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  border-radius: var(--radius-small);
}
input, textarea {
  border:1.5px solid var(--primary);
  padding:10px 14px;
  margin-bottom: 12px;
  transition: border 0.16s;
}
input:focus, textarea:focus {
  border-color: var(--secondary);
}
button, .cta {
  cursor: pointer;
  border: none;
  font-family: var(--font-display);
  transition: background 0.19s, color 0.19s, box-shadow 0.19s;
}

/* MAP EMBED (Kontakt) */
.map-embed {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-top: 12px;
  margin-bottom: 20px;
  color: var(--primary);
  line-height: 1.43;
  font-size: 1rem;
}

/* ---- FOOTER ---- */
footer {
  background: var(--secondary);
  color: var(--accent);
  padding: 48px 0 0 0;
  border-radius: 42px 42px 0 0;
  box-shadow: 0 -5px 22px -9px rgba(32,80,114,0.05);
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 50px;
}
footer img {
  height: 54px;
  margin-bottom: 12px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 0;
  border-radius: var(--radius-small);
  transition: color 0.18s, background 0.16s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
  background: var(--accent);
}
.footer-contact-short {
  color: var(--accent);
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom:10px;
}
.footer-contact-short img {
  height: 18px;
  width: 18px;
  margin-right: 7px;
  display:inline-block;
  vertical-align:middle;
}
.footer-legal-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.footer-legal-links a {
  color: var(--accent);
  opacity: 0.75;
  font-size: 0.99rem;
}
.footer-legal-links a:hover {
  color: var(--primary);
}
.footer-social-media {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-top: 10px;
}
.footer-social-media a img {
  filter: brightness(0) invert(1);
  height: 30px;
  width: 30px;
  transition: filter 0.16s, transform 0.16s;
}
.footer-social-media a:hover img {
  filter: brightness(0.85) sepia(1) hue-rotate(130deg);
  transform: scale(1.18);
}

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  footer nav { flex-direction: row; flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 768px) {
  footer {
    padding-top:24px;
    border-radius: 24px 24px 0 0;
    font-size: 1rem;
  }
  footer .container {padding:0;}
  footer .content-wrapper{
    padding-bottom:24px;
    gap:18px;
    flex-direction: column;
    align-items:flex-start;
  }
  footer img {height:40px;}
}

/* MICRO-INTERACTIONS & ANIMATIONS */
.cta, button, a.cta, .main-nav .cta, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.23s, color 0.23s, box-shadow 0.22s, transform 0.14s;
}
.card, .features-grid > div, .testimonial-card {
  transition: box-shadow 0.19s, transform 0.19s;
}

/* SEPARATORS/geometric accents */
hr {
  border: none;
  border-top: 2.5px solid var(--secondary);
  margin: 32px 0 32px 0;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 -3px 22px -4px rgba(32,80,114,0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 9999;
  padding: 18px 20px 18px 20px;
  transition: transform 0.38s cubic-bezier(0.38,0.77,0.35,1);
  font-size:1rem;
  gap: 16px;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 26px;
  padding: 8px 20px;
  border: none;
  margin: 0;
  background: var(--secondary);
  color: var(--accent);
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.cookie-banner button.accept {
  background: var(--success);
  color: var(--white);
}
.cookie-banner button.reject {
  background: var(--error);
  color: var(--white);
}
.cookie-banner button.settings {
  background: var(--primary);
  color: var(--accent);
  border:1px solid var(--accent);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  opacity: 0.8;
}

@media (max-width: 480px) {
  .cookie-banner, .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 10px;
  }
  .cookie-banner {
    font-size: 0.96rem;
  }
}

/* Cookie Consent Modal */
.cookie-modal-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 10100;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,80,114,0.75);
  transition: opacity 0.3s;
}
.cookie-modal {
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px -10px var(--primary), var(--shadow);
  max-width: 440px;
  width: 90%;
  padding: 30px 16px 22px 16px;
  text-align: left;
  animation: popin 0.26s cubic-bezier(0.41,0.6,0.26,1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@keyframes popin {
  0% { transform: scale(0.92) translateY(28px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.43rem;
  margin-bottom:10px;
  color: var(--primary);
  font-family: var(--font-display);
}
.cookie-categories {
  margin:16px 0 18px 0;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--gray);
  padding: 8px 0;
  font-size:1rem;
}
.cookie-category label {
  font-weight: bold;
  margin-right:12px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 20px;
  height:20px;
}
.cookie-category input[disabled] {
  opacity: 0.5;
  pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 24px;
}
.cookie-modal .close-modal {
  background: var(--error);
  color: var(--white);
  border-radius: 25px;
  border: none;
  padding: 6px 20px;
  font-family: var(--font-display);
  font-weight: bold;
  cursor: pointer;
  margin-left: -3px;
}
.cookie-modal .save-modal {
  background: var(--success);
  color: var(--white);
  border-radius: 25px;
  border: none;
  padding: 6px 20px;
  font-family: var(--font-display);
  font-weight: bold;
  cursor: pointer;
}
.cookie-modal .close-modal:hover, .cookie-modal .save-modal:hover {
  opacity: 0.85;
}

/* MISC UTILITY */
.mt-16 { margin-top: 16px; }
.mb-20 { margin-bottom: 20px; }
.mr-8 { margin-right: 8px; }
.flex-row { display: flex; flex-direction: row; }
.flex-column { display: flex; flex-direction: column; }

/* GENERAL RESPONSIVENESS */
@media (max-width: 1024px) {
  .container {
    padding: 0 10px;
  }
}
@media (max-width: 600px){
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.3rem !important; }
}

/* Prevent overlap between cards/sections */
.card, .testimonial-card, .features-grid > div, .section, .content-wrapper, .card-container, .content-grid {
  margin-bottom: 20px;
}

/* Custom scrollbar for mobile nav and cookie modal */
.mobile-menu, .cookie-modal {
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) var(--primary);
}
.mobile-menu::-webkit-scrollbar, .cookie-modal::-webkit-scrollbar {
  width: 7px;
  background: var(--primary);
}
.mobile-menu::-webkit-scrollbar-thumb, .cookie-modal::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 22px;
}

/* Hide mobile menu when not active */
.mobile-menu:not(.active) {
  pointer-events: none;
}

/* --- END OF STYLE --- */