/*
Theme Name: Fachbüro Gutenberg
Description: Schlankes, namensunabhängiges WordPress-Block-Theme für Fachbüros. Inhalte über Gutenberg, Gestaltung zentral im Theme.
Version: 3.3.1
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: picus
*/
:root{--font-heading:var(--wp--preset--font-family--heading,"Source Serif 4",Georgia,serif);--bg:var(--wp--preset--color--background,oklch(.966 .01 95));--surface:var(--wp--preset--color--surface,#fff);--ph:var(--wp--preset--color--placeholder,oklch(.9 .018 95));--moss:var(--wp--preset--color--moss,oklch(.68 .09 128));--green-d:var(--wp--preset--color--green-deep,oklch(.33 .06 148));--fg:var(--wp--preset--color--foreground,oklch(.27 .02 150));--primary:var(--wp--preset--color--primary,oklch(.42 .07 148));--on-primary:var(--wp--preset--color--on-primary,oklch(.98 .005 95));--secondary:var(--wp--preset--color--secondary,oklch(.92 .015 95));--muted:var(--wp--preset--color--muted,oklch(.5 .02 150));--border:var(--wp--preset--color--border,oklch(.88 .018 95));--r:.5rem;--site:var(--wp--style--global--wide-size,1120px)}
*,*::before,*::after{box-sizing:border-box}
.wp-site-blocks :is(h1,h2,h3,h4,p,figure,ul,ol),.editor-styles-wrapper :is(h1,h2,h3,h4,p,figure,ul,ol){margin-block:0}
:where(.wp-site-blocks,.editor-styles-wrapper) figure{margin-inline:0}
.wp-site-blocks .wp-block-post-content > * + *{margin-block-start:0}
body{background:var(--bg);color:var(--fg);font-size:1.0625rem;line-height:1.65;display:flex;flex-direction:column;min-height:100vh}
main{flex:1}
h1,h2,h3,h4{letter-spacing:0;line-height:1.2}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.wrap{max-width:var(--site);margin:0 auto;padding:0 1.5rem}
.ph{background-color:var(--ph);background-image:repeating-linear-gradient(135deg,transparent 0 14px,color-mix(in oklab,var(--moss) 14%,transparent) 14px 15px);color:var(--muted);display:flex;align-items:center;justify-content:center;font-size:.85rem;text-align:center;overflow:hidden}
.ph img{width:100%;height:100%;object-fit:cover}
.round{border-radius:50%}.rounded{border-radius:calc(var(--r) + 8px)}
/* Header */
.site-header{position:sticky;top:0;z-index:20;border-bottom:1px solid var(--border);background:color-mix(in oklab,var(--bg) 90%,transparent);backdrop-filter:blur(8px)}
.site-header .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding-top:1rem;padding-bottom:1rem}
.brand{display:flex;align-items:center;gap:.75rem}


.brand span.name{font-family:var(--font-heading);font-size:1.25rem;font-weight:800;color:var(--primary)}
.nav ul{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:.25rem;font-size:.95rem}
.nav a{display:block;border-radius:6px;padding:.375rem .75rem;color:var(--muted);transition:color .2s}
.nav a:hover{color:var(--primary)}
.nav .current-menu-item>a,.nav .current_page_item>a{background:var(--secondary);color:var(--primary);font-weight:600}
/* Footer */
.site-footer{margin-top:6rem;background:var(--green-d);color:var(--on-primary)}
.site-footer .wrap{display:flex;flex-direction:column;gap:1.5rem;padding-top:2.5rem;padding-bottom:2.5rem}
.site-footer .name{font-family:var(--font-heading);font-size:1.125rem;font-weight:800}
.site-footer small{font-size:.875rem;opacity:.75}
.site-footer ul{list-style:none;padding:0;display:flex;gap:1.5rem;font-size:.875rem}
.site-footer ul a{opacity:.8}.site-footer ul a:hover{opacity:1}
@media(min-width:768px){.site-footer .wrap{flex-direction:row;align-items:flex-end;justify-content:space-between}}
/* Page hero */
.page-hero{padding-top:4rem;padding-bottom:2.5rem}
.eyebrow{margin-bottom:.75rem;font-size:.875rem;font-weight:600;text-transform:uppercase;letter-spacing:.18em;color:var(--moss)}
.page-hero h1{max-width:48rem;font-size:2.25rem;font-weight:800;color:var(--primary)}
.page-hero .lead{margin-top:1.25rem;max-width:42rem;font-size:1.125rem;color:var(--muted)}
@media(min-width:768px){.page-hero h1{font-size:3rem}}
/* Start */
.hero{position:relative}
.hero .ph{height:70vh;min-height:420px;width:100%}
.hero .overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:0 1.5rem;text-align:center;color:var(--on-primary);background:color-mix(in oklab,var(--green-d) 45%,transparent)}
.hero .overlay>div{max-width:48rem}
.hero .eyebrow{color:inherit;margin-bottom:1rem}
.hero h1{font-size:3rem;font-weight:800;line-height:1.1}
.hero .claim{margin-top:1rem;font-family:var(--font-heading);font-size:1.5rem;font-weight:600;line-height:1.35}
.hero .sub{margin:1.5rem auto 0;max-width:36rem;font-size:1.125rem;opacity:.9}
@media(min-width:768px){.hero h1{font-size:4.5rem}.hero .claim{font-size:1.875rem}}
.intro{padding-top:3rem;padding-bottom:3rem;display:grid;gap:2.5rem}
.intro h2{font-size:1.5rem;color:var(--primary)}
.intro .txt>*+*{margin-top:1.25rem}.intro .big{font-size:1.25rem}
@media(min-width:768px){.intro{grid-template-columns:1fr 2fr}}
.tiles{display:grid;gap:1.5rem;padding-top:3rem;padding-bottom:3rem}
@media(min-width:640px){.tiles{grid-template-columns:1fr 1fr}}
.tile{position:relative;display:block;aspect-ratio:1;overflow:hidden;border-radius:calc(var(--r) + 8px)}
.tile .ph{height:100%;transition:transform .5s}.tile:hover .ph{transform:scale(1.05)}
.tile .bar{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;color:var(--on-primary);background:color-mix(in oklab,var(--green-d) 90%,transparent);font-family:var(--font-heading);font-size:1.5rem;font-weight:700}
.tile .arrow{transition:transform .2s}.tile:hover .arrow{transform:translateX(4px)}
/* Leistungen */
.wide-ph{aspect-ratio:21/8;margin-bottom:2.5rem}
.cards{display:grid;gap:1.5rem}@media(min-width:768px){.cards{grid-template-columns:1fr 1fr}}
.card{border:1px solid var(--border);background:var(--surface);border-radius:calc(var(--r) + 8px);padding:1.75rem}
.card h2{margin-bottom:1rem;font-size:1.25rem;color:var(--primary)}
.card ul{list-style:none;padding:0}.card li{display:flex;gap:.75rem;font-size:.98rem}.card li+li{margin-top:.625rem}
.card li:before{content:"";margin-top:.625rem;width:6px;height:6px;flex-shrink:0;border-radius:50%;background:var(--moss)}
/* Artengruppen */
.groups{display:grid;grid-template-columns:repeat(2,1fr);gap:2.5rem 1.5rem}
@media(min-width:640px){.groups{grid-template-columns:repeat(3,1fr)}}@media(min-width:768px){.groups{grid-template-columns:repeat(4,1fr)}}
.groups figure{text-align:center}.groups .ph{margin:0 auto;aspect-ratio:1;width:100%;max-width:200px}
.groups figcaption{margin-top:1rem}.groups b{font-family:var(--font-heading)}.groups small{display:block;margin-top:.25rem;font-size:.875rem;color:var(--muted)}
/* Two column */
.two{display:grid;gap:2.5rem;align-items:start}@media(min-width:768px){.two{grid-template-columns:1fr 1fr}}
.stack>*+*{margin-top:1.5rem}.ratio43{aspect-ratio:4/3}
.person{text-align:center}.person .ph{margin:0 auto;aspect-ratio:1;width:100%;max-width:280px}
.person h2{margin-top:1.5rem;font-size:1.5rem;color:var(--primary)}.person .q{color:var(--muted)}.person p+p{margin-top:.75rem}
.contact-card{display:block;border:1px solid var(--border);background:var(--surface);border-radius:calc(var(--r) + 8px);padding:1.75rem;transition:border-color .2s}
.contact-card:hover{border-color:var(--primary)}
.contact-card span{font-size:.875rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}
.contact-card strong{display:block;margin-top:.25rem;font-family:var(--font-heading);font-size:1.5rem;color:var(--primary)}
.entry-content>*+*{margin-top:1rem}.entry-content a{color:var(--primary);text-decoration:underline}

