/* 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;
  box-sizing: border-box;
  font: inherit;
  vertical-align: baseline;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  background: #FFF;
  color: #332b20;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: #15406A; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #E2B832; }
ul, ol { margin-left: 20px; margin-bottom: 16px; }
strong, b { font-weight: 600; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #15406A;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.25rem; margin-bottom: 24px; }
h2 { font-size: 1.5rem; margin-bottom: 20px; }
h3 { font-size: 1.125rem; margin-bottom: 16px; }
h4, h5, h6 { font-size: 1rem; }
p { margin-bottom: 16px; }

/* BRAND COLORS */
:root {
  --color-primary: #15406A;
  --color-secondary: #E2B832;
  --color-accent: #F2F2F2;
  --color-dark: #231f19;
  --color-light: #FFF;
  --color-card: #FFFBF4;
  --color-shadow: rgba(30,23,16,0.08);
  --color-border: #f0e7d6;
  --color-attention: #ffedb3;
  --color-success: #DDF6D7;
  --color-danger: #FFF0F0;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* HEADER */
header {
  background: var(--color-accent);
  box-shadow: 0 4px 14px var(--color-shadow);
  margin-bottom: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 14px 18px;
  gap: 20px;
}
header img {
  height: 46px;
  border-radius: 15px;
  background: transparent;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--color-primary);
  font-size: 1rem;
  padding: 8px 4px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--color-secondary);
  color: #15406A;
  border: none;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 36px 12px 36px;
  margin-left: 18px;
  box-shadow: 0 2px 12px var(--color-shadow);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.18s, box-shadow 0.15s;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #cfab26;
  color: #fff;
  box-shadow: 0 4px 24px var(--color-shadow);
}

/* MOBILE MENU - TOGGLER */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 101;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 2.1rem;
  border: none;
  border-radius: 16px;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 8px var(--color-shadow);
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #f7de37;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-accent);
  box-shadow: 0 0 40px rgba(30,23,16,0.12);
  z-index: 2000;
  transform: translateX(-102vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.36s cubic-bezier(.5,1,.7,1), opacity 0.28s cubic-bezier(.47,.87,.43,1);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-size: 2.2rem;
  position: absolute;
  top: 28px;
  right: 36px;
  z-index: 2010;
  cursor: pointer;
  border-radius: 16px;
  padding: 4px 12px;
  transition: background 0.2s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 110px;
  width: 100%;
  align-items: center;
}
.mobile-nav a {
  display: block;
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.28rem;
  font-weight: 600;
  padding: 16px 28px;
  border-radius: 18px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* Hide Desktop menu on mobile, Show hamburger */
@media (max-width: 1020px) {
  header .container nav,
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1021px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* SECTIONS & SPACING */
section {
  background: var(--color-card);
  border-radius: 28px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 6px 28px var(--color-shadow);
  min-width: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* CARD, CARD-CONTAINER */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.card {
  background: var(--color-light);
  border-radius: 20px;
  box-shadow: 0 4px 16px var(--color-shadow);
  padding: 32px 24px;
  margin-bottom: 20px;
  flex: 1 1 300px;
  position: relative;
  min-width: 230px;
  transition: transform 0.16s, box-shadow 0.18s;
}
.card:hover, .card:focus {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 34px var(--color-shadow);
}

/* CONTENT GRID */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* TEXT-IMAGE SECTION */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-image-section > * {
  flex: 1 1 250px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* TESTIMONIAL CARD */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--color-accent);
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(30,23,16,0.10);
  padding: 20px 24px;
  margin-bottom: 20px;
  min-width: 260px;
  color: #2c251b;
  font-size: 1.08rem;
  transition: box-shadow 0.18s;
}
.testimonial-card strong {
  color: var(--color-primary);
  font-size: 1.05em;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 7px 24px var(--color-shadow);
}

/* FEATURE LIST ITEM */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* PROJECT-LIST, TEAM-LIST (custom layout) */
.project-list, .team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: stretch;
  margin-top: 14px;
}
.project-item, .team-member {
  background: var(--color-light);
  border-radius: 18px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 22px 18px;
  flex: 1 1 280px;
  min-width: 230px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.16s;
}
.project-item:hover, .team-member:hover {
  box-shadow: 0 8px 32px var(--color-shadow);
  transform: translateY(-2px) scale(1.01);
}

/* IMAGE ICONS IN LISTS */
ul li img, ol li img {
  height: 22px;
  width: 22px;
  vertical-align: middle;
  margin-right: 10px;
  border-radius: 7px;
  background: var(--color-accent);
  box-shadow: 0 2px 7px var(--color-shadow);
}

/* FORMS (optional for kontakt etc. if present) */
input, textarea, select {
  font-family: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #e8e1d0;
  font-size: 1rem;
  margin-bottom: 15px;
  background: #FFF9EF;
  width: 100%;
  box-shadow: 0 1px 6px var(--color-shadow);
  transition: border 0.18s, box-shadow 0.18s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border: 1.5px solid var(--color-secondary);
  box-shadow: 0 2px 12px var(--color-shadow);
}
button, input[type=submit] {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 22px;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 32px;
  margin-top: 8px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.18s;
}
button:hover, button:focus, input[type=submit]:hover {
  background: #cfab26;
  color: #fff;
  box-shadow: 0 6px 18px var(--color-shadow);
}

/* --- LISTS --- */
ul, ol {
  list-style-position: inside;
  padding-left: 0;
  margin-top: 4px;
  gap: 10px;
  display: flex;
  flex-direction: column;
}
ul li, ol li {
  font-size: 1rem;
  color: #41352B;
  margin-bottom: 5px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* FOOTER */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 44px 0 20px 0;
  border-radius: 28px 28px 0 0;
  margin-top: 30px;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 26px;
}
footer img {
  height: 38px;
  margin-bottom: 0;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
footer nav a {
  color: #F2F2F2;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 6px;
  border-radius: 8px;
  transition: background 0.16s, color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-secondary);
  color: #15406A;
}
.footer-contact {
  font-size: 0.95rem;
  color: #dbdbe9;
  max-width: 250px;
}
.footer-contact a {
  color: #fffbd9;
}
.footer-contact a:hover {
  text-decoration: underline;
}

/* SECTION MARGIN BOTTOM FIX FOR LAST SECTION */
main section:last-child {
  margin-bottom: 32px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    padding: 11px 7px 11px 8px;
  }
  section {
    padding: 22px 5px;
    margin-bottom: 32px;
    border-radius: 18px;
  }
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.05rem; }
  .card, .project-item, .team-member {
    padding: 18px 10px;
    min-width: 140px;
    border-radius: 12px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .testimonial-card {
    padding: 14px 10px;
    border-radius: 11px;
    min-width: 120px;
  }
  .card-container, .content-grid, .project-list, .team-list {
    flex-direction: column;
    gap: 12px;
  }
}

