/* ==========================================================================
   Schäfer Asesores S.L.U. – Relaunch (statisch, responsive)
   Farben aus der bestehenden Headergrafik: Rot #cb0133, Creme #fff1c2, Gold #c28e42
   ========================================================================== */
:root {
  --red: #cb0133;
  --red-dark: #9c0027;
  --cream: #fff1c2;
  --cream-soft: #fff8e3;
  --gold: #c28e42;
  --gold-light: #e9d9a8;
  --ink: #3b3b3b;
  --muted: #6b6b6b;
  --line: #e8e2cf;
  --bg: #ffffff;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1140px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(60, 30, 0, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; line-height: 1.2; color: var(--red-dark); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; color: var(--ink); }
p { margin: 0 0 1.1em; }
.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 2rem); }
.eyebrow { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: .6em; }
.lead { font-size: 1.12rem; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-block; padding: .75rem 1.5rem; border-radius: var(--radius);
  background: var(--red); color: #fff; font-weight: 600; border: 2px solid var(--red);
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover, .btn:focus { background: var(--red-dark); border-color: var(--red-dark); text-decoration: none; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--red); }
.btn-outline:hover, .btn-outline:focus { background: var(--red); color: #fff; }

/* ---------------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.topbar { background: var(--red); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 96px; }
.brand img { width: auto; max-height: 72px; }
.topbar-right { display: flex; align-items: center; gap: 1.2rem; }
.langs { display: flex; gap: .25rem; }
.langs a {
  color: var(--cream); font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  padding: .3rem .55rem; border: 1px solid rgba(255,241,194,.45); border-radius: 3px;
}
.langs a.current { background: var(--cream); color: var(--red); border-color: var(--cream); }
.langs a:hover { text-decoration: none; background: rgba(255,241,194,.2); }
.langs a.current:hover { background: var(--cream); }

.mainnav { background: var(--cream); border-bottom: 1px solid var(--gold-light); }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
.mainnav a {
  display: block; padding: .9rem .85rem; color: var(--red-dark); font-weight: 600; font-size: .86rem;
  letter-spacing: .04em; text-transform: uppercase; border-bottom: 3px solid transparent;
}
.mainnav a:hover, .mainnav a:focus { text-decoration: none; border-bottom-color: var(--gold); }
.mainnav a.active { border-bottom-color: var(--red); color: var(--red); }

.menu-toggle {
  display: none; background: transparent; border: 1px solid rgba(255,241,194,.6); border-radius: 4px;
  color: var(--cream); padding: .45rem .7rem; cursor: pointer; align-items: center; gap: .5rem; font: inherit; font-size: .85rem;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--cream); margin: 4px 0; transition: transform .2s, opacity .2s; }
.menu-toggle b { font-weight: 600; }
.menu-toggle .bars { display: inline-block; }

/* ------------------------------------------------------------------ Hero */
.hero { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-soft) 100%); border-bottom: 6px solid var(--red); position: relative; overflow: hidden; }
.hero::after {
  content: "A"; position: absolute; right: -2%; top: -20%; font-family: var(--font-serif); font-style: italic;
  font-size: clamp(18rem, 40vw, 34rem); color: rgba(255,255,255,.55); line-height: 1; pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; padding: 3.5rem 0; position: relative; z-index: 1; }
