@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

html, body {
  max-width: 100vw;
  overflow-x: clip; /* horizontal scroll  */
}

img {
  max-width: 100%;
  height: auto;
}

p, h1, h2, h3, a, li {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

:root {
  --max-width: 1120px;

  /* Typography */
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-nav: 13px;
  --fs-h1: 32px;
  --fs-h2: 24px;
  --fs-h3: 18px;

  --lh-body: 1.55;
  --lh-heading: 1.25;

  /* Colors */
  --text-dark: #000;
  --text-light: #fff;
  --text-muted: #666;

  --bg-white: #fff;
  --bg-black: #000;
  --bg-grey: #f5f6f7;

  --border-light: #ddd;
  --border-dark: #111;

  --gold: #C9A227;
}

/* --------------------------------------------------
   GLOBAL RESET
-------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --------------------------------------------------
   GLOBAL TYPOGRAPHY
-------------------------------------------------- */
body {
  font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

p {
  margin-bottom: 16px;
  color: var(--text-dark);
}

ul, ol {
  margin-bottom: 16px;
  color: var(--text-dark);
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
  color: var(--text-dark);
}

small {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* --------------------------------------------------
   HEADINGS (WHITE TEXT ON BLACK LABELS)
-------------------------------------------------- */
h1, h2, h3 {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  line-height: var(--lh-heading);
  margin-bottom: 12px;
  background: var(--bg-black);
  color: var(--text-light);
  display: inline-block;
  padding: 4px 8px;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

/* Gold section override */
#gold h2 {
  background: var(--gold);
  color: var(--text-dark);
  margin-bottom: 20px;
}

/* --------------------------------------------------
   HEADER (BLACK)
-------------------------------------------------- */
.site-header {
  background: var(--bg-black);
  color: var(--text-light);
  border-bottom: 1px solid var(--border-dark);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo-img {
  display: block;
  width: 230px;
  height: auto;
}

/* --------------------------------------------------
   MAIN NAV
-------------------------------------------------- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: Georgia, serif;
  font-size: var(--fs-nav);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.main-nav a {
  color: var(--text-light);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.is-active {
  border-bottom-color: var(--text-light);
}

/* Dark mode icon */
.dark-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.dark-toggle svg {
  display: block;
  transition: opacity 0.2s ease;
}

.dark-toggle:hover svg {
  opacity: 0.7;
}

/* --------------------------------------------------
   DROPDOWN
-------------------------------------------------- */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-drop-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-family: Georgia, serif;
  font-size: var(--fs-nav);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-drop-btn:hover {
  border-bottom-color: var(--text-light);
}

.nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-black);
  border: 1px solid #333;
  min-width: 160px;
  padding: 8px 0;
  z-index: 2000;
}

.nav-drop-menu.open {
  display: block;
}

.nav-drop-menu a {
  display: block;
  padding: 8px 14px;
  color: var(--text-light);
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.nav-drop-menu a:hover {
  background: #111;
}

/* --------------------------------------------------
   SUBNAV (GREY, STICKY)
-------------------------------------------------- */
.subnav-wrapper {
  background: var(--bg-grey);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.25s ease;
}

.subnav-wrapper.stuck {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.subnav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
}

.subnav-inner a {
  color: var(--text-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap; 
  flex-shrink: 0;
}

.subnav-inner a:hover,
.subnav-inner a.is-active {
  border-bottom-color: var(--text-dark);
}

/* --------------------------------------------------
   CONTENT
-------------------------------------------------- */
.section {
  padding: 0px 16px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --------------------------------------------------
   PHOTO WRAPPER
-------------------------------------------------- */
.photo-wrapper {
  position: relative;
  margin-bottom: 30px;
  text-align: center;
}

.photo-wrapper img {
  width: 250px;
  height: auto;
  
}

#gold .photo-wrapper {
  margin-bottom: 12px; 
}

.photo-credit {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0,0,0,0.55);
  color: var(--text-light);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 3px 6px;
  border-radius: 3px;
  backdrop-filter: blur(3px);
}

/* --------------------------------------------------
   AD BOX
-------------------------------------------------- */
.ad-box {
  border: 1px solid var(--border-light);
  padding: 10px 12px;
  margin-bottom: 20px;
  background: #fafafa;
  font-size: 14px;
}

.ad-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #888;
  margin-bottom: 4px;
}

.ad-box a {
  color: var(--text-dark);
  text-decoration: underline;
}

/* ==========================================================================
   DEUTSCHER ANLEGER MINI AD (BERLIN TECHNO / BRUTALIST STYLE)
   ========================================================================== */
.da-ad-card {
    display: flex;
    align-items: center;
    background-color: #000000; /* Pitch Black */
    border: 1px solid #333333; /* Dark grey subtle border */
    padding: 16px;
    margin: 20px 0;
    text-decoration: none;
    transition: all 0.15s linear; /* Fast, harsh transition */
    border-radius: 0; /* No rounded corners - sharp brutalist edges */
    color: #ffffff;
}

.da-ad-card:hover {
    border-color: #ffffff;
    background-color: #0a0a0a;
    box-shadow: 4px 4px 0px #ffffff; /* Hard, non-blurred brutalist shadow */
    transform: translate(-2px, -2px); /* Snappy physical jump */
}

/* The logo box gets a stark white background with a hard black border */
.da-ad-logo {
    flex: 0 0 110px;
    background-color: #ffffff;
    padding: 12px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000000;
}

.da-ad-logo img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%); /* Forces the logo to monochrome! */
    transition: filter 0.15s linear;
}