/* ANIMATIONS & TRANSITIONS */
.cta-btn, button, a {
  transition: background 0.18s, color 0.2s, box-shadow 0.18s, transform 0.09s;
}
main a {
  transition: color 0.17s;
}
section, .card, .project-item, .team-member, .testimonial-card {
  transition: box-shadow 0.20s, transform 0.15s;
}

/* SELECTION */
::selection {
  background: var(--color-secondary);
  color: #fff;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff8e1;
  color: #392f1a;
  box-shadow: 0 -1px 16px 0 rgba(30,23,16,0.13);
  z-index: 5000;
  width: 100vw;
  padding: 22px 10px 18px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  font-size: 1rem;
  animation: cookieBannerSlideIn 0.48s cubic-bezier(.3,1,.5,.95);
}
@keyframes cookieBannerSlideIn {
  from { transform: translateY(120px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0 16px 0 0;
  flex: 1 1 auto;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  background: var(--color-secondary);
  color: #15406A;
  border: none;
  border-radius: 18px;
  padding: 8px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 9px var(--color-shadow);
  transition: background 0.15s, color 0.15s;
}
.cookie-btn.settings {
  background: #f4e8ba;
  color: #332200;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #cfab26;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #ffe680;
  color: #846203;
}
@media (max-width:600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.97rem;
    padding: 18px 4px 12px 6px;
  }
  .cookie-buttons { gap: 7px; flex-wrap: wrap; }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(30, 23, 16, 0.15);
  z-index: 6000;
  align-items: center;
  justify-content: center;
  animation: fadeInModalBg 0.28s ease;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes fadeInModalBg {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff9ef;
  border-radius: 18px;
  box-shadow: 0 8px 48px rgba(30,23,16,0.22);
  padding: 32px 26px 22px 26px;
  min-width: 285px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalSlideUp 0.32s cubic-bezier(.35,1,.5,1);
}
@keyframes modalSlideUp {
  from { transform: translateY(40px); opacity: 0 }
  to { transform: none; opacity: 1; }
}
.cookie-modal h3 { margin-bottom: 8px; color: var(--color-primary); }
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}
.cookie-category label {
  font-size: 1.02rem;
  font-weight: 500;
}
.cookie-category input[type='checkbox'] {
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 7px;
  border: 2px solid var(--color-primary);
  background: #fff;
  position: relative;
  margin-right: 7px;
  cursor: pointer;
  transition: border .15s, background .15s;
}
.cookie-category input[type='checkbox']:checked {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}
.cookie-category input[type='checkbox']:disabled {
  background: #c7c7c7;
  border-color: #c7c7c7;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal button, .cookie-modal .cookie-btn {
  padding: 9px 20px;
  font-size: 1rem;
}

/* ----- UTILITIES ----- */
.bg-primary   { background: var(--color-primary); color: #fff; }
.bg-secondary { background: var(--color-secondary); color: #15406A; }
.bg-accent    { background: var(--color-accent); }
.bg-card      { background: var(--color-card); }

.rounded     { border-radius: 18px; }
.shadow      { box-shadow: 0 6px 28px var(--color-shadow); }
.flex-row    { display: flex; flex-direction: row; gap: 20px; }
.flex-column { display: flex; flex-direction: column; gap: 18px; }

/* Z-INDEX LAYERS: Mobile menu > cookie modal > cookie banner > header/footer > main */
.mobile-menu           { z-index: 2000; }
.mobile-menu-close     { z-index: 2010; }
.cookie-modal-overlay  { z-index: 6000; }
.cookie-banner         { z-index: 5000; }
header, footer        { z-index: 300; position: relative; }

/* --- OVERRIDES FOR LAST CHILDREN --- */
.card-container > .card:last-child, .content-grid > *:last-child, .content-wrapper > *:last-child {
  margin-bottom: 0;
}

main {
  margin-top: 26px;
}

/* Styles for ordered/numbered steps (e.g. Galerie) */
ol {
  list-style-type: decimal;
  font-size: 1rem;
  color: #423517;
  margin-bottom: 18px;
  gap: 8px;
}
ol li { font-weight: 500; }

/* --- END --- */