/*
Theme Name: Ablagepilot
Theme URI: https://ablagepilot.de
Author: Suppora GmbH
Author URI: https://suppora.eu
Description: Block-Theme für ablagepilot.de – automatische Digitalisierung und Ablage von Unternehmensdokumenten. Schriften lokal, keine externen Abrufe, Härtung in functions.php.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: Proprietary
Text Domain: ablagepilot
*/

/* Kleine Ergänzungen, die theme.json nicht abbildet. */
html { scroll-behavior: smooth; }
:where(.wp-site-blocks) :focus-visible { outline: 3px solid var(--wp--preset--color--sky); outline-offset: 2px; }
.ap-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; color: var(--wp--preset--color--navy); padding: .75rem 1rem; }
.ap-skip:focus { left: 1rem; top: 1rem; }

/* Kopfzeile mit Akzentlinie */
.ap-header { border-bottom: 3px solid var(--wp--preset--color--sky); }
.ap-header .wp-block-navigation a { text-decoration: none; }
.ap-header .wp-block-navigation a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Bildschirmfotos des Produkts */
.ap-shot img { border-radius: 10px; box-shadow: 0 18px 48px rgba(20, 33, 61, .18), 0 2px 6px rgba(20, 33, 61, .08); border: 1px solid #DDE3EE; }
.ap-hero .ap-shot img { box-shadow: 0 30px 80px rgba(0, 0, 0, .45); border-color: rgba(255,255,255,.15); }

/* Karten */
.ap-card { background: #fff; border: 1px solid #DDE3EE; border-radius: 12px; height: 100%; }
.ap-card h3 { margin-top: .5rem; }
.ap-icon img { width: 44px; height: 44px; }
.ap-kicker { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: .8125rem; color: var(--wp--preset--color--slate); }
.ap-hero .ap-kicker { color: var(--wp--preset--color--sky); }
.ap-rule { width: 56px; height: 4px; background: var(--wp--preset--color--sky); border: 0; margin-left: 0; }

/* Ablauf in Schritten */
.ap-steps { counter-reset: ap; }
.ap-steps .ap-step { position: relative; padding-left: 3.25rem; }
.ap-steps .ap-step::before { counter-increment: ap; content: counter(ap); position: absolute; left: 0; top: .1rem; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--wp--preset--color--navy); color: #fff; font-weight: 700; display: grid; place-items: center; }

/* FAQ */
.wp-block-details { border-bottom: 1px solid #DDE3EE; padding: 1rem 0; }
.wp-block-details summary { font-weight: 600; cursor: pointer; }

/* Tabellen */
.wp-block-table table { border-collapse: collapse; }
.wp-block-table td, .wp-block-table th { border: 1px solid #DDE3EE; padding: .6rem .8rem; }
.wp-block-table thead { background: var(--wp--preset--color--mist); }

@media (max-width: 781px) {
  .ap-hide-mobile { display: none !important; }
}

/* Vertraulich-Markierung wie im Produkt */
.ap-badge { display: inline-block; font-size: .8125rem; font-weight: 600; padding: .1rem .5rem; border-radius: 6px; background: var(--wp--preset--color--sky-soft); color: var(--wp--preset--color--navy); }
.ap-badge.is-alert { background: #FDE8E8; color: var(--wp--preset--color--alert); }
/* Häkchen-Listen */
.ap-checks { list-style: none; padding-left: 0; }
.ap-checks li { padding-left: 1.75rem; position: relative; margin: .4rem 0; }
.ap-checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1.1rem; height: .6rem; border-left: 3px solid var(--wp--preset--color--sky); border-bottom: 3px solid var(--wp--preset--color--sky); transform: rotate(-45deg); }
.ap-dark .ap-checks li::before { border-color: var(--wp--preset--color--sky); }
.ap-site-title a { text-decoration: none; }
.ap-logo-mark img { width: 36px; height: 36px; display: block; }
.ap-nav-cta a { background: var(--wp--preset--color--sky); color: var(--wp--preset--color--navy) !important; padding: .5rem .9rem; border-radius: 8px; text-decoration: none !important; }
.ap-nav-cta a:hover { background: #5CB3EA; }
.ap-footer a { color: #fff; }
.is-style-plain { list-style: none; padding-left: 0; }
.is-style-plain li { margin: .35rem 0; }

/* Vollbreite Abschnitte ohne Lücken aneinander; Kopf, Inhalt und Fuß bündig */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-block-start: 0; margin-block-end: 0; }
main.wp-block-group > * + * { margin-block-start: 0; }
.ap-hero h1 { font-size: clamp(2.125rem, 3.4vw, 3rem); }
.ap-hero .wp-block-post-excerpt__excerpt { margin-top: 0; }
.ap-phone img { border-radius: 22px; }

/* Seiten ohne Abschnitte (z. B. Impressum): Abstand oben und unten */
.wp-block-post-content > :not(.alignfull):first-child { margin-top: var(--wp--preset--spacing--50); }
.wp-block-post-content > :not(.alignfull):last-child { margin-bottom: var(--wp--preset--spacing--60); }
