@import url("assets/fonts/fonts.css");

/* Börzel IT Security · Brand Guideline 1.3. Originale Logo-Assets unverändert. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--color-primary-800); background: var(--color-white); font-family: var(--font-body); font-size: 16px; line-height: 1.625; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--color-accent-700); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--color-accent-200); }
section { scroll-margin-top: 24px; }
.container { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 16px; padding: 12px 24px; background: var(--color-white); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: var(--color-white); }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; padding: 12px 0; }
.brand img { width: 184px; height: auto; }
nav { display: flex; align-items: center; gap: 24px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 14px; font-weight: 600; }
nav a:hover { text-decoration: underline; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 24px; border: 1.5px solid transparent; border-radius: var(--radius-button); font-size: 15px; font-weight: 700; line-height: 20px; text-align: center; text-decoration: none; }
.button-primary { background: var(--color-accent-600); color: var(--color-white); }
.button-primary:hover { background: var(--color-accent-700); text-decoration: none; }
.button-secondary { border-color: var(--color-border-strong); background: var(--color-surface-50); }
.button-secondary:hover { background: var(--color-surface-100); }
.hero { position: relative; isolation: isolate; background: var(--color-surface-50); overflow: hidden; }
.hero-visual { position: absolute; inset: 0; z-index: -1; }
.office { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-visual picture { display: block; height: 100%; opacity: .7; }
.hero-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--color-surface-50) 0%, var(--color-surface-50) 28%, transparent 76%); }
/* Motiv am 1200-px-Inhaltsraster ausrichten, damit es hinter dem Porträt bleibt. */
.brand-shapes { position: absolute; z-index: 1; width: 1000px; max-width: none; height: auto; right: max(-200px, calc((100% - 1200px) / 2 - 200px)); top: 46%; transform: translateY(-50%); }
.hero-inner { position: relative; min-height: 592px; display: flex; align-items: center; padding-block: 64px; }
.hero-copy { position: relative; z-index: 2; width: 58%; min-width: 0; }
.hero-media { display: contents; }
.hero-portrait { position: absolute; z-index: 1; bottom: 0; right: -32px; width: min(39%, 460px); max-width: none; height: auto; }
.eyebrow { margin: 0 0 16px; color: var(--color-accent-700); font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: var(--font-display); font-weight: 700; }
h1 { margin-bottom: 24px; font-size: 52px; line-height: 60px; letter-spacing: -.035em; }
h2 { margin-bottom: 32px; font-size: 36px; line-height: 44px; letter-spacing: -.025em; }
h3 { margin-bottom: 16px; font-size: 22px; line-height: 30px; letter-spacing: -.015em; }
p { margin: 0 0 16px; max-width: 68ch; }
.lead { max-width: 52ch; padding-right: 32px; font-size: 20px; line-height: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero-actions span { font-size: 24px; font-weight: 400; }
.benefits { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 24px 0 0; list-style: none; font-size: 14px; color: var(--color-text-secondary); }
.benefits li::before, .about-benefits li::before { content: '✓'; color: var(--color-accent-700); font-weight: 700; margin-right: 8px; }
.section { padding-block: 64px; }
.services { padding-block: 32px 48px; }
.services h2 { max-width: 1100px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card { padding: 24px; background: var(--color-surface-50); border: 1px solid var(--color-surface-100); border-radius: 12px; }
.service-number { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 24px; border-radius: 8px; background: var(--color-accent-100); color: var(--color-accent-700); font-size: 16px; font-weight: 700; }
.service-card h3 { overflow-wrap: anywhere; }
.service-subtitle { display: block; font-size: 16px; line-height: 26px; letter-spacing: 0; }
.service-card p { color: var(--color-text-secondary); margin-bottom: 0; }
.service-note { margin: 24px 0 0; max-width: 100ch; font-size: 14px; line-height: 22px; color: var(--color-text-secondary); }
.method { background: var(--color-surface-100); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; display: flex; align-items: stretch; gap: 16px; }
.steps li:not(:last-child)::after { content: '→'; position: absolute; right: -32px; top: 50%; transform: translateY(-50%); color: var(--color-accent-700); font-size: 24px; }
.step-number { display: flex; align-items: center; justify-content: center; width: auto; min-width: 48px; min-height: 48px; aspect-ratio: 1; flex: 0 0 auto; align-self: stretch; border: 1px solid var(--color-border-subtle); border-radius: 8px; font-weight: 700; color: var(--color-accent-700); }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; }
.about h2 { margin-bottom: 24px; }
.about-copy { border-left: 1px solid var(--color-border-subtle); padding-left: 48px; padding-top: 32px; }
.about-copy > p { font-size: 18px; line-height: 30px; }
.about-benefits { padding: 0; margin: 24px 0 0; list-style: none; }
.about-benefits li { margin-top: 12px; }
.contact-section { padding-bottom: 48px; }
.contact-card { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; border-radius: 12px; padding: 40px; background: var(--color-primary-800); color: var(--color-white); }
.contact-card .eyebrow { color: var(--color-accent-200); }
.contact-card h2 { margin-bottom: 0; }
.contact-placeholder { border-top: 1px solid var(--color-border-strong); margin-top: 24px; padding-top: 16px; font-size: 14px; overflow-wrap: anywhere; }
.contact-placeholder strong { color: var(--color-accent-200); }
.contact-placeholder p { margin: 8px 0 0; }
.site-footer { color: var(--color-white); background: var(--color-primary-800); padding-block: 24px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.menu-toggle { min-height: 44px; border: 1.5px solid var(--color-border-strong); background: var(--color-white); color: var(--color-primary-800); border-radius: 8px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.menu-symbol::before { content: '☰'; font-size: 20px; }
.menu-toggle[aria-expanded="true"] .menu-symbol::before { content: '×'; }
@media (max-width: 1199px) {
  nav { gap: 16px; }
  .header-cta { padding-inline: 16px; }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-copy { width: 64%; }
  .brand-shapes { width: 850px; right: -240px; }
}
@media (max-width: 1023px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .container { width: calc(100% - 48px); }
  .header-inner { flex-wrap: wrap; gap: 0; min-height: 88px; }
  .menu-toggle:not([hidden]) { display: inline-flex; }
  .header-inner nav { width: 100%; flex-direction: column; align-items: stretch; padding: 16px 0 24px; gap: 4px; }
  .header-inner nav a { padding: 12px 16px; }
  .hero-copy { width: 66%; }
  .hero-portrait { width: 39%; right: -16px; }
  .brand-shapes { width: 720px; right: -220px; }
  h1 { font-size: 44px; line-height: 52px; }
  .hero-inner { min-height: 560px; }
  .steps { gap: 24px; }
  .steps li::after { display: none; }
  .about-grid { gap: 32px; }
  .about-copy { padding-left: 32px; }
}
@media (min-width: 1024px) { .menu-toggle { display: none !important; } }
@media (max-width: 767px) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 80px; }
  .brand img { width: 166px; }
  .hero-inner { min-height: 0; padding-block: 48px 0; flex-direction: column; }
  .hero-portrait { position: relative; right: auto; width: min(100%, 340px); margin-top: 32px; }
  .hero-copy { width: 100%; }
  h1 { font-size: 36px; line-height: 44px; overflow-wrap: anywhere; hyphens: auto; }
  h2 { font-size: 28px; line-height: 36px; overflow-wrap: anywhere; hyphens: auto; }
  .lead { padding: 0; font-size: 18px; line-height: 28px; }
  .hero-visual { inset: auto 0 0; height: 360px; z-index: -1; }
  .hero-visual::after { background: linear-gradient(180deg, var(--color-surface-50), transparent 45%); }
  .office { object-position: center 55%; }
  .brand-shapes { width: 170%; height: auto; right: -45%; top: 28%; }
  .section { padding-block: 48px; }
  .service-grid { gap: 16px; }
  .service-card { padding: 16px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .step-number { margin: 0; }
  .about-grid, .contact-card { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about-grid > *, .contact-card > * { min-width: 0; }
  .about-copy { border-left: 0; border-top: 1px solid var(--color-border-subtle); padding: 24px 0 0; }
  .contact-card { padding: 24px; gap: 24px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 16px; }
  .footer-inner nav { flex-wrap: wrap; gap: 8px 24px; }
}
@media (max-width: 479px) {
  .container { width: calc(100% - 32px); }
  .hero-actions { flex-direction: column; }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .benefits { gap: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .menu-toggle, .hero-visual, .hero-portrait, .hero-actions, .site-header nav, .site-footer nav { display: none !important; }
  .container { width: 100%; }
  .hero-copy { width: 100%; }
  .section, .hero-inner { padding-block: 24px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card, .steps li, .contact-card { break-inside: avoid; }
  .contact-card, .site-footer { background: var(--color-white); color: var(--color-primary-800); }
  .contact-card .eyebrow, .contact-placeholder strong { color: var(--color-primary-800); }
  .site-footer .brand { display: none; }
}

/* Bildhinweis ohne Box; mobil unterhalb des Porträts im normalen Fluss. */
.hero-image-note { position: absolute; z-index: 3; right: calc((min(1200px, 100vw - 64px) - 100vw) / 2 + 8px); bottom: 8px; margin: 0; padding: 4px 8px; border-radius: 4px; background: transparent; border: 0; border-radius: 0; color: var(--color-primary-800); font-size: 12px; line-height: 18px; }
@media (min-width: 768px) and (max-width: 1023px) { .hero-image-note { right: -16px; } }
@media (max-width: 767px) { .hero-image-note { right: -12px; } }
@media (max-width: 479px) { .hero-image-note { right: -8px; } }

/* Luftige Abschnitte: mindestens eine Ansicht, bei mehr Inhalt flexibel höher. */
@media screen {
  .section, .contact-section { padding-block: clamp(64px, 10svh, 120px); }
  .section h2 { margin-bottom: 48px; }
  .service-grid { gap: 32px; }
  .service-card { padding-block: 32px; }
}
@media screen and (min-width: 768px) {
  .hero-inner { min-height: calc(100svh - 88px); padding-block: 96px; }
  .section, .contact-section {
    min-height: 100svh;
    display: flex;
    align-items: center;
    scroll-margin-top: 0;
  }
  .contact-card { padding: 64px 48px; gap: 64px; }
  .about-copy { padding-top: 0; align-self: center; }
}
/* Navigation bleibt auf geräumigen Desktop-Ansichten zum Abschnittswechsel erreichbar. */
@media screen and (min-width: 1024px) and (min-height: 640px) {
  .site-header { position: sticky; top: 0; z-index: 10; }
  .site-header .brand { padding-block: 6px; }
  .hero-inner { min-height: calc(100svh - 80px); }
  .section, .contact-section { min-height: calc(100svh - 80px); scroll-margin-top: 80px; }
  #inhalt { scroll-margin-top: 80px; }
}
@media screen and (max-width: 767px) {
  .section h2 { margin-bottom: 32px; }
  .service-grid { gap: 24px; }
  .service-card { padding: 24px; }
  .steps { gap: 40px; }
  .hero-inner { padding-top: 64px; }
}

/* Sanfte Übergänge beim Abschnittswechsel; Inhalte bleiben im Dokumentfluss. */
@media screen and (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(56px);
    transition: opacity 1000ms ease, transform 1200ms cubic-bezier(.2, .7, .2, 1);
  }
  .scroll-reveal.is-visible, .scroll-reveal:focus-within {
    opacity: 1;
    transform: translateY(0);
  }
}
@media print {
  .scroll-reveal { opacity: 1; transform: none; }
}


/* Responsive-Korrekturen anhand feedback/responsive1–3.png. */
.service-card, .steps li > div { min-width: 0; }
.service-card h3, .service-card p, .steps p {
  overflow-wrap: anywhere;
  hyphens: auto;
}
@media screen and (max-width: 767px) {
  .hero-media {
    display: flex;
    position: relative;
    z-index: 1;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 64px;
  }
  .hero-portrait { margin-top: 0; }
  .hero-image-note {
    position: static;
    align-self: stretch;
    min-height: 34px;
    margin: 0;
    padding: 8px 0;
    text-align: right;
    background: var(--color-surface-50);
  }
  .hero-visual {
    bottom: 34px;
    height: calc(min(100vw - 40px, 340px) * 1402 / 1122);
    overflow: hidden;
  }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 479px) {
  .hero-visual { height: calc(min(100vw - 32px, 340px) * 1402 / 1122); }
}

/* Rechtstexte lesen sich im normalen Dokumentfluss, ohne Abschnittsanimationen. */
html.legal-document { scroll-snap-type: none; scroll-padding-top: 0; }
.legal-document .site-header { position: static; }
.legal-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 8px; }
.legal-content { max-width: 840px; padding-block: 64px 96px; overflow-wrap: anywhere; hyphens: auto; }
.legal-content h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.2; }
.legal-content h2 { margin: 48px 0 24px; font-size: 28px; line-height: 36px; }
.legal-content h3 { margin: 32px 0 16px; }
.legal-content p { max-width: none; }
.legal-content .button { margin-top: 32px; }
.footer-inner { flex-wrap: wrap; }
.footer-inner nav { flex-wrap: wrap; }
@media (max-width: 479px) {
  .legal-header { padding-bottom: 16px; }
  .legal-header nav { flex-wrap: wrap; }
  .legal-content { padding-block: 48px 64px; }
}


.contact-details { display: grid; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--color-border-strong); }
.contact-details a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; min-height: 44px; padding-block: 8px; overflow-wrap: anywhere; }
.contact-label { color: var(--color-accent-200); min-width: 64px; font-size: 14px; }
.contact-details a:hover { text-decoration-thickness: 2px; }


