/* RESET & NORMALIZATION (modern normalize + minimal reset) */
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, font, 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #23201D;
  color: #F4F1E2;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #E9C77B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #fffbe7;
}
ul, ol {
  margin-left: 1.25em;
  margin-bottom: 1em;
}
li + li {
  margin-top: 0.3em; }

/* CUSTOM PROPERTIES FOR BRAND + INDUSTRIAL MODERN */
:root {
  --color-dark-bg: #23201D;
  --color-dark-bg-deep: #181714;
  --color-primary: #543C26;         /* deep brown/bronze */
  --color-secondary: #E9C77B;      /* warm gold */
  --color-accent: #F4F1E2;         /* aged light parchment */
  --color-metal: #525457;          /* muted gunmetal */
  --color-steel: #818488;          /* soft steel highlight */
  --color-text: #F4F1E2;
  --color-card-bg: #23201D;
  --color-card-border: #3e362d;
  --color-shadow: rgba(52,44,30,0.23);
  --color-btn-hover: #6E533A;
  --color-btn-metal: #525457;

  --font-display: 'Merriweather', serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* LOAD FONTS (add this in HTML head for best UX) */
/*
<link href="https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Open+Sans:wght@400;600&display=swap" rel="stylesheet">
*/

/* TYPOGRAPHY SCALE, INDUSTRIAL MODERN */
h1, h2, h3, h4 {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 16px rgba(84,60,38,0.12);
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-steel);
}
p, ul, ol, li {
  color: var(--color-text);
  font-size: 1rem;
  font-family: var(--font-body);
  line-height: 1.7;
}
.subheadline {
  font-size: 1.25rem;
  color: var(--color-accent);
  margin-bottom: 24px;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}
strong {
  color: var(--color-secondary);
  font-weight: 700;
}
blockquote {
  border-left: 3px solid var(--color-secondary);
  padding-left: 18px;
  font-style: italic;
  color: #202124;
  background: #ede5cc;
  font-size: 1.06rem;
  margin: 0;
  margin-bottom: 8px;
}

/* GENERIC CONTAINER PADDING/SPACING PATTERN */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.section-hero {
  background: linear-gradient(100deg, #23201D 65%, #3e362d 105%);
  min-height: 350px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  box-shadow: 0 10px 40px -20px var(--color-shadow);
}
.section-hero .content-wrapper {
  align-items: flex-start;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* HEADER */
header {
  background: var(--color-dark-bg-deep);
  box-shadow: 0 4px 20px -8px var(--color-shadow);
  border-bottom: 1.5px solid var(--color-card-border);
  position: relative;
  z-index: 30;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
}
.logo img {
  height: 44px;
  width: auto;
  filter: brightness(0.97) contrast(1.03);
  transition: filter 0.2s;
}
.logo:hover img {
  filter: brightness(1.05) drop-shadow(0 2px 12px var(--color-shadow));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-accent);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.01em;
  transition: background 0.16s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-card-border);
  color: var(--color-secondary);
}
.cta-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  padding: 12px 32px;
  border-radius: 28px;
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.22s;
  box-shadow: 0 3px 16px -7px var(--color-shadow);
  cursor: pointer;
  display: inline-block;
  margin-left: 8px;
  margin-right: 8px;
  margin-bottom: 0;
}
.cta-btn.primary {
  background: linear-gradient(90deg, var(--color-primary) 90%, var(--color-metal));
  color: var(--color-accent);
  border: 1.5px solid var(--color-secondary);
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: var(--color-btn-hover);
  color: #fffbe7;
  box-shadow: 0 5px 30px -8px var(--color-shadow);
}
.cta-btn.secondary {
  background: none;
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: var(--color-secondary);
  color: #23201D;
  box-shadow: 0 6px 32px -12px var(--color-shadow);
}

button, .cta-btn {
  outline: none;
}
button:focus, .cta-btn:focus { box-shadow: 0 0 0 3px var(--color-secondary), 0 6px 24px -8px var(--color-shadow); }

