/* cemesa-immo.de – Stylesheet (Relaunch 10/2026). Keine externen Ressourcen. */

/* Inter (variable, 300–700), lokal gehostet. Lizenz: SIL OFL 1.1, siehe /fonts/OFL.txt */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/Inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/Inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #111418;          /* Überschriften */
  --text: #3a4049;         /* Fließtext, Kontrast 10,6:1 auf Weiß */
  --muted: #5a616c;        /* Nebentext, 6,3:1 auf Weiß */
  --line: #e4e4e0;
  --soft: #f6f6f3;
  --white: #fff;
  --accent: #b3121b;       /* Markenrot, 7,1:1 auf Weiß */
  --accent-dark: #8f0e15;
  --dark: #111418;
  --dark-text: #c9cdd3;
  --dark-muted: #9aa1ab;
  --w: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --sec: clamp(72px, 10vw, 128px);
  --header: 72px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3 { color: var(--ink); font-weight: 650; letter-spacing: -0.022em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 3.7vw, 3.1rem); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
h2 { text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1.3; }
p + p { margin-top: 1em; }
strong { color: var(--ink); font-weight: 600; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--text); }

/* Fokus & Barrierefreiheit */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.section-dark :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 3000;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: var(--radius);
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  font-weight: 600; font-size: 0.98rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: #b9bcc2; }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.section-dark .btn-outline { color: #fff; border-color: rgba(255,255,255,.45); }
.section-dark .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.link-button { text-decoration: underline; text-underline-offset: 3px; color: inherit; font-weight: 500; }
.link-button:hover { color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000; height: var(--header);
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--accent); }
.site-nav ul { display: flex; align-items: center; gap: 32px; }
.site-nav a { font-size: 0.94rem; font-weight: 500; color: var(--text); text-decoration: none; padding: 6px 0; }
.site-nav a:hover { color: var(--accent); }
.site-nav .nav-cta { color: var(--accent); font-weight: 600; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; margin-right: -10px; border-radius: var(--radius); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Sektionen */
.section { padding: var(--sec) 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--dark); color: var(--dark-text); }
.section-dark h2, .section-dark h3, .section-dark strong { color: #fff; }
.section-dark .eyebrow { color: #ff8a8f; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 + p { margin-top: 18px; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 24px; max-width: 19ch; }
.hero .lead { max-width: 34em; margin-bottom: 36px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: var(--radius); background: #d9dbde; }
.hero-media::after { content: ''; position: absolute; left: -16px; bottom: -16px; width: 96px; height: 96px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); pointer-events: none; }

/* Fakten-Leiste */
.facts-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts > div { padding: 28px 24px 28px 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-weight: 650; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.facts dd { color: var(--muted); font-size: 0.94rem; line-height: 1.5; }

/* Unternehmen */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.split .section-head { margin-bottom: 0; }
.split-body { font-size: 1.125rem; max-width: 38em; }

/* Ankaufsprofil */
.criteria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.criteria-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.criteria-card h3 { padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.checklist li { position: relative; padding-left: 26px; }
.checklist li + li { margin-top: 10px; }
.checklist li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; position: relative; padding: 32px 24px 8px 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 14px; }
.steps h3 { margin-bottom: 10px; }
.steps p { font-size: 0.97rem; color: var(--text); }

/* Zielgruppen */
.audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.audience-card { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); background: #fff; }
.audience-card h3 { font-size: 1.35rem; margin-bottom: 16px; }
.audience-card .card-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 10px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: 1.1rem; font-weight: 600; color: var(--ink); line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon { flex: 0 0 auto; width: 28px; height: 28px; border: 1px solid #c8cbd0; border-radius: 50%; position: relative; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; background: var(--accent); transform: translate(-50%, -50%); transition: transform .2s ease; }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 52px 26px 0; max-width: 46em; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
.contact-grid .lead { color: var(--dark-text); margin-top: 18px; }
.contact-grid .btn-row { margin-top: 32px; }
.contact-card { border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 32px 28px; }
.contact-card + .contact-card { margin-top: 16px; }
.contact-card h3 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dark-muted); margin-bottom: 14px; }
.contact-card .checklist li::before { border-color: #ff8a8f; }
.contact-line { display: block; color: #fff; font-size: 1.15rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); width: fit-content; max-width: 100%; overflow-wrap: anywhere; }
.contact-line:hover { border-color: #fff; }
.contact-line + .contact-line { margin-top: 10px; }
.contact-label { display: block; font-size: 0.85rem; color: var(--dark-muted); margin-top: 16px; }
.contact-label:first-of-type { margin-top: 0; }
address { font-style: normal; line-height: 1.75; }
.note { font-size: 0.95rem; color: var(--dark-muted); margin-top: 20px; }

/* Footer */
.site-footer { background: #0b0d10; color: #9aa1ab; padding: 40px 0; font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.footer-links a, .footer-links button { color: #b4bac3; text-decoration: none; font-size: 0.9rem; display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover, .footer-links button:hover { color: #fff; }
.footer-logo { height: 40px; width: auto; filter: grayscale(1) brightness(1.6); opacity: .8; transition: filter .2s ease, opacity .2s ease; }
.footer-logo--suites { height: 64px; }
.footer-links a:hover .footer-logo, .footer-links a:focus-visible .footer-logo { filter: none; opacity: 1; }

/* Modals (Impressum/Datenschutz) */
.modal { border: 0; padding: 0; margin: auto; width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 48px); border-radius: var(--radius); box-shadow: 0 24px 80px rgba(0,0,0,.35); background: #fff; color: var(--text); }
.modal::backdrop { background: rgba(11,13,16,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-box { position: relative; padding: clamp(28px, 5vw, 44px); border-top: 4px solid var(--accent); overflow-wrap: break-word; }
.modal-box h3 { font-size: 1.5rem; padding-right: 48px; }
.modal-box h4 { color: var(--ink); font-size: 1.02rem; margin: 1.4em 0 0.4em; }
.modal-box p, .modal-box ul { margin-bottom: 0.8em; }
.modal-box p + p { margin-top: 0; }
.modal-box ul { list-style: disc; padding-left: 1.2em; }
.close-modal { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; font-size: 1.9rem; line-height: 1; color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.close-modal:hover { background: var(--soft); }
html.modal-open { overflow: hidden; }

/* 404 */
.error-page { min-height: calc(100vh - var(--header) - 120px); display: flex; align-items: center; }
.error-code { font-size: clamp(4rem, 14vw, 9rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--line); margin-bottom: 8px; }

/* Responsive */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; gap: 0 32px; }
  .steps li, .steps li + li { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  :root { --header: 64px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: var(--header) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(0,0,0,.08); display: none; }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: 15px 0; font-size: 1.05rem; }
  .hero-grid, .split, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .hero-media::after { display: none; }
  .criteria, .audience { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div, .facts > div:nth-child(3) { padding: 18px 0; border-left: 0; }
  .facts > div + div { border-top: 1px solid var(--line); }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
  .criteria-card { padding: 26px 22px; }
  .faq-answer { padding-right: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 8px 24px; }
}
