/* --------------------- CSS RESET & NORMALIZER --------------------- */
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;
}

html {
  scroll-behavior: smooth;
  font-size: 100%; /* 16px */
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F9F6F2;
  min-height: 100vh;
  color: #344E5C;
  line-height: 1.6;
  font-size: 16px;
}

*, *:before, *:after {
  box-sizing: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #E8A13C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #344E5C;
  text-decoration: underline;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}

ul, ol {
  list-style-type: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #344E5C;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  font-weight: 700;
}

h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4, h5, h6 { font-size: 1.1rem; }
p { margin-bottom: 16px; }

strong {
  color: #E8A13C;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.content-wrapper {
  margin: 0 auto 40px auto;
  max-width: 850px;
  padding: 0 10px;
}

/* ------------------------- HEADER & NAV ------------------------- */
header {
  background: #fff;
  box-shadow: 0 4px 18px 0 rgba(52, 78, 92, 0.08);
  margin-bottom: 0;
  z-index: 111;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 14px 20px;
}
header img {
  height: 48px;
}
.nav-spacer { flex: 1; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 17px;
  padding: 9px 14px;
  border-radius: 12px;
  background: transparent;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E8A13C;
  color: #344E5C;
}
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  color: #E8A13C;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: 12px;
  transition: color 0.2s;
  z-index: 102;
}
.mobile-menu-toggle:focus {
  color: #344E5C;
  outline: 2px solid #344E5C;
}

/* ------------------------ MOBILE MENU ------------------------ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: rgba(52, 78, 92, 0.98);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.83,.10,.42,.93);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 32px 32px 0 0;
  font-size: 2.1rem;
  color: #E8A13C;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 999;
}
.mobile-menu-close:focus { color: #ffd689; outline: 2px solid #ffd689; }

.mobile-nav {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  background: transparent;
  padding: 17px 24px;
  border-radius: 16px;
  transition: background 0.2s, color 0.2s;
  text-align: center;
  min-width: 200px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #E8A13C;
  color: #344E5C;
  text-decoration: none;
}

/* Hide desktop nav on mobile, show burger button */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* -------------------- SECTIONS: GENERAL -------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.section:not(:first-child) {
  border-top: 2px solid #E8A13C;
}

/* Layout classes (required) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 22px 0 rgba(52, 78, 92, 0.14);
  padding: 32px 22px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.22s, transform 0.17s;
  min-width: 260px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 28px 0 rgba(232, 161, 60, 0.19);
  transform: translateY(-3px) scale(1.017);
}
.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;
  background: #fff;
  border-left: 6px solid #E8A13C;
  box-shadow: 0 2px 16px 0 rgba(52, 78, 92, 0.11);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 20px;
  min-width: 240px;
}
.testimonial-card p {
  font-style: italic;
  color: #344E5C;
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #E8A13C;
  font-size: 0.97rem;
  font-weight: 600;
  margin-left: auto;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0 0 0;
}
.feature-grid > div {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 14px 0 rgba(232, 161, 60, 0.09);
  min-width: 230px;
  flex: 1 1 200px;
  padding: 28px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: box-shadow 0.22s, transform 0.15s;
}
.feature-grid > div img {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  filter: drop-shadow(0 6px 12px rgba(232, 161, 60, 0.12));
}
.feature-grid > div h3 {
  font-size: 1.23rem;
  margin-bottom: 9px;
  text-align: center;
  color: #E8A13C;
  font-family: 'Montserrat', Arial, sans-serif;
}
.feature-grid > div p {
  text-align: center;
  font-size: 0.98rem;
  color: #344E5C;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 4px 34px 0 rgba(232, 161, 60, 0.20);
  transform: translateY(-3px) scale(1.02);
}

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

/* ------------------------- BUTTONS ------------------------- */
.cta-btn, button.cta-btn, input[type="submit"].cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.12rem;
  font-weight: 700;
  background: #E8A13C;
  color: #344E5C;
  border: none;
  border-radius: 26px;
  padding: 16px 32px;
  cursor: pointer;
  transition: background 0.21s, color 0.21s, box-shadow 0.22s, transform 0.16s;
  box-shadow: 0 2px 18px 0 rgba(232, 161, 60, 0.09);
  margin-top: 16px;
  text-shadow: none;
}
.cta-btn:focus, .cta-btn:hover {
  background: #344E5C;
  color: #fff;
  box-shadow: 0 4px 22px 0 rgba(52, 78, 92,0.12);
  transform: translateY(-2px) scale(1.03);
}

/* -------------------- FORM STYLES ----------------------- */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 440px;
}
form label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.03rem;
  color: #344E5C;
  margin-bottom: 3px;
}
form input, form textarea {
  background: #fff;
  border-radius: 10px;
  border: 1.5px solid #E8A13C;
  padding: 14px 12px;
  font-size: 1.02rem;
  color: #344E5C;
  resize: none;
  transition: border 0.2s;
}
form input:focus, form textarea:focus {
  border-color: #344E5C;
  outline: none;
}
form button[type='submit'] {
  margin-top: 10px;
  align-self: flex-end;
}

