/* Köppel AG – Ergänzende Stile (Frontend + Editor) */

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { -webkit-font-smoothing: antialiased; }

/* ---------- Header ---------- */
.header-wrap { position: sticky; top: 0; z-index: 100; }
.admin-bar .header-wrap { top: 32px; }
.site-header { background: rgba(255,255,255,.97); border-bottom: 1px solid var(--wp--preset--color--line); }
.site-header__inner { min-height: 72px; gap: 24px; }
.site-header .wp-block-site-logo img { max-height: 48px; width: auto; }
.main-nav { font-weight: 600; font-size: .95rem; gap: 26px; }
.main-nav a { color: var(--wp--preset--color--ink); text-decoration: none; }
.main-nav a:hover { color: var(--wp--preset--color--accent); }
.header-cta .wp-block-button__link { padding: 10px 20px; }
@media (max-width: 780px) { .header-cta { display: none; } }

/* ---------- Sektionen ---------- */
.site-main { margin-top: 0; }
.site-main > .wp-block-post-content > .section:first-child { margin-top: 0; }
.wp-block-post-content > .section { margin-block-start: 0; }
.section { padding-top: 88px; padding-bottom: 88px; }
.section.is-alt { background: var(--wp--preset--color--bg); }
@media (max-width: 760px) { .section { padding-top: 60px; padding-bottom: 60px; } }

