/* --- Basic Reset and 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,
u,
i,
center,
dl,
dt,
dd,
menu,
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;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section {
    display: block;
}
body {
    line-height: 1.5;
    background: #FAF7F2;
    color: #232931;
}
ol,
ul {
    list-style: none;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}
button, input, select, textarea {
    font: inherit;
    background: none;
    border: none;
    outline: none;
}

/* --- Brand fonts --- */
@import url('https://fonts.googleapis.com/css?family=Oswald:400,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');

body {
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    background: #FAF7F2;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', Arial, Helvetica, sans-serif;
    font-weight: 700;
    color: #232931;
    letter-spacing: 0.5px;
}
h1 { font-size: 2.8rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 14px; }

@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.4rem; }
}

p, li, span, a, label {
    font-size: 1rem;
    color: #232931;
    line-height: 1.6;
}

strong { font-weight: 700; color: #8D8741; }

/* --- Container (centralized layout) --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Header and Navigation --- */
header {
    width: 100%;
    background: #FFF8EA;
    box-shadow: 0 2px 16px rgba(141, 135, 65, 0.06);
    border-bottom: 2px solid #F4E0AC;
    padding-top: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    position: relative;
}

.main-nav {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: center;
}
.main-nav a {
    font-family: 'Oswald', Arial, Helvetica, sans-serif;
    padding: 6px 8px;
    color: #232931;
    border-radius: 7px;
    font-size: 1rem;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
    background: #F9DC5C;
    color: #8D8741;
}

.btn-primary, .btn-secondary {
    padding: 12px 32px;
    border-radius: 28px;
    background: #F9DC5C;
    color: #232931;
    font-weight: bold;
    font-family: 'Oswald', Arial, Helvetica, sans-serif;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(249, 220, 92, 0.15);
    border: none;
    cursor: pointer;
    margin-left: 12px;
    display: inline-block;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.25s;
}
.btn-primary:hover, .btn-primary:focus {
    background: #8D8741;
    color: #FFF8EA;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 12px rgba(141, 135, 65, 0.2);
}

.btn-secondary {
    background: #8D8741;
    color: #fff;
    box-shadow: 0 2px 8px rgba(141, 135, 65, 0.12);
}
.btn-secondary:hover, .btn-secondary:focus {
    background: #F9DC5C;
    color: #232931;
    transform: translateY(-2px) scale(1.03);
}

/* Hamburger menu */
.mobile-menu-toggle {
    background: #F9DC5C;
    color: #8D8741;
    font-size: 2.2rem;
    padding: 2px 14px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    margin-left: 20px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    display: none;
    outline: none;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #8D8741;
    color: #FFF8EA;
    box-shadow: 0 2px 8px rgba(141,135,65,0.14);
}

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(35, 41, 49, 0.96);
    /* Slides in from right */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(.8,.01,.21,1), opacity 0.3s;
    opacity: 0;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    padding: 0 0 0 0;
}
.mobile-menu.open {
    transform: translateX(0);
    opacity: 1;
}
.mobile-menu-close {
    background: #F9DC5C;
    color: #8D8741;
    border-radius: 50%;
    font-size: 2rem;
    position: absolute;
    right: 23px;
    top: 23px;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    z-index: 2220;
    transition: background 0.15s, color 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
    background: #8D8741;
    color: #fff;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 110px;
    align-items: flex-start;
    padding: 0 36px;
}
.mobile-nav a {
    color: #FFF8EA;
    font-family: 'Oswald', Arial, Helvetica, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 14px 0;
    width: 100%;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.mobile-nav a:active,
.mobile-nav a:focus,
.mobile-nav a:hover {
    background: #F9DC5C;
    color: #232931;
}

/* Responsive nav */
@media (max-width: 1090px) {
  .main-nav {
      gap: 12px;
  }
  .btn-primary {
      margin-left: 6px;
      padding: 10px 18px;
      font-size: 1rem;
  }
}
@media (max-width: 900px) {
  .main-nav {
      gap: 7px;
  }
}
@media (max-width: 890px) {
  .main-nav,
  .btn-primary {
      display: none;
  }
  .mobile-menu-toggle {
      display: block;
  }
}

/* --- Main Layout Sections & Wrappers --- */
main {
    width: 100%;
    min-height: 62vh;
}
section {
    width: 100%;
}
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
}
.content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border-radius: 18px;
    padding: 42px 40px;
    box-shadow: 0 2px 16px rgba(141, 135, 65, 0.06);
    margin-bottom: 32px;
}

