/* ---------------------------
   CSS RESET & BASELINE STYLES
----------------------------*/
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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #1b232d;
  color: #f5f3f0;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #b68257;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #f5f3f0;
  text-decoration: underline;
}
ul, ol {
  margin: 0 0 1em 1.2em;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #f5f3f0;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }
.subheadline {
  color: #b68257;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

p {
  margin-bottom: 18px;
  font-size: 1rem;
  color: #e0e3e8;
}
strong, b { color: #f5f3f0; }

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

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(38,44,53,0.90);
  border-radius: 18px;
  box-shadow: 0 4px 22px 0 rgba(27,35,45,0.26);
  position: relative;
}

/* Feature/Content Grids & Alignment */
.feature-grid,
.card-container,
.content-grid,
.testimonial-row,
.article-list {
  display: flex !important;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #222a34;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(23,29,34,0.08);
  padding: 22px 20px 21px 20px;
  gap: 15px;
  min-width: 240px;
  flex: 1 1 220px;
  border: 1px solid #434a55;
  transition: border 0.2s, box-shadow 0.2s;
}
.feature-item:hover {
  border-color: #b68257;
  box-shadow: 0 4px 18px 0 rgba(182,130,87,0.10);
}

.card-container {
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #232c36;
  color: #f5f3f0;
  padding: 32px 24px;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(30,35,45,0.13);
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 240px;
  transition: box-shadow 0.2s, border 0.2s;
  border: 1.5px solid #363d48;
}
.card:hover {
  box-shadow: 0 6px 26px 0 rgba(182,130,87,0.14);
  border: 1.5px solid #b68257;
}

.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-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #f5f3f0;
  color: #192027;
  border-radius: 14px;
  padding: 20px 28px;
  min-width: 240px;
  max-width: 370px;
  flex: 1 1 320px;
  box-shadow: 0 4px 26px 0 rgba(35,51,67,0.17);
  border-left: 6px solid #b68257;
  gap: 15px;
  font-family: 'Roboto', Arial, sans-serif;
}
.testimonial-card p {
  color: #232c36;
  font-size: 1.06rem;
  margin-bottom: 6px;
}
.testimonial-details {
  color: #233243;
  font-size: 0.96rem;
  letter-spacing: 0.03em;
  font-style: italic;
}

.article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.article-teaser {
  background: #232c36;
  color: #fff;
  padding: 22px 20px;
  border-radius: 13px;
  box-shadow: 0 2px 12px 0 rgba(22,24,32,0.09);
  margin-bottom: 20px;
  min-width: 210px;
  flex: 1 1 220px;
  transition: box-shadow 0.18s, border 0.18s;
  border-left: 5px solid #b68257;
}
.article-teaser:hover {
  box-shadow: 0 4px 16px 0 rgba(182,130,87,0.10);
  border-left: 5px solid #233243;
}

/* HEADER/NAVIGATION STYLES */
header {
  background: #222a34;
  border-bottom: 1.5px solid #2b343c;
  padding: 0;
  position: relative;
  z-index: 10;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px 20px;
  gap: 24px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 21px;
}
header nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #dbd5cc;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 7px 0;
  border-bottom: 2.5px solid transparent;
  transition: color 0.19s, border-bottom 0.19s;
}
header nav a:hover,
header nav a:focus {
  color: #b68257;
  border-bottom: 2.5px solid #b68257;
}
header img {
  height: 38px;
  width: auto;
  margin-right: 12px;
}

/* BUTTONS */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: #232c36;
  color: #f5f3f0;
  border-radius: 8px;
  border: 2px solid #b68257;
  padding: 13px 28px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-transform: uppercase;
  margin-top: 9px;
  margin-bottom: 5px;
  transition: background .2s, color .2s, border .2s, transform .2s;
  box-shadow: 0 2px 8px 0 rgba(35,50,67,0.13);
  outline: none;
}
.button:active {
  transform: translateY(1.5px) scale(0.98);
}
.button.primary {
  background: #b68257;
  color: #232c36;
  border: 2px solid #b68257;
  box-shadow: 0 4px 16px 0 rgba(182,130,87,0.17);
}
.button.primary:hover,
.button.primary:focus {
  background: #f5f3f0;
  color: #b68257;
  border-color: #b68257;
}
.button:hover,
.button:focus {
  background: #b68257;
  color: #232c36;
  border-color: #b68257;
}