.hero h1 { color: var(--red); margin-bottom: .5em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-media img { border: 1px solid #888785; box-shadow: var(--shadow); background: #fff; padding: 4px; }

/* ----------------------------------------------------------------- Intro */
.intro { padding: 0; }
.intro-grid { padding: 3.5rem 0 3rem; }
.intro h2 { margin-bottom: 1.2em; }
.intro h2::after { content: ""; display: block; width: 64px; height: 3px; background: var(--gold); margin: .6em 0 0; }
.services h2::after, .contact h2::after { content: ""; display: block; width: 64px; height: 3px; background: var(--gold); margin: .6em auto 0; }
.signature { margin-top: 2rem; }
.signature span { font-family: var(--font-serif); font-size: 1.4rem; font-style: italic; color: var(--red); display: inline-block; margin-top: .3em; }

/* -------------------------------------------------------------- Services */
.services { background: var(--cream-soft); padding: 4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services h2 { text-align: center; margin-bottom: 1.5em; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.4rem; color: var(--ink); display: flex; flex-direction: column; gap: .4rem;
  transition: transform .2s, box-shadow .2s;
}
.card:hover, .card:focus { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon { width: 44px; height: 44px; color: var(--gold); margin-bottom: .4rem; }
.card .icon svg { width: 100%; height: 100%; }
.card h3 { color: var(--red-dark); margin-bottom: .2em; }
.card p { font-size: .95rem; color: var(--muted); flex: 1; }
.card .more { color: var(--red); font-weight: 600; font-size: .9rem; }

/* ----------------------------------------------------------------- About */
.about { padding: 4rem 0; }
.about-inner { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: center; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about .name { font-family: var(--font-serif); font-size: 1.5rem; color: var(--ink); margin-bottom: .6em; }

/* --------------------------------------------------------------- Contact */
.contact { background: var(--cream); padding: 4rem 0; border-top: 6px solid var(--red); }
.contact h2 { text-align: center; }
.contact .lead { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.ccard { background: #fff; border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--gold-light); }
.ccard h3 { color: var(--red); font-size: 1.1rem; }
.ccard .btn { margin-top: .4rem; font-size: .9rem; padding: .55rem 1rem; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--red); color: var(--cream); font-size: .9rem; padding: 1.4rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-right: 3.5rem; }
.footer-inner p { margin: 0; }
.site-footer a { color: #fff; }

/* -------------------------------------------------------------- Subpages */
.pagehead { background: var(--cream); border-bottom: 6px solid var(--red); }
.pagehead .wrap { padding: 1.2rem 0; }
.pagehead-img { width: 100%; max-height: 180px; object-fit: cover; border: 1px solid #888785; padding: 3px; background: #fff; }
.subpage { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; padding: 3.5rem 0 4rem; }
.subpage article { max-width: 760px; }
.subpage h1 { margin-bottom: .8em; }
.about-page { grid-template-columns: 280px 1fr; }
.about-side img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-side .caption { font-family: var(--font-serif); color: var(--muted); margin-top: .6rem; text-align: center; }
.legal { display: block; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.6em; color: var(--red-dark); }
.legal h4 { font-size: 1rem; margin-top: 1.2em; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.note { background: var(--cream-soft); border-left: 4px solid var(--gold); padding: .8rem 1rem; }

ul.checks { list-style: none; padding: 0; margin: 0 0 1.4em; }
ul.checks li { position: relative; padding-left: 1.7rem; margin-bottom: .45em; }
ul.checks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: .9rem; height: .5rem;
  border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg);
}
.highlight { background: var(--cream); border-left: 4px solid var(--red); padding: .9rem 1.1rem; font-weight: 600; color: var(--red-dark); }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin: 1.5rem 0; }
.box { background: var(--cream-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.box h3 { color: var(--red); margin-bottom: .5em; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }

.sidebox { background: var(--cream-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.4rem; }
.sidebox h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: .8em; }
.sidebox-red { background: var(--red); border-color: var(--red); color: #fff; }
.sidebox-red h3 { color: var(--cream); }
.sidebox-red a { color: #fff; font-weight: 600; }
.sidebox p:last-child { margin-bottom: 0; }
.sidenav { list-style: none; margin: 0; padding: 0; }
.sidenav li { border-bottom: 1px solid var(--line); }
.sidenav li:last-child { border-bottom: 0; }
.sidenav a { display: block; padding: .55rem 0; color: var(--ink); font-weight: 600; }
.sidenav a.active, .sidenav a:hover { color: var(--red); text-decoration: none; }

/* ----------------------------------------------------------- ToTop-Button */
.totop {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer;
  display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.totop svg { width: 24px; height: 24px; }
.totop:hover, .totop:focus { background: var(--red-dark); }
.totop.show { opacity: 1; visibility: visible; transform: none; }
.erecht24 { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.erecht24 img { display: inline-block; }

/* ---------------------------------------------------------------- Splash */
body.splash { display: grid; place-items: center; min-height: 100vh; background: var(--red); }
.splash-box { text-align: center; }
.splash-box p { margin-top: 1.5rem; }
.splash-box a { color: var(--cream); font-weight: 600; padding: .4rem .6rem; }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1200px) {
  .mainnav a { padding: .85rem .6rem; font-size: .8rem; letter-spacing: .02em; }
}
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-media { max-width: 720px; margin: 0 auto; }
  .subpage { grid-template-columns: 1fr; gap: 2rem; }
  .about-page { grid-template-columns: 1fr; }
  .about-side { max-width: 280px; }
  .about-inner { grid-template-columns: 240px 1fr; gap: 2rem; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar-inner { min-height: 72px; }
  .brand img { max-height: 54px; }
  .menu-toggle { display: inline-flex; flex-direction: column; gap: 0; }
  .menu-toggle b { display: none; }
  .mainnav { display: none; }
  .mainnav.open { display: block; }
  .mainnav ul { flex-direction: column; }
  .mainnav a { border-bottom: 1px solid var(--gold-light); border-left: 4px solid transparent; }
  .mainnav a.active { border-left-color: var(--red); border-bottom-color: var(--gold-light); }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero-inner { padding: 2.5rem 0; }
  .hero::after { display: none; }
  .intro, .services, .about, .contact { padding: 2.8rem 0; }
  .contact-grid, .twocol { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-img { max-width: 240px; margin: 0 auto; }
  .about-text { text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .brand img { max-height: 50px; }
  .langs a { padding: .25rem .45rem; }
}
@media print {
  .site-header, .site-footer, .hero-media, .pagehead, .side, .btn { display: none !important; }
  body { font-size: 12pt; color: #000; }
}