@media (max-width: 750px) {
  .content-wrapper {
    padding: 28px 10px;
  }
  .section {
    margin-bottom: 38px;
    padding: 28px 8px;
  }
}

/* --- Lists & Feature Items --- */
ul, ol {
    margin-left: 0;
    margin-bottom: 0;
    padding-left: 0;
}
.content-wrapper ul, .content-wrapper ol {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 6px;
}
.content-wrapper ul li,
.content-wrapper ol li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-radius: 8px;
    padding: 8px 0;
}
.content-wrapper ul li img,
.content-wrapper ol li img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    margin-right: 7px;
    border-radius: 8px;
    background: #FAF7F2;
    box-shadow: 0 2px 8px rgba(249, 220, 92, 0.07);
}

/* --- Card Patterns --- */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
    width: 100%;
}
.card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(141, 135, 65, 0.08);
    margin-bottom: 20px;
    position: relative;
    padding: 32px 28px;
    transition: box-shadow 0.23s, transform 0.2s;
    flex: 1 1 320px;
    min-width: 260px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.card:hover {
    box-shadow: 0 6px 32px rgba(249, 220, 92, 0.15);
    transform: scale(1.025);
    z-index: 3;
}

.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: 18px; align-items: stretch; }
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    background: #FFF8EA;
    padding: 22px 16px;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(249, 220, 92, 0.07);
}

/* --- Testimonials --- */
.testimonial-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 12px;
    margin-bottom: 32px;
}
.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    min-width: 260px;
    max-width: 380px;
    flex: 1 1 300px;
    background: #fff;
    color: #232931;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(141, 135, 65, 0.08);
    font-size: 1.1rem;
    transition: box-shadow 0.24s, transform 0.17s;
    margin-bottom: 20px;
}
.testimonial-card p {
    color: #232931;
    font-size: 1.1rem;
}
.testimonial-card strong {
    color: #8D8741;
    font-size: 1rem;
    font-weight: bold;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
    box-shadow: 0 6px 32px rgba(249, 220, 92, 0.18);
    transform: scale(1.025);
    z-index: 2;
}

@media (max-width: 900px) {
  .testimonial-list {
    flex-direction: column;
    gap: 20px;
  }
}

/* --- Team Section (Über Uns) --- */
.team-member-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}
.team-member {
    background: #FFF8EA;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(249, 220, 92, 0.09);
    padding: 28px 20px 16px;
    flex: 1 1 220px;
    min-width: 180px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.23s, transform 0.17s;
    margin-bottom: 20px;
}
.team-member:hover {
    box-shadow: 0 6px 24px rgba(141, 135, 65, 0.10);
    transform: scale(1.03);
    z-index: 1;
}

.expertise-highlights {
    background: #F9DC5C;
    color: #232931;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 1.02rem;
    margin-top: 20px;
    box-shadow: 0 1px 6px rgba(249,220,92,0.10);
}

/* --- Trust Section --- */
.trust-section {
    align-items: center;
    justify-content: center;
}
.trust-symbols {
    display: flex;
    flex-direction: row;
    gap: 28px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 22px;
}
.trust-symbols img {
    width: 36px;
    height: 36px;
    margin: 0 3px;
    border-radius: 8px;
    background: #FAF7F2;
    box-shadow: 0 2px 8px rgba(249,220,92,0.08);
}
.trust-symbols span {
    font-size: 1rem;
    color: #8D8741;
    padding: 0 3px;
    font-family: 'Oswald', Arial, Helvetica, sans-serif;
}