/* ------------- LISTS (UL/OL) ---------------- */
ul, ol {
  margin-left: 0;
  padding-left: 0;
}
ul li, ol li {
  position: relative;
  padding-left: 30px;
  line-height: 1.62;
  margin-bottom: 13px;
  color: #344E5C;
  font-size: 1.03rem;
}
ul li:before {
  content: '';
  display: inline-block;
  width: 13px; height: 13px;
  background-color: #E8A13C;
  border-radius: 50%;
  position: absolute;
  left: 0; top: 7px;
  opacity: 0.7;
}

/* ----------------- FOOTER ------------------- */
footer {
  background: #fff;
  box-shadow: 0 -2px 14px 0 rgba(52, 78, 92, 0.10);
  padding: 38px 0 24px 0;
  font-size: 1rem;
  color: #344E5C;
  border-top: 2px solid #E8A13C;
  margin-top: 20px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
footer img {
  height: 42px;
  margin-bottom: 9px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 9px;
}
.footer-nav a {
  color: #344E5C;
  font-weight: bold;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  opacity: 0.85;
  transition: color 0.18s, opacity 0.18s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #E8A13C;
  opacity: 1;
}
footer p {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.98rem;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
  color: #344E5C;
}
footer p img {
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 4px 0 2px;
  filter: grayscale(1) contrast(0.8);
}

/* --------------- COOKIES CONSENT BANNER ------------------ */
.cookie-banner {
  position: fixed;
  left: 12px; right: 12px;
  bottom: 22px;
  z-index: 2400;
  background: #fff;
  border: 2.5px solid #E8A13C;
  padding: 22px 30px 24px 30px;
  border-radius: 20px;
  box-shadow: 0 2px 14px 0 rgba(52, 78, 92, 0.11);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 23px;
  max-width: 480px;
  width: calc(100% - 24px);
  transition: transform 0.36s, opacity 0.31s;
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner[hidden] {
  opacity: 0;
  pointer-events: none;
  transform: translateY(160px);
}

.cookie-banner p {
  color: #344E5C;
  font-size: 1rem;
  margin: 0 0 0 0;
}
.cookie-btn-group {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.cookie-btn,
.cookie-settings-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #E8A13C;
  color: #344E5C;
  border: none;
  border-radius: 18px;
  padding: 9px 23px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.22s, color 0.14s, box-shadow 0.16s;
  box-shadow: 0 2px 9px 0 rgba(232, 161, 60,0.10);
}
.cookie-btn:focus, .cookie-btn:hover,
.cookie-settings-btn:focus, .cookie-settings-btn:hover {
  background: #344E5C;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #E8A13C;
  border: 1.5px solid #E8A13C;
}
.cookie-btn.reject:focus, .cookie-btn.reject:hover {
  background: #F9F6F2;
  color: #344E5C;
  border: 1.5px solid #344E5C;
}

/* ------------ COOKIE SETTINGS MODAL ------------- */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 2450;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(52, 78, 92, 0.73);
  transition: opacity 0.23s;
  opacity: 1;
  pointer-events: auto;
  animation: cookieModalIn 0.35s cubic-bezier(.24,.8,.5,1);
}
.cookie-modal[hidden] {
  opacity: 0;
  pointer-events: none;
}
@keyframes cookieModalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cookie-modal-content {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 7px 33px 0 rgba(232, 161, 60, 0.19);
  padding: 40px 28px 28px 28px;
  min-width: 310px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
  color: #344E5C;
  position: relative;
}
.cookie-modal-content h2 {
  font-size: 1.4rem;
  margin-bottom: 22px;
  color: #E8A13C;
  text-align: center;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F9F6F2;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 1.05rem;
}
.cookie-category input[type='checkbox'] {
  width: 22px;
  height: 22px;
  accent-color: #E8A13C;
}
.cookie-category.essential input[type='checkbox'] {
  display: none;
}
.cookie-category.essential:after {
  content: 'Immer aktiviert';
  color: #E8A13C;
  font-size: 0.94rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  gap: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 22px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #E8A13C;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: #344E5C; }


/* ----------- ARTISTIC, CREATIVE STYLE ELEMENTS ---------- */
/* Vibrant artistically-inspired highlight/underline */
h1, h2 {
  position: relative;
  z-index: 1;
}
h1:after, h2:after {
  content: '';
  display: block;
  width: 60px;
  height: 6px;
  border-radius: 9px;
  background: #E8A13C;
  margin-top: 7px;
  margin-bottom: 8px;
  opacity: 0.7;
}
h1:after { height: 10px; }

/* Decorative artistic dot for accent */
.cta-btn:before {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #E8A13C;
  margin-right: 7px;
  box-shadow: 0 3px 14px rgba(232,161,60,0.22);
  transform: scale(0.9);
  opacity: 0.9;
}
.cta-btn:hover:before,
.cta-btn:focus:before {
  background: #fff;
  box-shadow: 0 4px 20px rgba(52,78,92,0.13);
}

/* Artistic squiggle under footer logo */
footer img[src*='logo-mark'] {
  position: relative;
}
footer img[src*='logo-mark']::after {
  content: '';
  display: block;
  width: 54px;
  height: 10px;
  background: url('data:image/svg+xml;utf8,<svg width="54" height="10" xmlns="http://www.w3.org/2000/svg"><path d="M4,7 Q13,3 26,6 Q36,11 50,3" stroke='%23E8A13C' stroke-width='3' fill='none' opacity='0.63'/></svg>');
  margin: 3px auto 0 auto;
  background-repeat: no-repeat;
}

/* Artistic hand-drawn border for cards (as box-shadow) */
.card, .testimonial-card, .feature-grid > div {
  box-shadow: 0 4px 28px 2px rgba(52, 78, 92, 0.08), 0 0 0 2.5px #E8A13C22;
}

/* --- SCROLLBAR STYLING (creative touch) --- */
::-webkit-scrollbar {
  width: 12px;
  background: #F9F6F2;
}
::-webkit-scrollbar-thumb {
  background: #E8A13C;
  border-radius: 12px;
  border: 3px solid #F9F6F2;
}

/* Typography for artistic/creative look */
h1, h2, .cta-btn, .main-nav a, .mobile-nav a, .feature-grid h3, .footer-nav a, form label {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.015em;
}
h1 { font-size: 2.6rem; color: #344E5C; text-shadow: 0 2px 8px #E8A13C21; }
h2 { font-size: 2rem; color: #344E5C; }
h3 { font-size: 1.22rem; }

/* Color for links in content */
.content-wrapper a:not(.cta-btn) {
  color: #E8A13C;
  border-bottom: 1.5px dashed #E8A13C;
  transition: color 0.18s, border 0.17s;
  font-weight: 600;
}
.content-wrapper a:not(.cta-btn):hover, .content-wrapper a:not(.cta-btn):focus {
  color: #344E5C;
  border-bottom: 1.5px solid #344E5C;
}

/* Artistic font fallback for artistic elements */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700,500&display=swap');

/* Artistic accent in lists */
ul li strong {
  color: #E8A13C;
}

/* --- RESPONSIVENESS / FLEX ONLY FOR ALL LAYOUTS --- */
@media (max-width: 900px) {
  header .container, .footer-nav, .feature-grid, .content-grid {
    flex-direction: column !important;
    gap: 20px !important;
    align-items: flex-start !important;
  }
  .feature-grid > div,
  .card,
  .testimonial-card {
    min-width: unset;
    width: 100%;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.02rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
  section { padding: 28px 7px; margin-bottom: 40px; }
  .content-wrapper { padding: 0 3px; }
  .feature-grid {
    gap: 16px;
  }
  .feature-grid > div {
    padding: 16px 11px 18px 11px;
  }
  .card {
    padding: 18px 10px;
    border-radius: 16px;
    font-size: 0.98rem;
  }
  .testimonials, .testimonial-card { gap: 12px; padding: 14px; font-size: 0.98rem; }
  .footer-nav { gap: 13px; }
  .cta-btn { padding: 14px 20px; }
  form { max-width: 98vw; }
  .cookie-banner {
    left: 4px; right: 4px; bottom: 4px;
    padding: 14px 11px 14px 15px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.02rem; }
  .cta-btn { font-size: 0.98rem; }
  .main-nav { display: none; }
}

/* For text-image-section, enforce column on mobile */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 19px !important;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ----------- MICRO-INTERACTIONS & ANIMATIONS --------- */
.cta-btn,
.card,
.feature-grid > div,
.testimonial-card {
  transition: box-shadow 0.22s cubic-bezier(.43,.49,.26,1.02),
    transform 0.17s cubic-bezier(.33,.45,.42,1),
    background 0.18s, color 0.17s;
}
.card:hover,
.feature-grid > div:hover,
.testimonial-card:hover {
  box-shadow: 0 4px 50px 0 rgba(52,78,92,0.11), 0 0 0 4px #E8A13C33;
}

input[type="text"],
input[type="email"],
textarea {
  transition: border-color 0.15s;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #344E5C;
}

/* ------------- MISC PATTERNS / OVERRIDES -------------- */
::-webkit-input-placeholder{color: #bbb;}
::-moz-placeholder{color: #bbb;}
:-ms-input-placeholder{color: #bbb;}
::placeholder{color: #bbb;}

[tabindex]:focus-visible {
  outline: 2.5px solid #E8A13C;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
  border: 0;
}

/* --------------- FLEX PATTERNS, NO GRID --------------- */
.card-container,
.content-grid,
.feature-grid,
.text-image-section,
.footer-nav,
header .container,
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

/* --------------- COLOR CONTRAST FOR TESTIMONIALS -------------- */
.testimonial-card {
  background: #fff;
  color: #344E5C;
  border-left: 6px solid #E8A13C;
}
.testimonial-card p,
.testimonial-card span {
  color: #344E5C;
}

/* --------------- PRINT STYLES ----------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  section, .content-wrapper, .card, .testimonial-card { box-shadow: none !important; }
}