.da-ad-card:hover .da-ad-logo img {
    filter: grayscale(0%); /* Color snaps back in on hover */
}

.da-ad-text {
    flex: 1;
}

.da-ad-text h4 {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.da-ad-text p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #cccccc;
    line-height: 1.4;
}

/* The CTA looks like a harsh printed label */
.da-ad-cta {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    color: #000000;
    background-color: #ffffff;
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.da-ad-disclaimer {
    display: block;
    font-size: 0.65rem;
    color: #666666;
    text-transform: uppercase;
    margin-top: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .da-ad-card {
        flex-direction: column;
        text-align: center;
        border-bottom-width: 4px; /* Maintain the harsh look on mobile */
    }
    .da-ad-logo {
        margin-right: 0;
        margin-bottom: 16px;
    }
}

/* --------------------------------------------------
   CTA BOX
-------------------------------------------------- */
.cta-box {
  border: 1px solid var(--text-dark);
  padding: 18px 16px;
  margin-top: 24px;
  background: var(--bg-grey);
}

.cta-box h3 {
  background: none;
  color: var(--text-dark);
  padding: 0;
  margin-bottom: 8px;
}

.cta-box a {
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--text-dark);
}

.cta-box a:hover {
  border-bottom-color: transparent;
}

.ad-banner-horizontal {
  margin: 30px 0; 
  text-align: center;
}