.footer-affiliations { display: flex; justify-content: flex-end; padding-top: 24px; }
.acs-link { display: inline-flex; max-width: 100%; background: var(--color-white); }
.acs-link img { width: 212px; height: auto; }
@media (max-width: 767px) { .footer-affiliations { justify-content: flex-start; } }


/* Kontaktformular: zwei Felder nebeneinander, mobil vollständig einspaltig. */
.contact-form { grid-column: 1 / -1; min-width: 0; padding-top: 32px; border-top: 1px solid var(--color-border-strong); }
.contact-form h3 { margin-bottom: 8px; }
.form-required, .form-privacy, .form-status { font-size: 14px; line-height: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; min-width: 0; }
.form-field label { font-weight: 600; }
.form-field input, .form-field textarea { width: 100%; min-width: 0; min-height: 48px; border: 2px solid var(--color-border-strong); border-radius: 8px; background: var(--color-white); color: var(--color-primary-800); font: inherit; padding: 12px 16px; }
.form-field textarea { resize: vertical; }
.form-privacy { max-width: 80ch; }
.form-status { color: var(--color-accent-200); }
.contact-form button { font: inherit; cursor: pointer; }
.contact-form button:disabled { color: var(--color-primary-800); background: var(--color-accent-100); cursor: not-allowed; }
@media (max-width: 767px) { .form-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } }

.form-trap { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.field-error { font-size: 14px; line-height: 22px; margin: 0; }
.form-field [aria-invalid="true"] { border-width: 3px; }
.form-status:empty { display: none; }

/* Vorgehen bleibt als kleine Abschnittsüberschrift semantisch erhalten. */
.method h2.eyebrow { margin-bottom: 32px; font-family: var(--font-body); font-size: 12px; line-height: 18px; letter-spacing: .08em; }

.steps li > div { flex: 1; }
.step-number { font-size: 32px; line-height: 1; }
