/* Abendlicht Magazin – Luxury Premium Style CSS */

/* -------------- 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,
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;
}
footer p {
  color: white;
}
html {
  scroll-behavior: smooth;
  background: #FAFAFA;
}
body {
  line-height: 1.5;
  background: #FAFAFA;
  color: #2D3142;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  vertical-align: middle;
  border: none;
}
button:focus, a:focus {
  outline: 2px solid #EF8354;
  outline-offset: 2px;
}
a {
  color: #2D3142;
  text-decoration: none;
  transition: color .2s cubic-bezier(.55,.05,.68,.12);
}
a:hover, .cta-primary:hover, .cta-primary:focus {
  color: #EF8354;
}
ul, ol {
  list-style: none;
}

/* -------------- Font Imports -------------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* -------------- Brand Variables & Luxury Palette -------------- */
:root {
  --brand-primary: #2D3142;
  --brand-secondary: #BFC0C0;
  --brand-accent: #EF8354;
  --lux-gold: #C7A247;
  --lux-gold-hover: #B89735;
  --lux-silver: #E6E7EB;
  --lux-bg-light: #FAFAFA;
  --lux-bg-dark: #202025;
  --lux-border: #E2DED3;
  --lux-shadow: 0 8px 32px rgba(44,44,50,0.08), 0 1.5px 5px rgba(44,44,50,0.05);
}

/* -------------- Layout Containers -------------- */
.container {
  max-width: 1120px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--lux-bg-light);
  border-radius: 12px;
  box-shadow: var(--lux-shadow);
  transition: box-shadow 0.25s cubic-bezier(.55,.05,.68,.12);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--lux-shadow);
  border: 1px solid var(--lux-border);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 24px;
  transition: box-shadow 0.25s cubic-bezier(.55,.05,.68,.12), border 0.2s;
}
.card:hover {
  border-color: var(--lux-gold);
  box-shadow: 0 8px 36px rgba(199,162,71,0.12), var(--lux-shadow);
}
.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;
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid var(--lux-gold);
  box-shadow: 0 4px 24px rgba(44,44,50,0.06);
  margin-bottom: 20px;
  max-width: 700px;
  transition: box-shadow 0.2s;
}
.testimonial-card p {
  color: var(--brand-primary);
  font-size: 18px;
  font-style: italic;
}
.testimonial-card strong {
  color: var(--brand-accent);
  font-family: 'Montserrat', serif;
  font-size: 16px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Ensure spacing between all flex children */
.container > *,
.content-wrapper > *,
.section > *,
.card-container > *,
.card > *,
.content-grid > *,
.text-image-section > *,
.feature-item > *,
footer .container > * {
  margin-bottom: 0;
}

/* -------------- Typography -------------- */
h1 {
  font-family: 'Montserrat', serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--brand-primary);
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}
h2 {
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--brand-primary);
  letter-spacing: -1px;
  margin-bottom: 10px;
}
h3 {
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--brand-primary);
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-family: 'Montserrat', serif;
  font-weight: 500;
  color: var(--brand-primary);
  margin-bottom: 6px;
}
p, li, ul, ol, .text-section, .contact-footer {
  font-size: 1rem;
  color: var(--brand-primary);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  margin-bottom: 8px;
  line-height: 1.6;
}
.subheadline {
  font-size: 1.25rem;
  color: var(--brand-secondary);
  font-family: 'Montserrat', serif;
  font-weight: 400;
  margin-bottom: 12px;
}
strong {
  color: var(--lux-gold);
  font-weight: 600;
  font-family: 'Montserrat', serif;
}

/* -------------- Links & Buttons -------------- */
.cta-primary, .cta-primary:visited {
  display: inline-block;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 14px 32px;
  color: #fff;
  background: linear-gradient(87deg, var(--lux-gold) 93%, var(--lux-gold-hover) 100%);
  border: none;
  border-radius: 24px;
  box-shadow: 0 2px 18px rgba(199,162,71,0.08);
  letter-spacing: 0.5px;
  transition: box-shadow 0.18s, background 0.22s, transform 0.12s;
  cursor: pointer;
  margin-top: 0.5em;
  text-shadow: 0 1px 4px rgba(44,44,50,0.04);
  position: relative;
  z-index: 1;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(87deg, var(--lux-gold-hover) 90%, var(--lux-gold) 100%);
  box-shadow: 0 4px 32px rgba(199,162,71,0.19);
  color: #2D3142;
  transform: translateY(-2px) scale(1.02);
}
button,
.mobile-menu-toggle,
.mobile-menu-close {
  font-family: 'Montserrat', serif;
  font-size: 1.2rem;
  border: none;
  border-radius: 16px;
  padding: 10px 18px;
  cursor: pointer;
  background: var(--lux-gold);
  color: #fff;
  box-shadow: 0 1px 8px rgba(199,162,71,0.10);
  transition: background 0.17s, color 0.13s, transform 0.10s;
}
button:hover,
.mobile-menu-toggle:hover,
.mobile-menu-close:hover {
  background: var(--brand-accent);
  color: #fff;
  transform: scale(1.04);
}
nav a {
  margin-right: 22px;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--brand-primary);
  display: inline-block;
  transition: color .17s;
  border-radius: 8px;
  padding: 6px 12px;
}
nav a:last-child {
  margin-right: 0;
}
nav a.cta-primary {
  margin-left: 18px;
  margin-right: 0;
  padding: 10px 26px;
  font-size: 1rem;
  background: var(--lux-gold);
  color: #fff;
}
nav a.cta-primary:hover, nav a.cta-primary:focus {
  background: var(--brand-accent);
  color: #fff;
}

