/* --- 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, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  font: inherit;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F6F3EE;
  color: #38322e;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #38594B;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #7e6540;
  text-decoration: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
  color: #2e3c36;
  letter-spacing: 0.01em;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2.1rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: #595249;
}
h4, h5, h6 {
  font-size: 1.17rem;
  color: #38322e;
}
p, ul, ol, table {
  margin-bottom: 18px;
}
p {
  font-size: 1.08rem;
  color: #463e36;
  line-height: 1.6;
}
ul, ol {
  padding-left: 20px;
}
li {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #403a31;
}
strong {
  font-weight: bold;
  color: #38322e;
}
.container {
  width: 100%;
  max-width: 1040px;
  padding-left: 18px;
  padding-right: 18px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Layout Containers (Flex only) --- */
header > .container,
footer > .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

footer > .container {
  flex-wrap: wrap;
  align-items: flex-end;
  padding-top: 36px;
  padding-bottom: 36px;
  border-top: 1px solid #E6DDCD;
  background: #F6F3EE;
}

footer img {
  height: 60px;
}

footer .footer-nav {
  display: flex;
  gap: 18px 26px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 1rem;
}
footer .footer-nav a {
  color: #566151;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-weight: 600;
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 3px;
  transition: background 0.20s, color 0.20s;
}
footer .footer-nav a:hover, footer .footer-nav a:focus {
  background: #e6ddcd;
  color: #38594B;
}
footer .footer-legal {
  font-size: 0.93rem;
  color: #7D6E5C;
  margin-top: 14px;
  text-align: left;
}

.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: 'Playfair Display', serif;
  color: #2e3c36;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 3px 12px 3px 6px;
  border-radius: 4px;
  font-weight: 500;
  transition: background .18s, color .18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #D9C1A3;
  color: #38594B !important;
}
header .container > img {
  height: 50px;
  width: auto;
  flex-shrink: 0;
}

.cta-button {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem;
  font-weight: 600;
  background: #38594B;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 34px;
  margin-left: 26px;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(56,89,75,0.12);
  letter-spacing: 0.01em;
  transition: background 0.23s, color 0.23s, box-shadow 0.23s, transform 0.18s;
  text-decoration: none;
}
.cta-button:hover, .cta-button:focus {
  background: #466c5c;
  color: #fff;
  box-shadow: 0 2px 16px rgba(56,89,75,0.22);
  transform: translateY(-1px) scale(1.025);
}

/* --- Hamburger Mobile Nav --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #38594B;
  cursor: pointer;
  margin-left: 16px;
  border-radius: 5px;
  padding: 6px 10px;
  transition: background 0.19s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #e6ddcd;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  background: #fff;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 350px;
  height: 100vh;
  z-index: 3000;
  box-shadow: -4px 0 16px rgba(56,89,75,0.16);
  transform: translateX(105%);
  transition: transform .38s cubic-bezier(.61,-0.01,.45,1.13);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
  transition: transform .34s cubic-bezier(.47,.14,.36,1.03);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #38594B;
  cursor: pointer;
  margin: 20px 20px 0 0;
  border-radius: 6px;
  transition: background 0.19s;
  z-index: 3500;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #e6ddcd;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 30px 0 0 32px;
}
.mobile-nav a {
  font-family: 'Playfair Display', serif;
  background: none;
  color: #2e3c36;
  font-size: 1.22rem;
  padding: 11px 0 11px 2px;
  border: none;
  width: 95%;
  border-radius: 7px;
  margin-bottom: 3px;
  transition: background .18s, color .18s;
  text-decoration: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E6DDCD;
  color: #38594B;
}

@media (max-width: 990px) {
  header > .container,
  footer > .container {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 12px;
  }
  .cta-button {
    margin-left: 10px;
    padding: 11px 24px;
    font-size: 1rem;
  }
  header .container > img {
    height: 43px;
  }
}
@media (max-width: 760px) {
  .main-nav, .cta-button {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header > .container, footer > .container {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  footer > .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  footer img {
    height: 46px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
}

/* --- Section & Content Layout --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  position: relative;
}
.text-section {
  max-width: 800px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(56,89,75,0.11);
  padding: 32px 24px;
  min-width: 270px;
  flex: 1 1 340px;
  transition: box-shadow .25s, transform .19s;
}
.card:hover {
  box-shadow: 0 4px 32px rgba(56,89,75,0.18);
  transform: translateY(-3px) scale(1.022);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 20px 30px 18px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(56,89,75,0.07);
  border-left: 6px solid #D9C1A3;
  min-width: 0;
  max-width: 550px;
  transition: box-shadow .2s;
}
.testimonial-card p {
  color: #36302b;
  font-size: 1.09rem;
  font-family: 'Playfair Display', serif;
}
.testimonial-card .client {
  font-size: 0.97rem;
  color: #7e6540;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-style: italic;
  margin-left: 2px;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px rgba(56,89,75,0.15);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(56,89,75,0.10);
  min-width: 240px;
  flex: 1 1 320px;
}

@media (max-width: 790px) {
  .section {
    padding: 24px 10px;
  }
  .content-wrapper, .text-section {
    padding: 0 6px;
  }
  .testimonial-card {
    padding: 15px 10px 11px 10px;
    font-size: 1em;
    border-left-width: 4px;
  }
}
@media (max-width: 680px) {
  .content-grid, .card-container, .text-image-section {
    flex-direction: column !important;
    gap: 20px;
  }
}

/* Ensure all cards/sections min 20px margin */
section + section,
.card + .card,
.testimonial-card + .testimonial-card {
  margin-top: 20px !important;
}

