/* --- CSS RESET & BASE NORMALIZATION --- */
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;
}
/* Set core body defaults */
body {
  line-height: 1.5;
  background: #fff;
  color: #18191A;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}
img, svg {
  max-width: 100%;
  vertical-align: middle;
}
a {
  text-decoration: none;
  color: #2C3E50;
  transition: color 0.2s;
}
/* ---- MONOCHROME SOPHISTICATED VARIABLES ---- */
:root {
  --primary: #2C3E50;
  --primary-light: #36495e;
  --secondary: #8C7B6B;
  --accent: #E9E4D8;
  --bg-dark: #18191A;
  --bg-light: #F5F5F5;
  --text-main: #161616;
  --text-muted: #666664;
  --border: #D2D2D2;
  --shadow: 0 6px 24px rgba(44,62,80,0.06), 0 1.5px 4px rgba(0,0,0,0.08);
  --card-bg: #fff;
  --card-bg-dark: #232426;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1rem;
  margin-bottom: 10px;
}
p, ul, ol, blockquote {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 1em;
}
ul, ol { margin-left: 1.5em; }
blockquote {
  font-size: 1.22em;
  font-family: 'Merriweather', Georgia, serif;
  color: #18191A;
  border-left: 3px solid var(--primary);
  padding-left: 18px;
  margin-bottom: 10px;
  font-style: italic;
  background: var(--accent);
  border-radius: 6px;
}
cite {
  display: block;
  font-size: 0.95em;
  color: var(--secondary);
  margin-top: 8px;
  font-style: normal;
  letter-spacing: 0.04em;
}

/* ---- BUTTONS ---- */
.cta-primary,
.cookie-banner button, .cookie-modal button {
  appearance: none;
  border: none;
  background: var(--primary);
  color: #fff;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.05em;
  font-weight: 700;
  padding: 12px 32px;
  margin: 6px 8px 6px 0;
  border-radius: 25px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.10);
  cursor: pointer;
  transition: background 0.2s, color 0.25s, box-shadow 0.2s, border 0.18s;
}
.cta-primary:hover, .cta-primary:focus,
.cookie-banner button:focus, .cookie-banner button:hover,
.cookie-modal button:focus, .cookie-modal button:hover {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(44,62,80,0.13);
  outline: none;
}
.cookie-banner .cookie-settings,
.cookie-modal .cookie-category-toggle {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 10px 24px;
  font-family: 'Open Sans', Arial, sans-serif;
  border-radius: 20px;
  font-size: 1em;
  font-weight: 500;
  transition: background 0.18s, color 0.18s, border 0.18s;
  margin: 0 10px 0 0;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus,
.cookie-modal .cookie-category-toggle:hover, .cookie-modal .cookie-category-toggle:focus {
  background: var(--primary);
  color: #fff;
}

/* ---- LAYOUT CONTAINERS ---- */
.container {
  width: 100%;
  max-width: 1116px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  background: transparent;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section { /* For major sections */
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

/* ---- CARD & FLEX LAYOUTS ---- */
.features-grid,
.card-container,
.card-grid,
.info-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features-grid > div,
.info-blocks > div,
.card {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px 20px 22px 20px;
  flex: 1 1 260px;
  min-width: 210px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.23s;
  position: relative;
}
.features-grid > div:hover,
.card:hover {
  box-shadow: 0 12px 36px rgba(44,62,80,0.15);
  transform: translateY(-5px) scale(1.02);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--accent);
  color: #18191A;
  border-radius: 15px;
  box-shadow: 0 1.5px 10px rgba(140,123,107,0.06);
  padding: 24px 26px;
  min-width: 260px;
  flex: 1 1 330px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.testimonial-card blockquote {
  border: 0 none;
  color: #18191A;
  background: transparent;
  font-weight: 400;
}
.testimonial-card cite { color: var(--primary); }
/* Hi-contrast for testimonials */
@media (max-width: 899px) {
  .testimonials { flex-direction: column; gap: 20px; }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 12px 0;
}
.info-blocks {
  width: 100%;
  gap: 24px;
}
.info-blocks > div {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
  min-width: 200px;
  flex: 1 1 200px;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  border-bottom: 1.5px solid var(--border);
  box-shadow: 0 2px 16px rgba(44,62,80,0.04);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
header nav a {
  display: block;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1rem;
  padding: 8px 8px;
  border-radius: 7px;
  transition: background 0.15s, color 0.16s;
  color: var(--primary);
  font-weight: 500;
}
header nav a:hover, header nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}
header img[alt="Dresdner Spiegel"] {
  height: 42px;
  max-width: 195px;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.2em;
  padding: 6px 12px;
  cursor: pointer;
  z-index: 100;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu {
  display: none;
  position: fixed;
  left: 0;top: 0;right: 0;bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,25,26, 0.98);
  transition: transform 0.38s cubic-bezier(.8,.07,.46,.98);
  transform: translateX(100%);
  z-index: 1000;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  overflow-y: auto;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  border: none;
  background: none;
  color: #fff;
  font-size: 2rem;
  padding: 14px 28px 12px 18px;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 20px 30px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.15em;
  padding: 14px 0;
  font-family: 'Merriweather', Georgia, serif;
  letter-spacing: 0.015em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.18s;
  width: 100%;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a:focus { color: var(--accent); }
@media (max-width: 1023px) {
  header nav, header .cta-primary { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 1024px) {
  .mobile-menu, .mobile-menu.open { display: none !important; }
}

/* --- MAIN & PAGE SECTIONS --- */
main {
  padding-bottom: 60px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.section:last-child, section:last-of-type {
  margin-bottom: 0;
}

/* ---- CARDS, FEATURE ITEMS ---- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--card-bg);
  border-radius: 17px;
  box-shadow: var(--shadow);
  padding: 26px 20px;
  min-width: 180px;
  transition: box-shadow 0.22s;
}
.card:hover { box-shadow: 0 6px 38px rgba(44,62,80,0.17); }
.feature-item > h3 {
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 1.17em;
}
@media (max-width: 899px) {
  .features-grid,
  .card-container,
  .info-blocks { flex-direction: column; gap: 18px; }
}

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

/* ---- CTA CONTACT ---- */
.cta-contact {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 0 0 0;
}

/* ---- CONTACT DETAILS ---- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 0 0 0;
  font-size: 1.05em;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 11px;
}
.contact-details img { width: 22px; height: 22px; opacity: 0.78; }

/* ---- FOOTER ---- */
footer {
  background: var(--bg-dark);
  color: var(--accent);
  padding: 48px 0 30px 0;
  margin-top: 32px;
  font-size: 1em;
}
footer p {
  color: white !important;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-wrapper > div {
  flex: 1 1 230px;
}
.footer-wrapper img { height: 38px; margin-bottom: 12px; }
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-menu a {
  color: var(--accent);
  font-size: 1em;
  letter-spacing: 0.01em;
  transition: color 0.14s;
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 5px 0 5px 0;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--secondary);
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 0.98em;
}
.footer-contact img { height: 18px; width: 18px; opacity: 0.8; }
@media (max-width: 899px) {
  .footer-wrapper { flex-direction: column; gap: 26px; }
}

/* --- FORMS, INPUTS (if any added later) --- */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1em;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
  transition: border 0.15s, box-shadow 0.16s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1.5px var(--primary), 0 2px 5px rgba(44,62,80,0.07);
}

/* --- LINKS & INTERACTIONS --- */
a.inline, a {
  text-decoration: underline;
  color: var(--secondary);
  font-weight: 600;
  transition: color 0.16s;
}
a.inline:hover, a:hover, a:focus {
  color: var(--primary);
}

/* --- RESPONSIVENESS --- */
@media (max-width: 768px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.19rem; }
  header img[alt="Dresdner Spiegel"] { height: 33px; }
  section, .section { padding: 28px 4px; }
  .container { padding: 0 5px; }
  .cta-primary, .cookie-banner button { padding: 11px 20px; font-size: 1em; }
}
@media (max-width: 479px) {
  h1 { font-size: 1.11rem; }
  h2 { font-size: 1.01rem; }
  .features-grid>div, .info-blocks>div { padding: 14px 8px; }
  .footer-contact p { font-size: 0.93em; }
}

/* --- COOKIE BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #191A1A;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  width: 100vw;
  min-height: 62px;
  padding: 23px 18px 17px 18px;
  box-shadow: 0 -2px 20px rgba(44,62,80,0.11);
  font-size: 1rem;
  transition: transform 0.36s cubic-bezier(.82,.04,.43,.98);
}
.cookie-banner p { margin-bottom: 0px; color: var(--accent); }
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.cookie-banner .cookie-settings {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
  font-weight: 600;
}
/* Cookie Modal */
.cookie-modal-bg {
  position: fixed;
  z-index: 1300;
  left: 0;top: 0;right: 0;bottom: 0;
  background: rgba(24,25,26, 0.79);
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-bg.open { display: flex; }
.cookie-modal {
  background: var(--card-bg-dark);
  color: #fff;
  border-radius: 17px;
  padding: 42px 26px 28px 26px;
  max-width: 95vw;
  width: 370px;
  min-height: 230px;
  box-shadow: 0 4px 44px rgba(44,62,80,0.23);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: cookie-modal-fadein 0.36s cubic-bezier(.77,.04,.45,.92);
}
@keyframes cookie-modal-fadein {
  from { opacity: 0; transform: translateY(80px) scale(0.95); }
  to { opacity: 1; transform: none; }
}
.cookie-modal-close {
  position: absolute;
  right: 0; top: 0;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  padding: 12px 14px;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--accent);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  padding: 5px 0 5px 6px;
  border-radius: 7px;
}
.cookie-category input[type="checkbox"], .cookie-category input[type="radio"] {
  accent-color: var(--primary);
}
.cookie-category[disabled], .cookie-category input[disabled] {
  opacity: 0.7;
}
.cookie-category strong {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1em;
  color: var(--accent);
}
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 7px;
}


/* ---- SCROLL & SELECTION ---- */
::-webkit-scrollbar { width: 8px; background: #E9E4D8; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 8px; }
::selection {
  background: var(--secondary);
  color: #fff;
}

/* --- MICRO-INTERACTIONS & TRANSITIONS --- */
button, .cta-primary, .cookie-banner button, .cookie-modal button {
  transition: background 0.21s, box-shadow 0.24s, color 0.19s, border 0.15s;
}
.card, .features-grid > div, .testimonial-card {
  transition: box-shadow 0.24s, transform 0.20s;
}

/* --- MISC UTILITIES --- */
.d-none { display: none !important; }
.d-block { display: block !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.gap-20 { gap: 20px !important; }

/* --- END CSS --- */