/* -------------- Header & Footer -------------- */
header {
  background: #fff;
  border-bottom: 1px solid var(--lux-border);
  box-shadow: 0 1.5px 6px rgba(44,44,50,0.03);
  padding-top: 16px;
  padding-bottom: 16px;
  position: relative;
  z-index: 40;
}
header .container {
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 24px;
}
.logo img, .logo-footer img {
  height: 44px;
  width: auto;
  display: block;
}
footer {
  background: var(--lux-bg-dark);
  color: #fff;
  padding: 48px 0 32px 0;
  border-top: 2.5px solid var(--lux-gold);
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
footer nav a {
  color: #fff;
  margin-right: 24px;
  background: none;
  padding: 4px 2px;
}
footer nav a:last-child {
  margin-right: 0;
}
footer nav a:hover, footer nav a:focus {
  color: var(--lux-gold);
}
.logo-footer img {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.contact-footer {
  font-size: 0.96rem;
  color: #dedede;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

/* -------------- Hero Section -------------- */
.hero {
  background: linear-gradient(90deg, #fff 0 70%, #FFFDF6 100%);
  border-radius: 0 0 36px 36px;
  padding: 56px 0 48px 0;
  box-shadow: 0 8px 40px rgba(199,162,71,0.06);
  margin-bottom: 44px;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-size: 2.4rem;
  color: var(--brand-primary);
  margin-bottom: 9px;
}
.hero .subheadline {
  font-size: 1.23rem;
  margin-bottom: 22px;
  color: var(--brand-secondary);
}
.hero .cta-primary {
  margin-top: 18px;
}

/* -------------- Utility & Section Styling -------------- */
.text-section {
  margin-bottom: 0;
  color: var(--brand-primary);
  font-size: 1.07rem;
  line-height: 1.65;
}
ul, ol {
  padding-left: 22px;
  margin-bottom: 6px;
}
ul li, ol li {
  margin-bottom: 10px;
  color: var(--brand-primary);
  font-size: 1rem;
  line-height: 1.5;
}
ul li strong {
  font-size: 1.03rem;
  color: var(--lux-gold);
  font-weight: 600;
}

/* -------------- Cookie Consent Banner -------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: #fff;
  color: #2D3142;
  border-top: 3px solid var(--lux-gold);
  box-shadow: 0 -2px 18px rgba(44,44,50,.09);
  width: 100%;
  padding: 30px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  font-size: 1.06rem;
  animation: fadeInUpBanner 0.55s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeInUpBanner {
  0% { transform: translateY(80px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
}
.cookie-banner button,
.cookie-banner .cookie-settings {
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  border: none;
  border-radius: 20px;
  padding: 9px 22px;
  cursor: pointer;
  margin: 0;
  background: var(--lux-gold);
  color: #fff;
  box-shadow: 0 1px 8px rgba(199,162,71,0.08);
  transition: background 0.16s, color 0.14s, transform 0.09s;
}
.cookie-banner button:hover, .cookie-banner .cookie-settings:hover {
  background: var(--brand-accent);
  color: #fff;
  transform: scale(1.03);
}
.cookie-banner .cookie-btns button.reject {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-banner .cookie-btns button.reject:hover {
  background: var(--lux-gold-hover);
  color: #fff;
}
.cookie-banner .cookie-btns .cookie-settings {
  background: #fff;
  border: 2px solid var(--lux-gold);
  color: var(--brand-primary);
}
.cookie-banner .cookie-btns .cookie-settings:hover {
  background: var(--lux-gold);
  color: #fff;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 3100;
  background: #fff;
  border-radius: 24px;
  border: 2px solid var(--lux-gold);
  box-shadow: 0 8px 64px rgba(44,44,50,0.16);
  padding: 32px 38px 28px 38px;
  width: 95%;
  max-width: 420px;
  transform: translate(-50%,-50%) scale(1);
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 1;
  animation: fadeInModal .35s cubic-bezier(.38,.09,.32,1);
}
@keyframes fadeInModal {
  0% { transform: translate(-50%,-42%) scale(0.98); opacity: 0; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--brand-primary);
  margin-bottom: 5px;
}
.cookie-modal .modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.cookie-modal label {
  font-size: 1rem;
  color: var(--brand-primary);
}
.cookie-modal .toggle {
  appearance: none;
  width: 38px;
  height: 20px;
  background: var(--brand-secondary);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal .toggle:checked {
  background: var(--lux-gold);
}
.cookie-modal .toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 7px rgba(199,162,71,0.10);
  transition: left .19s;
}
.cookie-modal .toggle:checked::after {
  left: 20px;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal button {
  background: var(--lux-gold);
  color: #fff;
}
.cookie-modal button:hover {
  background: var(--brand-accent);
}

/* -------------- Mobile Burger Menu -------------- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 27px;
  right: 26px;
  z-index: 99;
  background: var(--lux-gold);
  color: #fff;
  padding: 11px 20px;
  border-radius: 50%;
  font-size: 1.8rem;
  box-shadow: 0 2px 16px rgba(44,44,50,0.13);
  line-height: 1;
  border: none;
  transition: background 0.17s, transform 0.11s;
}
.mobile-menu-toggle:active {
  transform: scale(0.96);
}
/* Show on mobile only */
@media (max-width: 1000px) {
  .mobile-menu-toggle {
    display: block;
  }
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
}
@media (max-width: 1000px) {
  header nav {
    display: none;
  }
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 360px;
  min-width: 230px;
  z-index: 2000;
  background: #fff;
  box-shadow: -16px 0 58px rgba(44,44,50,0.23);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.85,.17,.45,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 26px;
  padding-left: 28px;
  gap: 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 19px;
  right: 23px;
  background: transparent;
  color: var(--brand-primary);
  font-size: 2.2rem;
  border: none;
  box-shadow: none;
  z-index: 30;
  line-height: 1;
  padding: 6px 8px 6px 8px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 90%;
}
.mobile-nav a {
  font-family: 'Montserrat', serif;
  font-size: 1.08rem;
  color: var(--brand-primary);
  padding: 13px 9px 13px 2px;
  border-bottom: 1px solid var(--lux-border);
  width: 100%;
  display: block;
  border-radius: 3px;
  transition: background .14s, color .12s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--lux-gold);
  background: #FAF6EE;
}
.mobile-nav a.cta-primary {
  background: var(--lux-gold);
  color: #fff;
  font-weight: 600;
  border-bottom: none;
  margin-top: 6px;
}
.mobile-nav a.cta-primary:hover {
  background: var(--brand-accent);
  color: #fff;
}
/* Overlay for open mobile menu for closing on tap outside */
.mobile-menu.open::before {
  content: '';
  display: block;
  pointer-events: auto;
  position:fixed;
  left:0;top:0;height:100vh;width:100vw;
  background: rgba(44,44,50,0.19);
  z-index: -1;
}

/* -------------- Responsive Design -------------- */
@media (max-width: 1000px) {
  .container, .footer .container {
    max-width: 94vw;
    padding: 0 12px;
  }
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .section {
    padding: 30px 8px;
    margin-bottom: 38px;
  }
  .testimonials, .testimonial-card {
    max-width: 98vw;
  }
}
@media (max-width: 768px) {
  .content-wrapper {
    gap: 22px;
  }
  .section {
    padding: 22px 4px;
    margin-bottom: 30px;
    gap: 18px;
  }
  .hero {
    padding: 28px 0 28px 0;
    border-radius: 0 0 20px 20px;
    margin-bottom: 18px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.32rem; }
  h3 { font-size: 1.08rem; }
}
@media (max-width: 990px) {
  .card-container, .content-grid, .footer .container {
    flex-direction: column;
    gap: 24px;
  }
  .footer .container {
    gap: 18px;
  }
}
@media (max-width: 800px) {
  .section, .testimonial-card, .card {
    padding: 14px 7px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 99vw;
    font-size: 1rem;
    padding: 12px 5px;
  }
  .footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* -------------- Scrollbar Styling for Luxury Feel -------------- */
::-webkit-scrollbar {
  width: 9px;
  background: #EFE6DB;
}
::-webkit-scrollbar-thumb {
  background: var(--lux-gold);
  border-radius: 12px;
}

/* -------------- Subtle Animations -------------- */
.card,.testimonial-card,.section,.cta-primary {
  transition: box-shadow 0.23s, border 0.13s, background 0.14s, color 0.16s;
}
.card:hover,.testimonial-card:hover {
  box-shadow: 0 8px 36px rgba(199,162,71,0.10), var(--lux-shadow);
  border-color: var(--lux-gold);
}

/* -------------- Visual Luxury Gold Details -------------- */
h1, h2, h3, h4, h5, h6 {
  text-shadow: 0 1px 7px rgba(199,162,71,0.07);
}
.section {
  border-left: 4.5px solid var(--lux-gold);
  box-shadow: 0 10px 36px rgba(44,44,50,0.06), var(--lux-shadow);
}

/* -------------- Misc Utility -------------- */
main {
  display: flex;
  flex-direction: column;
  gap: 44px;
  flex: 1 1 auto;
}

/* Hide scroll on modal or open mobile nav */
body.menu-open,
body.cookie-modal-open {
  overflow: hidden;
}

/* -------------- Accessibility -------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .cookie-banner, .cookie-modal { animation: none !important; }
}