/* --- Table Styling (for Preise) --- */
table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(56,89,75,0.05);
  margin-bottom: 24px;
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 14px 12px;
  font-size: 1rem;
  color: #38322e;
}
th {
  background: #E6DDCD;
  font-family: 'Playfair Display', serif;
  color: #2e3c36;
  font-weight: 700;
  font-size: 1.07rem;
  letter-spacing: 0.01em;
}
tr:nth-child(even) {
  background: #faf8f5;
}
tr:last-child td {
  border-bottom: none;
}

/* --- Forms (kontakt page, forms) --- */
input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #D9C1A3;
  padding: 9px 13px;
  margin-bottom: 15px;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  transition: border 0.18s, box-shadow 0.18s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #38594b;
  box-shadow: 0 1px 8px rgba(56,89,75,0.10);
}
label {
  font-weight: 600;
  margin-bottom: 7px;
  display: block;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 28px rgba(56,89,75,0.13);
  border-top: 1.5px solid #D9C1A3;
  z-index: 5000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0 32px;
  padding: 20px 14px 18px 16px;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity .26s cubic-bezier(.67,-0.04,.22,1.08), transform .27s;
}
.cookie-banner.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.cookie-banner-text {
  max-width: 560px;
  color: #544c43;
}
.cookie-banner-buttons {
  display: flex;
  gap: 15px;
  flex-direction: row;
  align-items: center;
}
.cookie-btn {
  border: none;
  border-radius: 21px;
  padding: 10px 26px;
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .21s;
}
.cookie-btn.accept {
  background: #38594B;
  color: #fff;
  box-shadow: 0 2px 8px rgba(56,89,75,0.1);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #466c5c;
}
.cookie-btn.reject {
  background: #E6DDCD;
  color: #38594B;
  border: 1px solid #d1b692;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #f4ece0;
  color: #2e3c36;
}
.cookie-btn.settings {
  background: transparent;
  color: #38594B;
  border: 1px solid #D9C1A3;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #faf9f4;
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(56,89,75,0.22);
  z-index: 7000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 54%;
  transform: translate(-50%,-50%) scale(0.98);
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 8px 52px rgba(56,89,75,0.25);
  z-index: 7500;
  min-width: 340px;
  max-width: 94vw;
  padding: 34px 22px 18px 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s cubic-bezier(.46, .03, .52, .96), transform .33s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal-title {
  font-size: 1.33rem;
  color: #38594B;
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  padding: 8px 0;
}
.cookie-toggle {
  margin-left: auto;
  display: inline-block;
}
/* Toggle Switch (for Analytics/Marketing cookies) */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ECE7DE;
  border-radius: 13px;
  transition: background .19s;
}
.cookie-switch input:checked + .cookie-slider {
  background-color: #38594B;
}
.cookie-slider:before {
  content: '';
  position: absolute;
  left: 2.5px;
  top: 2px;
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  transition: transform .21s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(15px);
}
.cookie-modal .cookie-btn {
  align-self: flex-end;
  margin-top: 15px;
}
@media (max-width: 600px) {
  .cookie-modal {
    min-width: 98vw;
    padding: 20px 6.5vw 18px 7vw;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
    padding: 20px 11px 19px 8px;
    font-size: .96rem;
  }
}

/* --- Animations --- */
.cta-button, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close, .main-nav a, .footer-nav a {
  transition: background 0.20s, color 0.20s, box-shadow 0.22s, transform 0.15s, opacity 0.18s;
}

/* --- Miscellaneous --- */
::-webkit-input-placeholder { color: #a5988c; }
::-moz-placeholder { color: #a5988c; }
:-ms-input-placeholder { color: #a5988c; }
::placeholder { color: #a5988c; }

hr {
  border: none;
  border-bottom: 1px solid #E6DDCD;
  margin: 36px 0 32px 0;
}

/* --- Utility classes --- */
.hide {
  display: none !important;
}
.text-center {
  text-align: center !important;
}
@media (max-width: 478px) {
  h1 {
    font-size: 1.29rem;
    margin-bottom: 13px;
  }
  h2 {
    font-size: 1.03rem;
  }
  .cta-button, .cookie-btn {
    font-size: 0.97rem;
    padding: 9px 11vw;
  }
  .testimonial-card {
    font-size: .98rem;
  }
  .cookie-banner-buttons {
    gap: 9px;
  }
}
