/* ==========================================================================
   Finanzmarktkalender – statische Seite
   Farben aus dem bisherigen Enfold-Theme übernommen:
   Rot #be1622, Dunkelrot #9c0400, Hellrot #df3844, Grau #eee / #ccc.
   Schriften wie auf pbf-consulting.de: Überschriften Archivo,
   Fließtext Montserrat (beide lokal eingebunden).
   ========================================================================== */

/* ---------- Schriften (lokal, keine Verbindung zu Google Fonts) ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-v25-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-v25-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  /* Variable Schrift, eine Datei für alle Stärken 100–900 */
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --red: #be1622;
  --red-dark: #9c0400;
  --red-light: #df3844;
  --red-tint: #fbeced;
  --ink: #000000;
  --text: #222222;
  --muted: #5f5f5f;
  --gray: #eeeeee;
  --gray-2: #cccccc;
  --line: #e2e2e2;
  --white: #ffffff;

  --font-head: "Archivo", Helvetica, Arial, sans-serif;
  --font-body: "Montserrat", Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: 24px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px rgba(0, 0, 0, .07);
  --header-h: 88px;
}

/* ---------- Basis ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; letter-spacing: -.005em; word-spacing: .03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800; word-spacing: .04em; }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* Wortgruppen nicht am Bindestrich trennen (ab Tablet-Breite) */
@media (min-width: 561px) {
  .nowrap { white-space: nowrap; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 14px 26px;
  border: 2px solid var(--red);
  border-radius: var(--radius-sm);
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn:active { transform: translateY(1px); }

.btn--ghost { background: transparent; color: var(--red); }
.btn--ghost:hover { background: var(--red); border-color: var(--red); color: var(--white); }

.btn--light { background: var(--white); border-color: var(--white); color: var(--red); }
.btn--light:hover { background: var(--gray); border-color: var(--gray); color: var(--red-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .85); backdrop-filter: saturate(1.4) blur(10px); }
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { width: auto; height: 62px; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .02em;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--red); }
.site-nav .nav-cta {
  margin-left: 8px;
  background: var(--red);
  color: var(--white);
}
.site-nav .nav-cta:hover { background: var(--red-dark); color: var(--white); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero::after {
  /* dezenter Schwung in Anlehnung an das Logo */
  content: "";
  position: absolute;
  right: -10%;
  bottom: -220px;
  width: 70%;
  height: 360px;
  border-radius: 50%;
  border-top: 2px solid var(--red-tint);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 64px;
}
.hero h1 { margin-bottom: 20px; }
.hero-service {
  margin: 0 0 22px;
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--muted);
}
.hero-service strong { color: var(--ink); }
.hero-lead { max-width: 560px; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-media { position: relative; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 3px solid var(--red);
  border-radius: var(--radius);
}
.hero-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Abschnitte ---------- */
.section { padding: 88px 0; }
.section--gray { background: var(--gray); }
.section--red { background: var(--red); color: var(--white); }
.section--red h2,
.section--red h3 { color: var(--white); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 32px;
}
.section-head h2 { margin: 0; }
.section-head--center { display: block; text-align: center; margin-bottom: 48px; }

/* ---------- Kalender ---------- */
.cal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.cal-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.cal-links a .icon { color: var(--red); }
.cal-links a:hover { color: var(--red); }

.cal-card {
  position: relative;
  min-height: 680px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cal-frame {
  display: block;
  width: 100%;
  height: 680px;
  border: 0;
}

.cal-privacy {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0 0;
  padding: 14px 18px;
  background: var(--white);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .88rem;
  color: var(--text);
}
.cal-privacy .icon { margin-top: .2em; color: var(--red); }

/* ---------- Über den Kalender ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  position: relative;
  padding: 36px 32px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .25s ease, transform .25s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
}
.card h3 { margin-bottom: 16px; }
.card p:last-child { margin-bottom: 0; }

.checklist {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}
.checklist li {
  position: relative;
  margin-bottom: .55em;
  padding-left: 30px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3em;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checklist small { display: block; color: var(--muted); font-size: .85em; }

/* ---------- Termine melden / Kontakt ---------- */
.report {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 64px;
}
.report-text p { color: rgba(255, 255, 255, .92); }
.report-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 30px;
  padding: 0;
  list-style: none;
}
.report-fields li {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
}

.contact-card {
  padding: 36px;
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}
.contact-card h3 { color: var(--ink); margin-bottom: 18px; }
.contact-card p { margin-bottom: 0; }
.contact-card .org {
  margin-bottom: 2px;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.contact-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.contact-list .icon { margin-top: .25em; color: var(--red); }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray); color: var(--ink); font-size: .92rem; }
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 48px;
}
.footer-main img { width: 150px; }
.footer-main p { margin: 0 0 .6em; }
.footer-main strong { font-weight: 600; }
.footer-main a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-main a:hover { color: var(--red); }

.socket { background: var(--gray-2); font-size: .85rem; }
.socket .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.socket nav ul { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; }
.socket a { color: var(--ink); text-decoration: none; }
.socket a:hover,
.socket a[aria-current="page"] { color: var(--red); }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.page-title {
  padding: 48px 0 40px;
  background: var(--gray);
  border-bottom: 1px solid var(--line);
}
.page-title .wrap { max-width: 800px; }
.page-title h1 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 3rem); }
.breadcrumb { margin: 0; font-size: .85rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }

.prose {
  max-width: 800px;
  padding-top: 56px;
  padding-bottom: 96px;
}
.prose h2 {
  margin: 2.4em 0 .7em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
  font-size: 1.6rem;
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin: 1.8em 0 .5em; font-size: 1.15rem; }
.prose h4 { margin: 1.4em 0 .4em; font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
.prose ul,
.prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose .note {
  padding: 18px 22px;
  background: var(--gray);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose .meta { color: var(--muted); font-size: .9rem; }

/* ---------- 404 ---------- */
.error-page { padding: 120px 0; text-align: center; }
.error-page .code {
  font-family: var(--font-head);
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .wrap { gap: 48px; }
  .cards { gap: 20px; }
  .card { padding: 30px 24px 26px; }
  .report { gap: 48px; }
}

@media (max-width: 900px) {
  :root { --header-h: 76px; }

  .brand img { height: 52px; }

  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 12px var(--gutter) 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
  }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 12px 14px; font-size: 1rem; }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }

  .hero { padding: 48px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; margin-right: 22px; }

  .section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .report { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .cal-card { min-height: 600px; }
  .cal-frame { height: 600px; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }

  body { font-size: 15px; }
  .brand-name { display: none; }
  .hero { padding: 36px 0 48px; }
  .hero-media { display: none; } /* Kalender auf dem Handy schneller erreichbar */
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-service { font-size: 1.15rem; }
  .contact-card { padding: 26px 22px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .socket .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .site-header, .nav-toggle, .site-footer .socket nav { display: none !important; }
  .section, .prose { padding: 24px 0; }
}
