/*
Theme Name: Franz Band Fliesenbau
Theme URI: https://www.franz-band.de/
Description: Eigenes Theme für Franz Band Fliesenbau, Freiburg. Richtet beim Aktivieren Startseite, Ratgeber, Impressum und Datenschutz automatisch ein.
Version: 1.2.26
Requires at least: 6.5
Requires PHP: 7.4
Author: Franz Band Fliesenbau
Text Domain: franz-band
License: GNU General Public License v2 or later
*/

:root {
	--fb-blue: #0A5BC0;
	--fb-ink: #111111;
	--fb-grey: #3F3F3F;
	--fb-grey-2: #5C5C5C;
	--fb-line: #E4E1DC;
	--fb-line-2: #D6D2CB;
	--fb-bg: #FAF9F7;
	--fb-sand: #EFECE7;
	--fb-dark: #141414;
	--fb-wrap: 1320px;
	--fb-gutter: 32px;
}

body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
.wp-site-blocks { padding: 0; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
figure.wp-block-image { margin: 0; }
a { text-underline-offset: 4px; }

/* ---------- Grundbausteine ---------- */
.fb-wrap { max-width: var(--fb-wrap); margin-left: auto !important; margin-right: auto !important; padding-left: var(--fb-gutter); padding-right: var(--fb-gutter); box-sizing: border-box; width: 100%; }
.fb-section { padding-top: 120px; padding-bottom: 120px; }
.fb-pad-96 { padding-top: 96px; padding-bottom: 96px; }
.fb-pad-80 { padding-top: 80px; padding-bottom: 80px; }
.fb-pad-bottom-96 { padding-bottom: 96px; }
.fb-pad-112 { padding-top: 112px; padding-bottom: 112px; }
.fb-pad-120 { padding-top: 120px; padding-bottom: 120px; }
.fb-pad-bottom-120 { padding-bottom: 120px; }
[class*="fb-stack-"] { display: flex; flex-direction: column; }
.fb-stack-10 { gap: 10px; } .fb-stack-14 { gap: 14px; } .fb-stack-16 { gap: 16px; } .fb-stack-20 { gap: 20px; }
.fb-stack-24 { gap: 24px; } .fb-stack-40 { gap: 40px; } .fb-stack-48 { gap: 48px; } .fb-stack-56 { gap: 56px; }
.fb-maxw { max-width: 520px; } .fb-maxw-760 { max-width: 760px; } .fb-maxw-820 { max-width: 820px; }

.fb-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fb-grey-2); }
.fb-accent { color: var(--fb-blue); }
.fb-label { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.fb-muted { color: var(--fb-grey); }
.fb-small { font-size: 16px; }
.fb-lead { color: #E6EEFA; max-width: 560px; }
.fb-lead-l { font-size: 20px; line-height: 1.5; }
.fb-link { font-weight: 600; }
.fb-link a { text-underline-offset: 6px; }

h1 em, h2 em, h3 em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.fb-display { font-weight: 600; font-size: clamp(48px, 7vw, 104px); line-height: 0.98; letter-spacing: -0.03em; }
.fb-display--m { font-size: clamp(44px, 6vw, 80px); line-height: 1; }
.fb-h2 { font-size: clamp(36px, 4.5vw, 60px); line-height: 1.02; letter-spacing: -0.02em; }
.fb-h2--s { font-size: clamp(30px, 4vw, 52px); line-height: 1.05; }
.fb-h3 { font-size: 26px; letter-spacing: -0.01em; }
.fb-h4 { font-size: 20px; }

.fb-grid { display: grid; gap: 32px; }
.fb-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.fb-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.fb-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.fb-grid--feat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 600px) { .fb-grid--feat { grid-template-columns: 1fr; } }
.fb-grid--guides { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px 24px; }
.fb-grid--legal { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px 64px; }
.fb-gap-24 { gap: 24px; }

.fb-split { display: flex; flex-wrap: wrap; gap: 56px 64px; }
.fb-split__main, .fb-split__head { flex: 1 1 380px; min-width: 0; }
.fb-split__side { flex: 1 1 520px; min-width: 0; }
.fb-center { align-items: center; }
.fb-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }

.fb-border-top { border-top: 1px solid var(--fb-line); }
.fb-border-y { border-top: 1px solid var(--fb-line); border-bottom: 1px solid var(--fb-line); }
.fb-sand { background: var(--fb-sand); }
.fb-blue { background: var(--fb-blue); color: #fff; }
.fb-blue a:not(.wp-block-button__link) { color: #fff; }
.fb-blue .fb-eyebrow { color: #CFE0F7; }
.fb-dark { background: var(--fb-dark); color: var(--fb-bg); }

/* ---------- Kopf ---------- */
.fb-header { border-bottom: 1px solid var(--fb-line); background: var(--fb-bg); }
.fb-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 30px; padding-bottom: 30px; }
.fb-brand { display: flex; align-items: center; gap: 22px; text-decoration: none; color: var(--fb-ink); }
.fb-brand .wp-block-site-logo img { width: 190px; height: auto; display: block; }
.fb-brand__sub { text-transform: uppercase; font-size: 15px; letter-spacing: 0.22em; color: var(--fb-grey); border-left: 1px solid var(--fb-line-2); padding-left: 16px; line-height: 1.4; }
.fb-nav { font-size: 16px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.fb-nav .wp-block-navigation__container { gap: 10px 40px; }
.fb-nav .wp-block-navigation-item:last-child a { background: var(--fb-blue); color: #fff; padding: 12px 22px; }
.fb-nav .wp-block-navigation-item:last-child a:hover { background: #084c9f; color: #fff; }
.fb-nav .wp-block-navigation__responsive-container-open svg { width: 32px; height: 32px; }
@media (max-width: 781px) {
	.fb-header__inner { flex-wrap: nowrap; padding-top: 18px; padding-bottom: 18px; gap: 12px; }
	.fb-brand { gap: 14px !important; }
	.fb-brand .wp-block-site-logo img { width: 140px; }
	.fb-brand__sub { font-size: 12px; padding-left: 14px; }
	.fb-nav .wp-block-navigation-item:last-child a { padding: 10px 20px !important; }
}
.fb-nav a { text-decoration: none; }
.fb-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 32px; background: var(--fb-bg); }
.fb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 20px; font-size: 18px; }

/* ---------- Startseite ---------- */
.fb-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; padding-top: 96px; padding-bottom: 72px; }
.fb-hero .fb-display { flex: 1 1 640px; }
.fb-hero__aside { flex: 0 1 380px; display: flex; flex-direction: column; gap: 20px; }
.fb-hero-img img { width: 100%; height: clamp(320px, 52vw, 680px); object-fit: cover; object-position: center 55%; display: block; }

.fb-tile { display: flex; flex-direction: column; gap: 18px; }
.fb-tile-img img { width: 100%; height: 460px; object-fit: cover; display: block; }

.fb-rule-item { border-top: 2px solid #fff; padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.fb-blue .fb-rule-item .fb-small { color: #E6EEFA; }
.fb-rule-item--dark { border-top-color: var(--fb-ink); }
.fb-split__main .wp-block-buttons { margin-top: 4px; }

.fb-grid--services { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); column-gap: 40px; row-gap: 0; }
.fb-service { border-top: 1px solid var(--fb-line-2); padding: 18px 0; display: flex; gap: 20px; align-items: baseline; }
.fb-num { font-size: 13px; color: var(--fb-grey-2); font-variant-numeric: tabular-nums; }
.fb-service-title { font-size: 20px; font-weight: 500; }
#leistungen .fb-split__side, #leistungen .fb-grid--services { flex: 2 1 560px; }

.fb-step-no { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 44px; line-height: 1; }

.fb-ref-head { padding-top: 120px; padding-bottom: 56px; }
.fb-strip { display: flex; gap: 16px; overflow-x: auto; padding: 0 var(--fb-gutter) 64px; scrollbar-width: thin; }
.fb-strip-img { flex: 0 0 auto; }
.fb-strip > :first-child { margin-left: auto; }
.fb-strip > :last-child { margin-right: auto; }
.fb-strip-img img { height: 380px; width: auto; max-width: none; display: block; }
.fb-ref-body { padding-bottom: 120px; display: flex; flex-direction: column; gap: 48px; }
.fb-grid--projects { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); column-gap: 48px; row-gap: 0; }
.fb-project { border-top: 1px solid #3A3A3A; padding: 24px 0 30px; display: flex; flex-direction: column; gap: 6px; }
.fb-project-title { font-size: 18px; font-weight: 600; }
.fb-project-meta, .fb-muted-dark { color: #BDBDBD; font-size: 15px; }
.fb-ref-foot { border-top: 1px solid #3A3A3A; padding-top: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; }
.fb-ref-note { font-size: 18px; }

.fb-guide { display: flex; flex-direction: column; gap: 14px; }
.fb-guide-img img { width: 100%; height: 220px; object-fit: cover; display: block; }
.fb-guide-title a { text-decoration: none; }
.fb-guide-title a::after { content: ""; position: absolute; inset: 0; }
.fb-guide { position: relative; }

.fb-partner { border-top: 1px solid var(--fb-line); padding-top: 72px; }
.fb-brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; align-content: center; }
.fb-brand-logo { height: 96px; background: #fff; border: 1px solid var(--fb-line); display: flex; align-items: center; justify-content: center; padding: 14px 18px; box-sizing: border-box; }
.fb-brand-logo img { max-width: 100%; max-height: 66px; width: auto; height: auto; object-fit: contain; display: block; }

.fb-year { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: clamp(96px, 14vw, 200px); line-height: 0.85; }
.fb-team-img img { width: 100%; height: auto; display: block; box-sizing: border-box; background: #111111; padding: 3px; border: 14px solid #FFFFFF; box-shadow: 0 0 0 1px #E2DED6, 0 1px 2px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.10); }
.fb-team-caption { margin-top: 12px; }

.fb-meister { padding-bottom: 120px; }
.fb-master { display: flex; flex-direction: column; gap: 2px; }
.fb-master-img { margin-bottom: 12px !important; }
.fb-master-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.fb-master-year { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 40px; line-height: 1; }
.fb-master-name { font-size: 18px; font-weight: 600; }

.fb-contact { background: #EAF1FA; border-top: 4px solid var(--fb-blue); }
.fb-formcard { background: #fff; border: 1px solid #C9D6E8; padding: clamp(20px, 4vw, 40px); box-sizing: border-box; align-self: flex-start; }

.fb-card { background: #fff; border: 1px solid var(--fb-line); padding: 32px; }

/* ---------- Buttons ---------- */
.wp-block-button__link { border-radius: 0; padding: 16px 30px; font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
.wp-block-button:not([class*="is-style-fb"]) .wp-block-button__link { background: var(--fb-blue); color: #fff; }
.is-style-fb-light .wp-block-button__link { background: #fff; color: var(--fb-blue); }
.is-style-fb-dark .wp-block-button__link { background: var(--fb-ink); color: var(--fb-bg); padding: 14px 26px; }
.is-style-fb-outline-light .wp-block-button__link { background: transparent; color: #fff; border: 1px solid #fff; }
.wp-block-buttons { gap: 16px; }

/* ---------- Ratgeber & Rechtliches ---------- */
.fb-page-head { padding-top: 96px; padding-bottom: 40px; }
.fb-guide-layout { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; padding-bottom: 120px; }
.fb-toc { flex: 0 1 260px; position: sticky; top: 24px; display: flex; flex-direction: column; padding-top: 56px; }
.fb-toc .fb-eyebrow { padding-bottom: 8px; }
.fb-toc-link a { display: block; text-decoration: none; color: var(--fb-grey); font-size: 16px; padding: 6px 0; border-bottom: 1px solid var(--fb-line); }
.fb-articles { flex: 1 1 560px; max-width: 820px; display: flex; flex-direction: column; gap: 56px; min-width: 0; }
.fb-article { display: flex; flex-direction: column; gap: 18px; padding-top: 56px; border-top: 1px solid var(--fb-line); scroll-margin-top: 24px; }
.fb-article .fb-h2 { margin-top: -6px; }
.fb-article-img img { width: 100%; height: 340px; object-fit: cover; display: block; }
.fb-article .fb-h4 { margin-top: 6px; }
.fb-tip { background: #EAF1FA; border-left: 4px solid var(--fb-blue); padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; }
.fb-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; padding-top: 80px; padding-bottom: 80px; }
.fb-cta .fb-h2 { max-width: 720px; }

/* ---------- Formular ---------- */
.fb-form { display: flex; flex-direction: column; gap: 22px; }
.fb-form__title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.fb-form__row { display: flex; flex-wrap: wrap; gap: 22px; }
.fb-form__row label { flex: 1 1 200px; }
.fb-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; min-width: 0; }
.fb-form input[type=text], .fb-form input[type=tel], .fb-form input[type=email], .fb-form select, .fb-form textarea { font: inherit; font-size: 17px; letter-spacing: 0; text-transform: none; font-weight: 400; padding: 12px 14px; border: 1px solid #C9D6E8; background: #fff; border-radius: 0; width: 100%; box-sizing: border-box; color: var(--fb-ink); }
.fb-form textarea { resize: vertical; }
.fb-form .fb-form__consent { flex-direction: row; align-items: flex-start; gap: 10px; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 15px; color: var(--fb-grey); }
.fb-form .fb-form__consent input { margin-top: 4px; }
.fb-form button { align-self: flex-start; background: var(--fb-blue); color: #fff; border: 0; padding: 16px 30px; font: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.fb-form button:hover { background: #084c9f; }
.fb-form .fb-form__check input { max-width: 160px; }
.fb-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-form__note { font-size: 14px; color: var(--fb-grey-2); }
.fb-form__msg { padding: 16px 18px; font-size: 16px; }
.fb-form input[type=file] { font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 400; padding: 12px 14px; border: 1px dashed #9FB6D6; background: #F6F9FD; width: 100%; box-sizing: border-box; color: var(--fb-ink); }
.fb-form__hint { font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--fb-grey-2); }
#bewerbung-fliesenleger, #bewerbung-ausbildung { scroll-margin-top: 96px; }
.fb-form__msg--ok { background: #E7F4EA; border-left: 4px solid #2E7D32; }
.fb-form__msg--err { background: #FCEBEA; border-left: 4px solid #C62828; }

/* ---------- Fuß ---------- */
.fb-footer { background: var(--fb-dark); color: #BDBDBD; font-size: 15px; }
.fb-footer a { color: #BDBDBD; }
.fb-footer a:hover { color: #fff; }
.fb-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.fb-footer__title { color: #fff; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 14px; }
.fb-footer__links { display: flex; gap: 24px; }

@media (max-width: 600px) {
	:root { --fb-gutter: 20px; }
	.fb-section, .fb-pad-120, .fb-pad-112 { padding-top: 80px; padding-bottom: 80px; }
	.fb-pad-96 { padding-top: 64px; padding-bottom: 64px; }
	.fb-pad-80 { padding-top: 56px; padding-bottom: 56px; }
	.fb-pad-bottom-96 { padding-bottom: 64px; }
	.fb-hero { padding-top: 56px; padding-bottom: 40px; }
	.fb-tile-img img { height: 320px; }
	.fb-strip-img img { height: 240px; }
	.fb-ref-head { padding-top: 80px; padding-bottom: 32px; }
	.fb-toc { position: static; padding-top: 0; }
	.fb-article-img img { height: 220px; }
}
.fb-service { padding: 22px 0 26px; }
.fb-service-body { display: flex; flex-direction: column; gap: 6px; }
.fb-service-text { font-size: 15px; line-height: 1.5; color: var(--fb-grey); }

/* ---------- Mitlaufende Kopfzeile ---------- */
html { scroll-behavior: smooth; }
.wp-site-blocks > .wp-block-template-part:first-child { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
.fb-header { transition: box-shadow .2s; }
.fb-header__inner { transition: padding .2s; }
.fb-brand .wp-block-site-logo img { transition: width .2s; }
.is-scrolled .fb-header { box-shadow: 0 1px 12px rgba(0,0,0,.06); }
.is-scrolled .fb-header__inner { padding-top: 14px; padding-bottom: 14px; }
.is-scrolled .fb-brand .wp-block-site-logo img { width: 140px; }
[id] { scroll-margin-top: 110px; }
.fb-toc { top: 110px; }
@media (max-width: 781px) {
	.is-scrolled .fb-header__inner { padding-top: 12px; padding-bottom: 12px; }
	.is-scrolled .fb-brand .wp-block-site-logo img { width: 120px; }
	[id] { scroll-margin-top: 80px; }
}

/* ---------- Unterseiten Leistungen und Karriere ---------- */
#alle-leistungen .fb-grid--services { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
#stellen { padding-top: 24px; }
#stellen .fb-h2 + .fb-grid { margin-top: -8px; }
#partner { border-top: 0; padding-top: 0; padding-bottom: 120px; }
@media (max-width: 781px) { #partner { padding-bottom: 72px; } }
#komplettloesung { margin-top: 120px; }
@media (max-width: 781px) { #komplettloesung { margin-top: 64px; } }