/* Native block alignment and shared editor styling */
.wp-site-blocks{min-height:100vh;display:flex;flex-direction:column}.wp-site-blocks>main{flex:1}.wp-block-post-content{width:100%}.header-row,.footer-row,.brand-row{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}.brand-row{justify-content:flex-start;gap:12px}.brand{font-size:20px;font-weight:800;color:var(--primary)}.wp-block-navigation{font-size:.95rem;color:var(--muted)}.wp-block-navigation-item__content{padding:6px 12px}.current-menu-item>a{background:var(--secondary);color:var(--primary);border-radius:6px}.site-footer .footer-row{flex-direction:row}.footer-brand{font-size:18px;font-weight:800}.footer-sub{font-size:14px;opacity:.75}.site-footer nav{color:inherit;font-size:14px}.wp-block-columns{gap:40px;margin:0}.wp-block-column{min-width:0}.wp-block-column>*+*{margin-top:20px}.intro{display:block}.intro-columns>.wp-block-column:first-child{flex-basis:33.333%}.intro-columns>.wp-block-column:last-child{flex-basis:66.667%}.intro p+p{margin-top:20px}.big{font-size:20px}.tiles{display:block}.tiles .wp-block-columns{gap:24px}.hero.wp-block-cover{height:70vh;min-height:420px;color:var(--on-primary);text-align:center}.hero h1{color:inherit}.hero .eyebrow{color:inherit}.hero-text{max-width:768px;margin:auto}.tile.wp-block-cover{padding:0;min-height:0;border-radius:16px}.tile .wp-block-cover__inner-container{height:100%;display:flex;align-items:flex-end}.tile .bar{position:static;padding:0;width:100%;margin:0}.bar a{display:flex;justify-content:space-between;width:100%;padding:20px 24px}.wide-ph img{width:100%;aspect-ratio:21/8;object-fit:cover;border-radius:16px}.service-row{gap:24px}.service-row+.service-row{margin-top:24px}.card{height:100%}.card ul{list-style:disc;padding-left:18px}.card li{display:list-item}.card li:before{display:none}.card li::marker{color:var(--moss)}.groups .species{text-align:center}.species figure{max-width:200px;margin:auto}.round img{border-radius:50%;aspect-ratio:1;object-fit:cover;width:100%}.species h2{font-size:17px;color:var(--fg);margin-top:16px}.species p{font-size:14px;color:var(--muted);margin-top:4px}.person figure{max-width:280px;margin:auto}.ratio43 img{width:100%;height:100%;object-fit:cover;border-radius:16px}.contact-label{font-size:14px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}.contact-value{font-family:var(--font-heading);font-size:24px;font-weight:700;color:var(--primary)}.muted{color:var(--muted)}.legal p+p{margin-top:16px}.legal a{color:var(--primary);text-decoration:underline}.wp-block-column figure+figure{margin-top:24px}.admin-bar .site-header{top:32px}.editor-styles-wrapper .site-header{position:static}.editor-styles-wrapper .hero.wp-block-cover{height:auto;min-height:500px}
@media(max-width:781px){.wp-block-columns{flex-wrap:wrap}.wp-block-columns>.wp-block-column{flex-basis:100%!important}.two{display:flex}.groups{grid-template-columns:repeat(3,minmax(0,1fr))}.page-hero h1{font-size:36px}.hero h1{font-size:48px}.hero .claim{font-size:24px}}
@media(max-width:639px){.groups{grid-template-columns:repeat(2,minmax(0,1fr))}.site-footer .footer-row{flex-direction:column;align-items:flex-start}.contact-value{font-size:20px}.hero.wp-block-cover{min-height:460px}.admin-bar .site-header{top:46px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.site-footer .wp-block-navigation-item__content{color:var(--on-primary);opacity:.8}.site-footer .wp-block-navigation-item__content:hover{opacity:1}

/* Keyboard focus without affecting the unchanged palette or normal state */
:where(.wp-site-blocks,.editor-styles-wrapper) a:focus-visible,:where(.wp-site-blocks,.editor-styles-wrapper) button:focus-visible{outline:2px solid var(--primary);outline-offset:3px}

/* Respect user-selected Gutenberg layout gaps in newly inserted custom groups. */
.wp-block-group[style*="--wp--style--block-gap"]{gap:var(--wp--style--block-gap)}

/* Website-Logo: freie Größe und Originalproportionen, ohne erzwungenen Kreis oder Zuschnitt.
 * Die Breite stellt Gutenberg am Website-Logo-Block ein. Standard/Rund bleibt im Editor wählbar.
 * Gilt auch für bereits in der WordPress-Datenbank gespeicherte Kopfzeilen aus Version 3.0. */
.site-header .brand-row{max-width:100%;min-width:0}
.site-header .brand-row .wp-block-site-logo{min-width:0;max-width:100%;flex:0 1 auto}
.site-header .brand-row .wp-block-site-logo img{display:block;max-width:100%;height:auto}

/* 3.2: Website-Titel und spezielle Schriftauszeichnungen folgen den globalen
 * Überschrift-Einstellungen; individuelle Block-Schriften haben Vorrang. */
:where(.brand,.footer-brand){font-family:var(--font-heading)}
/* 3.2: Name und Fusszeile verwenden native, updatefeste WordPress-Website-Bloecke. */
.brand-row .wp-block-site-title{margin:0}
.brand-row .wp-block-site-title a{color:inherit;text-decoration:none}
.site-footer .wp-block-site-title{margin:0}
.site-footer .wp-block-site-title a{color:inherit;text-decoration:none}
.site-footer .wp-block-site-tagline{margin:0}