/* --- FAQ List --- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.faq-item {
    background: #FFF8EA;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(249,220,92,0.08);
    padding: 18px 22px 8px 18px;
    margin-bottom: 10px;
    transition: box-shadow 0.18s, transform 0.1s;
}
.faq-item:hover {
    box-shadow: 0 7px 18px rgba(141, 135, 65, 0.09);
    transform: scale(1.01);
}
.faq-item h3 {
    font-size: 1.18rem;
    margin-bottom: 8px;
    color: #8D8741;
}
.faq-item p {
    color: #232931;
    font-size: 1rem;
}

/* --- Confirmation Section (Thank You) --- */
.confirmation-section {
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #FFF8EA;
}
.confirmation-section ul {
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.confirmation-section ul li {
    align-items: center;
    margin-bottom: 4px;
    color: #232931;
}

/* --- Contact List (Kontakt) --- */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}
.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    padding: 6px 0;
}
.contact-list li img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-right: 5px;
    border-radius: 8px;
    background: #FAF7F2;
    box-shadow: 0 2px 8px rgba(249,220,92,0.10);
}

/* --- Affiliations (Unsere Expertise) --- */
.affiliations {
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 1.06rem;
    background: #FFF8EA;
    color: #8D8741;
    border-radius: 9px;
    padding: 9px 12px;
    font-family: 'Oswald', Arial, Helvetica, sans-serif;
    box-shadow: 0 1px 6px rgba(249,220,92,0.09);
}

/* --- Footer --- */
footer {
    background: #232931;
    padding: 28px 0 22px;
    color: #fff;
    box-shadow: 0 -2px 16px rgba(141, 135, 65, 0.10);
    z-index: 400;
}
.footer-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px;
}
.footer-nav {
    display: flex;
    flex-direction: row;
    gap: 16px;
}
.footer-nav a {
    color: #F9DC5C;
    font-family: 'Oswald', Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 7px;
    padding: 4px 10px;
    transition: background 0.17s, color 0.19s;
}
.footer-nav a:hover, .footer-nav a:focus {
    background: #8D8741;
    color: #fff;
}
.footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    color: #FAF7F2;
    font-size: 0.98rem;
}
.footer-contact span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #FAF7F2;
}
.footer-contact img {
    width: 21px;
    height: 21px;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 0 8px;
  }
  .footer-contact {
    gap: 10px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Cookie Consent Banner & Modal --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background: #232931;
    color: #FFF8EA;
    display: flex;
    flex-direciton: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 16px;
    box-shadow: 0 -2px 24px 0 rgba(141, 135, 65, 0.09);
    font-size: 1rem;
    z-index: 3000;
    transition: transform 0.43s cubic-bezier(.4,0,.2,1), opacity 0.23s;
    border-radius: 20px 20px 0 0;
}
.cookie-banner.hide {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}
.cookie-banner p {
    color: #FFF8EA;
}
.cookie-banner-buttons {
    display: flex;
    flex-direction: row;
    gap: 16px;
}
.cookie-btn {
    background: #F9DC5C;
    color: #232931;
    font-family: 'Oswald', Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 22px;
    border: none;
    padding: 9px 24px;
    margin: 0 2px;
    cursor: pointer;
    transition: background 0.15s, color 0.17s, transform 0.19s;
    box-shadow: 0 2px 8px rgba(249,220,92,0.08);
}
.cookie-btn:hover,
.cookie-btn:focus {
    background: #8D8741;
    color: #FFF8EA;
    transform: translateY(-2px) scale(1.02);
}
.cookie-settings-btn {
    background: #8D8741;
    color: #FFF8EA;
    padding: 9px 18px;
}
.cookie-settings-btn:hover,
.cookie-settings-btn:focus {
    background: #F9DC5C;
    color: #232931;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 18px 4px 18px 12px;
    font-size: 0.95rem;
  }
  .cookie-banner-buttons {
    gap: 10px;
  }
}