.ad-banner-horizontal img {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ad-banner-horizontal img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* --------------------------------------------------
   CONTACT FORM (DAN STYLE)
-------------------------------------------------- */
.dan-form {
  max-width: 600px;
  margin-top: 24px;
}

.dan-form .input-group {
  margin-bottom: 20px;
}

.dan-form label {
  display: block;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13px;
}

/* Sharp, brutalist inputs */
.dan-form input,
.dan-form textarea {
  width: 100%;
  padding: 12px;
  font-family: "Lato", sans-serif;
  font-size: 16px;
  background: var(--bg-white);
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
  border-radius: 0; /* No rounded corners */
  transition: all 0.2s ease;
}

.dan-form input:focus,
.dan-form textarea:focus {
  outline: none;
  background: var(--bg-grey);
  border-color: var(--gold);
}


.submit-btn,
a.submit-btn {
  display: inline-block;
  background: var(--bg-black) !important; /* Black background */
  color: var(--text-light) !important;    /* Pure white text */
  border: 2px solid var(--bg-black) !important;
  padding: 14px 24px;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-decoration: none !important; /* Prevents link underlines */
  transition: all 0.2s ease;
  box-shadow: 4px 4px 0 var(--text-dark); /* Hard black shadow */
}

.submit-btn:hover,
a.submit-btn:hover {
  background: var(--bg-white) !important; /* White background on hover */
  color: var(--text-dark) !important;     /* Black text on hover */
  box-shadow: none;
  transform: translate(4px, 4px);
}

.form-status {
  margin-top: 16px;
  font-weight: 700;
  font-size: 14px;
}
.form-status.success { color: #10b981; }
.form-status.error { color: #ef4444; }

/* Dark mode overrides for the form */
body.dark .dan-form input,
body.dark .dan-form textarea {
  border-color: var(--border-light);
}

body.dark .submit-btn {
  background: var(--bg-white);
  color: var(--bg-black);
  border-color: var(--bg-white);
}

body.dark .submit-btn:hover {
  background: var(--bg-black);
  color: var(--bg-white);
}


/* -------  SEO  TEXT ---- */
.seo-footer-text {
  background: var(--bg-grey);
  padding: 40px 16px 10px 16px;
  border-top: 1px solid var(--border-light);
  margin-top: 40px; /* Creates breathing room from the main content */
}

.seo-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Override the standard heavy block headings for the footer */
.seo-footer-text h3 {
  background: none;
  color: var(--text-dark);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0;
  margin-bottom: 8px;
  border: none;
}

.seo-footer-text p {
  font-size: 13px; /* Slightly smaller than main text */
  color: var(--text-muted); /* Softer color so it recedes visually */
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Dark Mode Overrides for the SEO block */
body.dark .seo-footer-text {
  background: #111; /* Slightly darker than the main dark grey background */
  border-top-color: var(--border-light);
}

body.dark .seo-footer-text h3 {
  background: none; /* Prevents the white block inversion here */
  color: #ccc;
}

body.dark .seo-footer-text p {
  color: var(--text-muted);
}

/* FOOTER BADGE  */
.sm24-network-badge {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: inherit; 
  opacity: 0.8;
  margin-top: 1rem;
}

.sm24-network-badge a {
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  font-weight: normal;
  text-transform: none; 
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(136, 136, 136, 0.3);
  padding-bottom: 1px;
  margin-left: 0.2rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.sm24-network-badge a:hover {
  color: #31597d; 
  border-bottom-color: #31597d;
}







/* = ABOUT PAGE BADGE = */
.sm24-about-badge {
  margin: 3rem 0;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 3px solid #31597d; 
  background: #f9f9f9; 
  max-width: 600px;
}

.badge-eyebrow {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #555555;
  margin-bottom: 0.5rem;
}

.badge-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #111111;
}

.badge-text a {
  font-family: 'Georgia', serif;
  font-weight: normal;
  color: #31597d;
  text-decoration: none;
  border-bottom: 1px solid rgba(49, 89, 125, 0.3);
  transition: all 0.2s ease;
}

.badge-text a:hover {
  border-bottom-color: #31597d;
  background-color: rgba(49, 89, 125, 0.05);
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.site-footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  padding: 24px 0;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 14px;
}

.site-footer a:hover {
  text-decoration: underline;
}



/* ----CARDS --- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.review-card {
  border: 3px solid var(--text-dark);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--bg-white);
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 2px 2px 0 var(--text-dark); /* Hard drop shadow */
}

.review-card-header {
  margin-bottom: 16px;
  border-bottom: 2px solid var(--text-dark);
  padding-bottom: 12px;
}

.review-card h3 {
  display: inline-block;
  font-size: var(--fs-h2);
  margin: 0 0 16px 0;
  padding: 4px 8px;
  background: var(--bg-black);
  color: var(--text-light);
}

.review-card-desc {
  flex-grow: 1; /* Pushes the button to the bottom */
  margin-bottom: 24px;
}

.text-center {
  text-align: center;
}

/* ---------  SINGLE PAGE  ---- */
.broker-logo-container {
  display: inline-block;
  border: 3px solid var(--text-dark);
  padding: 20px 40px;
  background: var(--bg-white);
}

.broker-logo {
  display: block;
  max-width: 200px;
  height: auto;
}

.review-content p {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.disclaimer-text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 800px;
  margin: 0 auto;
}

/* --------------------------------------------------
   DARK MODE OVERRIDES
-------------------------------------------------- */
body.dark .review-card,
body.dark .broker-logo-container {
  border-color: var(--border-light);
  background: var(--bg-black);
}

body.dark .review-card h3 {
  background: #ffffff !important;
  color: #000000 !important;
}

body.dark .review-card-header {
  border-bottom-color: var(--border-light);
}

body.dark .review-card:hover {
  box-shadow: 6px 6px 0 var(--border-light);
}

body.dark .submit-btn {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #ffffff !important;
  font-weight: 900;
  box-shadow: 4px 4px 0 #ffffff; /* Hard, white drop shadow for maximum visibility */
  transition: all 0.2s ease;
}

body.dark .submit-btn:hover {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  box-shadow: none; /* Shadow disappears on hover to create a tactile 'press' feel */
  transform: translate(4px, 4px); /* Pushes the button down physically */
}

/* ----------
   DARK  */
   
body.dark {
  /* Swap backgrounds */
  --bg-white: #121212;
  --bg-grey: #1e1e1e;
  
  /* Swap text colors */
  --text-dark: #f5f6f7;
  --text-muted: #aaa;
  
  /* Swap borders */
  --border-light: #333;
}

/* Fix specific elements for dark mode readability */
body.dark .ad-box {
  background: var(--bg-grey);
}

body.dark .cta-box {
  border-color: var(--border-light);
}

body.dark .cta-box a {
  border-bottom-color: var(--text-dark);
}

/* Add this to your dark mode section at the bottom */
body.dark h1,
body.dark h2,
body.dark h3 {
  background: #fff;  /* Solid white box */
  color: #000;       /* Solid black text */
}

/* Ensure the Gold heading keeps its unique color even in dark mode */
body.dark #gold h2 {
  background: var(--gold);
}

/* --------------------------------------------------
   MOBILE
-------------------------------------------------- */
@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .main-nav {
    width: 100%;
    overflow: visible;
    flex-wrap: wrap;
  }

  .nav-dropdown {
    position: relative;
  }

 .nav-drop-menu {
    top: 32px;
    right: auto;
    left: 0;
  }
}