.eyebrow { font-size: .8rem !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--accent); margin-bottom: -.4rem !important; }
.lead { font-size: 1.15rem; color: var(--wp--preset--color--muted); }
.small { font-size: .9rem; color: var(--wp--preset--color--muted); }
.todo { font-size: .85rem; color: #a12a1d; background: #fdecea; padding: 4px 10px; border-radius: 4px; display: inline-block; }

/* ---------- Hero ---------- */
.hero {
	color: #fff;
	padding-top: 120px; padding-bottom: 100px;
	background:
		linear-gradient(100deg, rgba(18,27,36,.94) 0%, rgba(18,27,36,.82) 45%, rgba(18,27,36,.45) 100%),
		url("../img/hero.jpg") center / cover no-repeat,
		#1d2a36;
}
.hero h1 { color: #fff; }
.hero-lead { font-size: 1.2rem; color: #d6dee6; }
.hero .wp-block-buttons { margin-top: 1.8rem; }
.hero .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.hero .is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.1); }
.facts { margin-top: 64px !important; border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px; }
.fact { color: #aebbc7; font-size: .9rem; line-height: 1.35; }
.fact strong { display: block; font-size: 2.1rem; color: #fff; line-height: 1.15; margin-bottom: 4px; }
@media (max-width: 781px) { .hero { padding-top: 80px; padding-bottom: 70px; } }

/* ---------- Karten ---------- */
.cards { margin-top: 2.4rem !important; gap: 26px; }
.card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 10px; overflow: hidden; padding: 0 26px 26px; }
.card > * { margin-top: 0; margin-bottom: .8rem; }
.card > .wp-block-image:first-child { margin: 0 -26px 22px; }
.card > .wp-block-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.card ul { padding-left: 1.1em; color: var(--wp--preset--color--muted); }
.card li { margin: .25em 0; }
.tag { display: inline-block; background: #fdf0e7; color: var(--wp--preset--color--accent-dark); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-bottom: .2rem !important; }

/* Spezifikationstabelle */
.spec { margin: 0; }
.spec table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.spec td { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: 7px 0; }
.spec td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Über uns ---------- */
.about { align-items: center !important; gap: 56px; }
.rounded img { border-radius: 10px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.timeline { list-style: none; padding: 0 0 0 0 !important; margin-top: 1.6rem; border-left: 3px solid var(--wp--preset--color--accent); }
.timeline li { position: relative; padding: 0 0 22px 30px; color: var(--wp--preset--color--muted); }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--wp--preset--color--accent); }
.timeline li strong { display: block; color: var(--wp--preset--color--ink); font-size: 1.05rem; }

/* ---------- Galerie ---------- */
.section .wp-block-gallery { margin-top: 2rem; }
.section .wp-block-gallery img { border-radius: 8px; aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- Standorte ---------- */
.locs { margin-top: 2rem !important; gap: 26px; }
.loc { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 10px; padding: 26px; }
.loc p { color: var(--wp--preset--color--muted); margin: .4em 0; }

/* ---------- Karriere ---------- */
.jobs { background: var(--wp--preset--color--steel); color: #fff; border-radius: 10px; padding: 44px !important; margin-top: 64px !important; }
.jobs h2 { color: #fff; margin: 0; }
.jobs p { color: #c3ced8; }
.jobs .wp-block-columns { align-items: center !important; }
.jobs-cta .wp-block-buttons { justify-content: flex-end; }
@media (max-width: 781px) { .jobs { padding: 30px !important; } .jobs-cta .wp-block-buttons { justify-content: flex-start; } }

/* ---------- Kontakt ---------- */
.contact { gap: 56px; }
.contact-item { margin: 1.1rem 0 0 !important; font-size: 1.1rem; font-weight: 600; }
.contact-item a { color: var(--wp--preset--color--ink); text-decoration: none; }
.contact-item .lbl { display: block; font-size: .78rem; font-weight: 400; text-transform: uppercase; letter-spacing: .1em; color: var(--wp--preset--color--muted); }
.form-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 10px; padding: 32px; }

/* Contact Form 7 */
.wpcf7 label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 14px; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 select, .wpcf7 textarea {
	width: 100%; font: inherit; font-size: 1rem; font-weight: 400; padding: 11px 13px; margin-top: 6px;
	border: 1px solid #c8d0d8; border-radius: 6px; background: #fff; box-sizing: border-box;
}
.wpcf7 textarea { min-height: 140px; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: 2px solid var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); }
.wpcf7 .cf7-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wpcf7 .wpcf7-acceptance label { font-weight: 400; font-size: .85rem; color: var(--wp--preset--color--muted); }
.wpcf7 input[type=submit] { background: var(--wp--preset--color--accent); color: #fff; border: 0; border-radius: 6px; padding: 13px 24px; font-weight: 700; font-size: 1rem; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: var(--wp--preset--color--accent-dark); }
@media (max-width: 600px) { .wpcf7 .cf7-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Unterseiten ---------- */
.page-main { padding-top: 56px; padding-bottom: 80px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--wp--preset--color--ink); color: #9fadba; padding-top: 56px; padding-bottom: 30px; font-size: .92rem; margin-top: 0 !important; }
.site-footer h4 { color: #fff; }
.site-footer a { color: #cfd8e0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-copy { border-top: 1px solid #2c3a47; margin-top: 40px !important; padding-top: 22px; font-size: .85rem; }
.wp-site-blocks > footer.wp-block-template-part, .wp-site-blocks > main { margin-block-start: 0; }

/* Schmalere Textblöcke linksbündig in der 1180px-Spalte halten
   (WordPress zentriert Kinder von «constrained»-Gruppen sonst) */
.is-layout-constrained > h1.wp-block-heading,
.is-layout-constrained > .hero-lead,
.is-layout-constrained > .lead,
.is-layout-constrained > .timeline {
	margin-left: max(0px, calc((100% - 1180px) / 2)) !important;
	margin-right: auto !important;
}
.is-layout-constrained > h1.wp-block-heading { max-width: 780px !important; }
.is-layout-constrained > .hero-lead { max-width: 640px !important; }
.is-layout-constrained > .lead, .is-layout-constrained > .timeline { max-width: 760px !important; }

/* CF7 Feinschliff (v1.0.2) */
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 input:not([type=submit]):not([type=checkbox]):not([type=radio]):not([type=file]),
.wpcf7 select, .wpcf7 textarea { width: 100% !important; max-width: 100%; }
.wpcf7 input[type=file] { margin-top: 6px; font-size: .9rem; }
.wpcf7 .wpcf7-acceptance { display: block; margin: 6px 0 18px; font-size: .85rem; color: var(--wp--preset--color--muted); }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-acceptance input { margin-right: 8px; }
.wpcf7 .wpcf7-not-valid-tip { font-size: .8rem; font-weight: 400; margin-top: 4px; }
.wpcf7 .wpcf7-response-output { margin: 16px 0 0 !important; border-radius: 6px; }
.site-header .wp-block-site-logo img { max-height: 64px; }
.wpcf7 .wpcf7-acceptance label { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.wpcf7 .wpcf7-acceptance input { margin: 4px 0 0; }
