/*
Theme Name: Olff Elementor
Template: hello-elementor
Description: Child-Theme für die Website von Martin Olff, KI und Digitalisierung für Handwerk und Industrie. Ergänzt die Elementor-Vorlage um Raster, feste Kopfzeile und Detailstile.
Version: 1.2.0
Requires at least: 6.5
Text Domain: olff-elementor
*/

/* Grundlagen */
html { scroll-padding-top: 110px; }
body { background: #F2F5F3; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
a:focus-visible, .elementor-button:focus-visible { outline: 2px solid #1F4E79; outline-offset: 3px; }
.ob-narrow { max-width: 52rem; }

/* Feste Kopfzeile */
.e-con.ob-header { position: sticky !important; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(18, 48, 58, 0.06); }
.admin-bar .e-con.ob-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .e-con.ob-header { top: 46px; } }
.ob-brand-title a { color: inherit !important; text-decoration: none; }
.ob-nav p { display: flex; gap: 28px; margin: 0; }
.ob-nav a { color: #12303A; text-decoration: none; }
.ob-nav a:hover, .ob-nav a:focus { color: #1F4E79; text-decoration: none; }
@media (max-width: 1024px) { .ob-nav { display: none; } }
@media (max-width: 600px) { .ob-header .elementor-widget-button { display: none; } }

/* Raster */
.e-con.ob-grid2, .e-con.ob-grid3, .e-con.ob-grid4 { display: grid !important; }
.e-con.ob-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.e-con.ob-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.e-con.ob-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ob-grid2 > .elementor-element, .ob-grid3 > .elementor-element, .ob-grid4 > .elementor-element { width: auto !important; max-width: none !important; }
@media (max-width: 1024px) {
	.e-con.ob-grid3, .e-con.ob-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.e-con.ob-grid2, .e-con.ob-grid3, .e-con.ob-grid4 { grid-template-columns: minmax(0, 1fr); }
}

/* Zeilen: Zeitleiste, Rhythmus, Vorgehen */
.e-con.ob-tl-row { display: grid !important; grid-template-columns: 150px minmax(0, 1fr); align-items: baseline; }
.e-con.ob-rh-row { grid-template-columns: 170px minmax(0, 1fr); }
.e-con.ob-step { display: grid !important; grid-template-columns: 60px minmax(0, 3fr) minmax(0, 6fr) minmax(0, 2fr); align-items: baseline; }
.ob-tl-row > .elementor-element, .ob-step > .elementor-element { width: auto !important; max-width: none !important; }
.ob-step-dur { text-align: right; }
@media (max-width: 767px) {
	.e-con.ob-tl-row, .e-con.ob-rh-row { grid-template-columns: minmax(0, 1fr); gap: 4px !important; }
	.e-con.ob-step { grid-template-columns: 44px minmax(0, 1fr); gap: 6px 16px !important; }
	.ob-step > .elementor-element:nth-child(3), .ob-step > .elementor-element:nth-child(4) { grid-column: 2; }
	.ob-step-dur { text-align: left; }
}

/* Karten und Listen */
.ob-list ul { margin: 0; padding-left: 22px; }
.ob-list li { margin-bottom: 12px; }
.ob-list li:last-child { margin-bottom: 0; }
.ob-example { padding-top: 16px; border-top: 1px solid #DCE5E1; }
.ob-card-pkg .ob-desc { flex-grow: 1; }

/* Über mich */
.ob-portrait img { width: 100%; height: 560px; object-fit: cover; object-position: center top; border-radius: 10px; }
@media (max-width: 767px) { .ob-portrait img { height: 420px; } }

/* Kontakt */
.ob-placeholder { padding: 24px; border: 1px dashed #9FB1AB; border-radius: 6px; }
.ob-contact-card a { color: #1F4E79; }

/* Fußzeile */
.ob-footer-links p { display: flex; gap: 24px; margin: 0; }
.ob-footer a { color: #B9CDD0; }
.ob-footer a:hover { color: #FFFFFF; }

/* Logo in der Kopfzeile */
.ob-logo img { width: 46px; height: 46px; border-radius: 10px; display: block; }
@media (max-width: 600px) { .ob-tagline { display: none; } .ob-logo img { width: 40px; height: 40px; } }

/* Abstände der Abschnitte (unabhängig von den Elementor-Einstellungen) */
.e-con.ob-section { padding-top: 112px !important; padding-bottom: 112px !important; }
.e-con.ob-header + .e-con.ob-section { padding-top: 40px !important; padding-bottom: 120px !important; }
@media (max-width: 767px) {
	.e-con.ob-section { padding-top: 64px !important; padding-bottom: 64px !important; }
	.e-con.ob-header + .e-con.ob-section { padding-top: 32px !important; }
}