/* MOBILE MENU (slide in, hamburger, overlay) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 2.1rem;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.15s;
  z-index: 110;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-metal);
  color: var(--color-accent);
}
.mobile-menu {
  position: fixed;
  z-index: 120;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,32,29,0.97);
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.34,1.56,.64,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-start;
  margin: 24px 0 12px 18px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-secondary);
  cursor: pointer;
  z-index: 130;
  transition: color 0.16s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 56px 35px 24px 35px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.35rem;
  color: var(--color-accent);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  padding: 12px 2px;
  border-bottom: 1px solid #39362e;
  transition: color 0.17s, background 0.17s;
  width: 100%;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--color-secondary);
  background: #312519;
}

@media (max-width: 1050px) {
  .main-nav {
    gap: 15px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 8px;
  }
}
@media (max-width: 850px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-btn {
    padding: 10px 16px;
    font-size: 0.98rem;
  }
}

/* SECTIONS, FLEX-BASED LAYOUTS */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card-bg);
  border: 1.3px solid var(--color-card-border);
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: 0 5px 25px -11px var(--color-shadow);
  min-width: 240px;
  transition: box-shadow 0.21s, border-color 0.17s;
  flex: 1 0 275px;
}
.card:hover {
  box-shadow: 0 12px 34px -12px var(--color-shadow);
  border-color: var(--color-secondary);
  z-index: 2;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
}
/* Mandated flex patterns */
.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;
  padding: 20px;
  border-radius: 12px;
  background: #F4F1E2;
  color: #23201D;
  margin-bottom: 20px;
  box-shadow: 0 3px 21px -11px var(--color-shadow);
  border: 1px solid #ede0b0;
  transition: box-shadow 0.17s, border-color 0.16s;
}
.testimonial-card blockquote {
  color: #23201D;
  background: none;
  font-weight: 400;
}
.testimonial-details {
  color: var(--color-metal);
  font-size: 0.98rem;
  font-style: italic;
  letter-spacing: 0.01em;
  padding-left: 5px;
  font-family: var(--font-body);
}
.testimonial-card:hover {
  box-shadow: 0 9px 36px -10px var(--color-shadow);
  border-color: var(--color-secondary);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-card-bg);
  border: 1.1px solid var(--color-metal);
  border-radius: 14px;
  box-shadow: 0 2px 16px -8px var(--color-shadow);
  padding: 24px 21px 22px 21px;
  min-width: 200px;
  flex: 1 0 220px;
  transition: box-shadow 0.17s, border-color 0.15s, background 0.2s;
}
.feature-item img {
  height: 42px;
  width: auto;
  filter: grayscale(0.04) contrast(1.1) drop-shadow(0 2px 8px #18171433);
}
.feature-item:hover {
  box-shadow: 0 6px 28px -8px var(--color-shadow);
  border-color: var(--color-secondary);
  background: #2c2a21;
  z-index: 2;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: disc inside;
  margin-bottom: 1em;
  padding-left: 3px;
}

/* CONTACT DETAILS & MAP */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 18px 0 12px 0;
}
.contact-details img {
  vertical-align: middle;
  margin-right: 10px;
  height: 20px;
  width: auto;
  filter: grayscale(0.2) brightness(0.95);
}
.map-embed {
  margin-top: 28px;
  background: #202124;
  color: #F4F1E2;
  border-radius: 9px;
  padding: 22px;
  font-size: 1rem;
  box-shadow: 0 2px 14px -6px var(--color-shadow);
}