.button[disabled], .button.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* MAIN */
main {
  padding-top: 32px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(38,44,53,0.78);
  border-radius: 18px;
  box-shadow: 0 4px 22px 0 rgba(27,35,45,0.11);
  position: relative;
}

/* FOOTER */
footer {
  background: #222a34;
  border-top: 1.5px solid #2b343c;
  font-size: 0.97rem;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 23px 18px 23px 18px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
footer nav a {
  color: #b68257;
  text-transform: uppercase;
  font-size: 0.98rem;
}
footer nav a:hover,
footer nav a:focus {
  color: #f5f3f0;
  border-bottom: 2px solid #b68257;
}
footer address {
  color: #bdb9b2;
  font-style: normal;
  font-size: 0.97rem;
  margin-top: 9px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
footer img {
  height: 28px;
  width: auto;
  margin-right: 8px;
}

/* -----------------------
   MOBILE NAVIGATION MENU
-------------------------*/
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 22px;
  right: 18px;
  z-index: 101;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #b68257;
  color: #232c36;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px 0 rgba(182,130,87,0.16);
}
.mobile-menu-toggle:active {
  background: #232c36;
  color: #b68257;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: #222a34;
  box-shadow: 2px 0 28px 0 rgba(35,50,67,0.23);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.77,0,.18,1);
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 25px; right: 25px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #b68257;
  cursor: pointer;
  z-index: 103;
}
.mobile-nav {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  padding-left: 38px;
}
.mobile-nav a {
  color: #f5f3f0;
  font-size: 1.3rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-decoration: none;
  padding: 18px 0 8px 0;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  transition: color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #b68257;
}

/* Hide mobile menu button by default (show only on mobile) */
.mobile-menu-toggle {
  display: none;
}

/* Hide mobile menu on desktop */
.mobile-menu {
  display: none;
}

/* ----------------------------
   COOKIE CONSENT BANNER
-----------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #232c36;
  color: #f5f3f0;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 12px 18px 12px;
  box-shadow: 0 -3px 24px 0 rgba(35,50,67,0.20);
  font-size: 1rem;
  gap: 22px;
  animation: cookiebanner-slidein 0.7s cubic-bezier(.77,0,.18,1);
}
@keyframes cookiebanner-slidein {
  0%{transform: translateY(100%);opacity:0;}
  80%{transform: translateY(-10px); opacity:.9;}
  100%{transform: translateY(0); opacity:1;}
}
.cookie-banner p {
  margin: 0 18px 0 0;
  color: #f5f3f0;
}

.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-banner .button {
  min-width: 120px;
  font-size: 1rem;
  padding: 8px 22px;
  margin-top: 0;
}
.cookie-banner .button {
  box-shadow: none;
}
.cookie-banner .button.cookie-settings {
  background: none;
  color: #b68257;
  border-color: #b68257;
}
.cookie-banner .button.cookie-settings:hover,
.cookie-banner .button.cookie-settings:focus {
  background: #b68257;
  color: #232c36;
}

.cookie-preferences-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23,25,27,0.72);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeinmodal 0.23s linear;
}
@keyframes fadeinmodal{0%{opacity:0;}100%{opacity:1;}}

.cookie-preferences-modal .modal-content {
  background: #232c36;
  color: #f5f3f0;
  border-radius: 14px;
  box-shadow: 0 4px 26px 0 rgba(35,50,67,0.31);
  padding: 32px 32px 22px 32px;
  min-width: 295px;
  max-width: 98vw;
  width: 460px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
}
.cookie-preferences-modal .modal-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cookie-preferences-modal .modal-header h2 {
  font-size: 1.3rem;
  color: #f5f3f0;
}
.cookie-preferences-modal .modal-close {
  background: none;
  border: none;
  color: #b68257;
  font-size: 1.8rem;
  cursor: pointer;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}
.cookie-category label {
  font-size: 1rem;
  color: #ecdbcb;
  cursor: pointer;
}
.cookie-category input[type='checkbox'] {
  accent-color: #b68257;
  width: 23px; height: 23px;
}
.cookie-category input[disabled] {
  opacity: 0.5;
}
.cookie-preferences-modal .modal-footer {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 26px;
  align-items: flex-end;
  justify-content: flex-end;
}

/* ------ Form Elements ------ */
input, select, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 6px;
  border: 1.5px solid #3a4150;
  background: #2e3743;
  color: #eee;
  padding: 13px 14px;
  margin-bottom: 14px;
  outline: none;
  transition: border 0.18s, background 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #b68257;
  background: #232c36;
}