/* Cookie Modal Styles */
.cookie-modal-overlay {
    position: fixed;
    z-index: 3500;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(35,41,49,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.35s cubic-bezier(.4,0,.2,1);

}
.cookie-modal-overlay.hide {
    opacity: 0;
    pointer-events: none;
}
.cookie-modal {
    background: #FFF8EA;
    color: #232931;
    border-radius: 20px;
    box-shadow: 0 6px 40px rgba(141, 135, 65, 0.12);
    padding: 34px 38px 28px 38px;
    min-width: 320px;
    max-width: 95vw;
    z-index: 4100;
    display: flex;
    flex-direction: column;
    gap: 26px;
    animation: fadeInModal 0.3s cubic-bezier(.47,0,.745,.715);
}
@keyframes fadeInModal {
    0% { opacity: 0; transform: scale(0.92) translateY(14px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
    font-size: 1.35rem;
    margin-bottom: 10px;
    color: #8D8741;
}
.cookie-modal .cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cookie-modal .category-row {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 1rem;
    box-shadow: 0 1px 5px rgba(249,220,92,0.06);
}
.cookie-modal .category-row label {
    font-family: 'Oswald', Arial, Helvetica, sans-serif;
    font-size: 1rem;
    color: #232931;
    font-weight: 600;
}
.cookie-modal .cookie-toggle {
    pointer-events: all;
    width: 42px;
    height: 22px;
    position: relative;
    margin-left: 6px;
    background: #F9DC5C;
    border-radius: 16px;
    border: 1px solid #E1D392;
    transition: background 0.32s;
}
.cookie-modal .cookie-toggle input[type=checkbox] {
    opacity: 0;
    width: 0;
    height: 0;
}
.cookie-modal .slider {
    position: absolute;
    cursor: pointer;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: #F9DC5C;
    border-radius: 16px;
    transition: .4s;
}
.cookie-modal .cookie-toggle input:checked + .slider {
    background: #8D8741;
}
.cookie-modal .slider:before {
    position: absolute;
    content: '';
    height: 16px;
    width: 16px;
    left: 1px;
    bottom: 1.5px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1.5px 4px rgba(35,41,49,0.08);
    transition: .4s;
}
.cookie-modal .cookie-toggle input:checked + .slider:before {
    transform: translateX(18px);
}
.cookie-modal-actions {
    display: flex;
    flex-direction: row;
    gap: 18px;
    margin-top: 8px;
}
.cookie-modal-actions button {
    font-family: 'Oswald', Arial, Helvetica, sans-serif;
    font-size: 1rem;
    outline: none;
    padding: 8px 22px;
    border-radius: 21px;
    border: none;
    cursor: pointer;
    background: #F9DC5C;
    color: #232931;
    font-weight: bold;
    transition: background 0.15s, color 0.15s;
}
.cookie-modal-actions button.cookie-modal-cancel {
    background: #8D8741;
    color: #FFF8EA;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
    background: #232931;
    color: #F9DC5C;
}

@media (max-width: 520px) {
    .cookie-modal {
        min-width: 90vw; padding: 14px 5vw 18px 5vw;
    }
    .cookie-modal-actions {
        flex-direction: column;
        gap: 9px;
    }
}

/* --- Miscellaneous Utilities --- */
.gap-20 { gap: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-20 { margin-top: 20px !important; }

/* --- Media Queries (Responsive) --- */
@media (max-width: 1090px) {
    .card-container, .testimonial-list, .team-member-grid, .content-grid { flex-direction: column; gap: 20px; align-items: stretch; }
    .card, .testimonial-card, .team-member { max-width: 100%; min-width: 0; }
}

@media (max-width: 900px) {
    .section {margin-bottom: 40px; padding: 27px 8px; }
    .content-wrapper {padding: 22px 7px; }
}

/* --- Animations / Microinteractions --- */
a, .btn-primary, .btn-secondary, button {
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.17s;
}
.card, .testimonial-card, .team-member, .faq-item {
    transition: box-shadow 0.21s, transform 0.16s;
}
.card:active, .testimonial-card:active, .team-member:active {
    transform: scale(0.98);
}

/* Hide visually but keep accessible */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    border: 0;
}

/* --- Accessibility: Focus Outlines --- */
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus, .cookie-btn:focus {
    outline: 2px solid #8D8741;
    outline-offset: 2px;
    z-index: 20;
}

/* --- Hide elements utility --- */
.hide { display: none !important; }