/* FOOTER */
footer {
  background: var(--color-dark-bg-deep);
  color: var(--color-accent);
  padding: 36px 0 18px 0;
  border-top: 1.5px solid var(--color-card-border);
  box-shadow: 0 -4px 22px -11px var(--color-shadow);
  font-size: 1rem;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-nav a {
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 2px 7px;
  border-radius: 6px;
  transition: color 0.15s, background 0.18s;
}
.footer-nav a:focus, .footer-nav a:hover {
  color: var(--color-secondary);
  background: var(--color-card-border);
}
.footer-contact {
  color: #b3b1a6;
  font-size: 0.96rem;
  font-family: var(--font-body);
  margin-top: 5px;
}
footer img {
  height: 32px;
  width: auto;
  vertical-align: middle;
  filter: brightness(1) drop-shadow(0 1px 7px #23201D40);
}

/* GENERIC BUTTON & INTERACTIONS */
button, .cta-btn {
  cursor: pointer;
  transition: background 0.2s, color 0.18s, box-shadow 0.18s;
  font-family: var(--font-body);
}
button:disabled,
.cta-btn:disabled {
  opacity: 0.55;
  pointer-events: none;
}

/* TRANSITIONS & MICRO-ACTIONS */
.card, .feature-item, .testimonial-card, .cta-btn, .main-nav a {
  transition: box-shadow 0.18s, border-color 0.16s, background 0.18s, color 0.16s, transform 0.17s;
}
.card:hover, .feature-item:hover, .cta-btn:hover {
  transform: translateY(-3px) scale(1.015);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1020px) {
  .container { max-width: 900px; }
}
@media (max-width: 900px) {
  .container { max-width: 700px; }
  h1 { font-size: 2.1rem; }
}
@media (max-width: 750px) {
  .section, section {
    padding: 24px 8px;
    margin-bottom: 32px;
  }
  .footer-contact{ font-size: 0.91rem; }
}
@media (max-width: 700px) {
  .content-grid, .feature-grid, .card-container, .footer-flex {
    flex-direction: column;
    gap: 20px !important;
  }
  .card, .feature-item { min-width: 0; width: 100%; }
  .footer-flex { align-items: flex-start; }
  h2 { font-size: 1.2rem; }
}
@media (max-width: 600px) {
  .container { padding: 0 5px; }
  .contact-details { padding: 10px 0; }
}
@media (max-width: 768px) {
  /* Mobile nav already handled, now stack text-image and testimonial */
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 13px;
  }
}

/* Cookie Consent Banner (fixed bottom) & Modal */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 2100;
  background: #2e2c27;
  color: var(--color-accent);
  box-shadow: 0 -4px 28px -10px var(--color-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 19px 14px 19px 22px;
  transition: transform 0.35s;
  font-size: 1rem;
  font-family: var(--font-body);
}
.cookie-banner.hide {
  transform: translateY(105%);
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner .cookie-accept, 
.cookie-banner .cookie-reject, 
.cookie-banner .cookie-settings {
  border: none;
  padding: 8px 18px;
  margin: 0 0 0 2px;
  border-radius: 23px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, color 0.14s, box-shadow 0.17s;
  box-shadow: 0 1px 6px -2px var(--color-shadow);
}
.cookie-banner .cookie-accept {
  background: var(--color-secondary);
  color: #23201D;
}
.cookie-banner .cookie-accept:hover, 
.cookie-banner .cookie-accept:focus {
  background: #ffdc96;
  color: #23201D;
}
.cookie-banner .cookie-reject {
  background: var(--color-metal);
  color: #ece6da;
}
.cookie-banner .cookie-reject:hover, 
.cookie-banner .cookie-reject:focus {
  background: #757575;
  color: #faf9f8;
}
.cookie-banner .cookie-settings {
  background: none;
  color: var(--color-secondary);
  border: 1.2px solid var(--color-secondary);
}
.cookie-banner .cookie-settings:hover, 
.cookie-banner .cookie-settings:focus {
  background: var(--color-secondary);
  color: #23201D;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 8px;
    font-size: 0.96rem;
  }
}
/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2200;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,28,21,.84);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.28s;
}
.cookie-modal {
  background: #23201D;
  color: var(--color-accent);
  padding: 34px 30px 24px 30px;
  border-radius: 22px;
  max-width: 400px;
  box-shadow: 0 2px 35px -11px #463414c5;
  font-family: var(--font-body);
  font-size: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 17px;
  animation: cookie-modal-in 0.39s cubic-bezier(.44,1.63,.81,0.76);
}
@keyframes cookie-modal-in { 0% { transform: scale(0.91) translateY(60px); opacity: 0.2; } 100% { transform: none; opacity:1; } }

.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.68rem;
  color: var(--color-secondary);
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  color: var(--color-accent);
}
.cookie-modal h3 {
  color: var(--color-secondary);
  font-size: 1.2rem;
  margin-bottom: 7px;
}
.cookie-modal ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category input[type='checkbox'] {
  accent-color: var(--color-secondary);
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
}
.cookie-modal .cookie-essential {
  color: #aaa388;
  font-size: 0.93rem;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

/* Accessibility and Focus Outlines */
a:focus-visible, button:focus-visible, .cta-btn:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Miscellaneous Helpers */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}
/* AVATAR/ICON INSIDE CARDS (feature or testimonial) */
.feature-item img, .contact-details img, .testimonial-card img {
  border-radius: 4px;
  background: #eee6;
}

/* Fix spacing for lists inside .text-section */
.text-section ul, .text-section ol {
  margin-left: 1.2em;
  margin-bottom: 0.7em;
  gap: 0.5em;
}
.text-section li {
  margin-bottom: 0.3em;
}

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

/* Hide parent visually (for JS fadeouts) */
.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.21s;
}

/* Ensure minimum margin between all flex children in featured containers */
.card-container > *, .feature-grid > *, .content-grid > *, .testimonial-card + .testimonial-card, .section > * {
  margin-bottom: 20px;
}
.card-container > *:last-child, .feature-grid > *:last-child, .content-grid > *:last-child, .section > *:last-child {
  margin-bottom: 0;
}

/* End of style.css for KlosterGenuss Reisen (Industrial Modern) */