/* --------- Responsive --------- */
@media (max-width: 1100px) {
  .container { max-width: 94vw; }
  .feature-grid, .testimonial-row, .card-container, .content-grid, .article-list {
    gap: 16px;
  }
  section {
    padding: 32px 7px;
  }
}
@media (max-width: 900px) {
  footer .container,
  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 7px 18px 7px;
  }
  footer nav {
    margin-bottom: 10px;
  }
}
@media (max-width: 768px) {
  html { font-size: 16px; }
  header .container,
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-left: 10px;
    padding-right: 10px;
  }
  section {
    padding: 30px 5px;
    margin-bottom: 38px;
  }
  main {
    padding-top: 22px;
    padding-bottom: 44px;
  }
  .feature-grid, .testimonial-row, .card-container, .content-grid, .article-list {
    flex-direction: column;
    gap: 18px;
  }
  .feature-item, .card, .article-teaser, .testimonial-card {
    min-width: 180px;
    width: 97vw;
    max-width: 100vw;
  }
  .text-image-section, .content-grid {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 22px !important;
  }
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  
  /* MOBILE NAVIGATION */
  .mobile-menu-toggle {
    display: flex;
  }
  header nav,
  header .button.primary {
    display: none;
  }
  .mobile-menu {
    display: flex;
  }
}
@media (max-width: 530px) {
  html { font-size: 15px; }
  section, .section {
    padding: 18px 0px 20px 0px;
    margin-bottom: 27px;
    border-radius: 8px;
  }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1rem; }
  .mobile-menu .mobile-nav { padding-left: 18px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 12px; font-size: 0.97rem; }
}

/* --------- SCROLLBAR STYLE (Webkit mostly) --------- */
::-webkit-scrollbar {
  width: 10px;
  background: #232c36;
}
::-webkit-scrollbar-thumb {
  background: #45484f;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b68257;
}

/* ----------- Industrial Modern Decorative Accents ----------- */
.feature-item img,
.card img,
.testimonial-card img {
  filter: grayscale(60%) brightness(0.91) contrast(1.1);
  max-height: 72px;
}

/* Subtle metallic highlight border for industrial look */
.feature-item, .card, .testimonial-card, .article-teaser {
  border-right: 1.8px solid #7f7f7f12;
  border-bottom: 1.3px solid #9a9a9a1b;
}

/* Custom focus for accessibility */
a:focus, button:focus, .button:focus, input:focus, textarea:focus {
  outline: 2px solid #b68257;
  outline-offset: 2px;
}

/* Industrial Modern micro-interaction for hover */
.feature-item, .card, .testimonial-card, .article-teaser, .button {
  transition: box-shadow 0.17s, border-color 0.18s, background 0.12s, color 0.12s, transform 0.13s;
}
.feature-item:active, .card:active, .testimonial-card:active, .article-teaser:active {
  transform: translateY(1px) scale(0.99);
}

/* Utility Classes */
.hide { display: none !important; }

/* ---------------- Sample Cookie Banner & Modal Structure --------------- */
/*
<div class="cookie-banner">
  <p>Diese Website verwendet Cookies, um dein Erlebnis zu optimieren. Mehr erfahren in der <a href="cookie-richtlinie.html">Cookie-Richtlinie</a>.</p>
  <div class="cookie-buttons">
    <button class="button primary">Alle Akzeptieren</button>
    <button class="button">Ablehnen</button>
    <button class="button cookie-settings">Cookie Einstellungen</button>
  </div>
</div>

<div class="cookie-preferences-modal">
  <div class="modal-content">
    <div class="modal-header">
      <h2>Cookie Einstellungen</h2>
      <button class="modal-close">✕</button>
    </div>
    <div class="cookie-category">
      <span>Essenzielle Cookies</span>
      <input type="checkbox" checked disabled>
    </div>
    <div class="cookie-category">
      <label for="analytics">Analytics Cookies</label>
      <input type="checkbox" id="analytics">
    </div>
    <div class="cookie-category">
      <label for="marketing">Marketing Cookies</label>
      <input type="checkbox" id="marketing">
    </div>
    <div class="modal-footer">
      <button class="button primary">Speichern</button>
      <button class="button">Abbrechen</button>
    </div>
  </div>
</div>
*/
