/*
Theme Name: Katharina Gilber
Theme URI: https://kb.herrhansen.com/
Author: herrhansen
Description: Bearbeitbares WordPress-Block-Theme auf Basis der bereitgestellten Gilber-HTML-Vorlage.
Version: 1.0.1
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: katharina-gilber
*/

:root {
  --ink: var(--wp--preset--color--ink, #161616);
  --panel: var(--wp--preset--color--panel, #202020);
  --cream: var(--wp--preset--color--cream, #f2eee8);
  --accent: var(--wp--preset--color--accent, #cf000f);
  --muted: #a6a6a6;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--ink); color: var(--cream); overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.wp-site-blocks { overflow: clip; }
.wp-site-blocks > * { margin-block-start: 0 !important; }
.site-container, .site-footer { width: min(calc(100% - 64px), 1280px); max-width: none; margin-inline: auto; }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; height: 100px; display: flex; align-items: center; padding: 0 clamp(32px, 6vw, 104px); margin: 0; background: linear-gradient(to bottom, rgba(22,22,22,.96), rgba(22,22,22,.65) 75%, transparent); }
.site-header > * { margin-block: 0; }
.brand-group { flex: 0 0 auto; gap: 0 !important; }
.brand-logo { margin: 0; }
.brand-logo img { width: auto; max-height: 48px; }
.brand-group:has(.brand-logo img) .brand-title { display: none; }
.brand-title { margin: 0; font-size: 2rem; line-height: 1; font-weight: 600; letter-spacing: -.07em; }
.brand-title a, .footer-brand a { color: white; text-decoration: none; }
.brand-title a:hover, .footer-brand a:hover { color: white; }
.site-nav { margin-inline: auto !important; }
.site-nav .wp-block-navigation-item__content { color: #ddd; font-size: .88rem; font-weight: 600; text-decoration: none; }
.site-nav .wp-block-navigation-item__content:hover { color: white; }
.site-nav .wp-block-navigation__container { gap: clamp(22px, 3.2vw, 52px); }
.header-note { flex: 0 0 auto; margin: 0; color: #9c9c9c; font-size: .67rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.admin-bar .site-header { top: 32px; }

.homepage-content { max-width: none !important; margin: 0 !important; }
.homepage-content > * { margin-block-start: 0 !important; }
.section { position: relative; min-height: 100vh; padding-block: 145px 110px; }
:where(.section.wp-block-group) { display: flex; align-items: center; }
.section .wp-block-cover__inner-container { position: relative; z-index: 1; width: 100%; max-width: none !important; }
.section h2 { margin: 0; color: white; font-size: clamp(3.4rem, 7.2vw, 7.8rem); line-height: .98; letter-spacing: -.055em; font-weight: 600; }
.section h2::after, .hero-title::after { content: '.'; color: var(--accent); }
.eyebrow { display: flex; align-items: center; gap: 18px; margin: 0 0 42px !important; color: #c5c5c5; font-size: .73rem; line-height: 1.3; font-weight: 600; letter-spacing: .23em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 35px; height: 2px; flex: 0 0 35px; background: var(--accent); }

.hero { display: flex; align-items: center; background: radial-gradient(circle at 76% 46%, #282323 0, transparent 32%), var(--ink); }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .15; background-image: linear-gradient(90deg, transparent calc(100% - 1px), #ffffff 100%); background-size: 25% 100%; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; min-height: 590px; position: relative; z-index: 2; }
.hero-copy { position: relative; z-index: 3; padding-top: 35px; }
.hero-title { margin: 0 !important; color: white; white-space: nowrap; font-size: clamp(4.4rem, 8.5vw, 9.4rem); line-height: .99; letter-spacing: -.07em; font-weight: 600; }
.hero-lead { max-width: 570px; margin: 35px 0 42px !important; color: #d1d1d1; font-size: clamp(1.15rem, 1.65vw, 1.5rem); line-height: 1.6; }
.hero-button .wp-block-button__link { display: inline-flex; gap: 44px; align-items: center; padding: 17px 25px; border-radius: 0; background: var(--accent); color: white; font-size: .8rem; font-weight: 600; text-decoration: none; }
.hero-button .wp-block-button__link:hover { background: #ad000e; color: white; }
.hero-art { position: relative; min-height: 520px; height: min(66vw, 720px); display: grid; place-items: center; }
.hero-art::before, .hero-art::after { content: ''; position: absolute; width: 91%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; transform: rotate(-24deg) scaleX(.84); }
.hero-art::after { width: 108%; transform: rotate(24deg) scaleX(.87); border-color: rgba(207,0,15,.28); }
.art-disc { position: relative; width: 68%; aspect-ratio: 1; display: grid; place-items: center; margin: 0 !important; border-radius: 50%; background: radial-gradient(circle at 28% 22%, #624041, #312526 48%, #160f10 76%); box-shadow: 0 35px 100px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.12); color: #f7eee8; font-family: Georgia, serif; font-style: italic; font-size: clamp(14rem, 28vw, 28rem); line-height: 1; letter-spacing: -.11em; text-shadow: 12px 22px 30px rgba(0,0,0,.25); transform: rotate(-12deg); }
.art-disc::after { content: '.'; position: absolute; right: 19%; bottom: 7%; color: var(--accent); font-family: Gilroy, sans-serif; font-style: normal; font-size: .35em; }
.scroll-cue { position: absolute; z-index: 3; bottom: 44px; left: clamp(32px, 6vw, 104px); margin: 0 !important; font-size: .65rem; text-transform: uppercase; letter-spacing: .2em; }
.scroll-cue a { color: #aaa; text-decoration: none; }
.scroll-cue a:hover { color: white; }

.section-grid { display: grid; grid-template-columns: 1fr .84fr; gap: 9vw; align-items: center; position: relative; z-index: 1; }
.section-body { max-width: 540px; padding-top: 80px; }
.section-body p { color: #bdbdbd; font-size: 1.15rem; line-height: 1.8; }
.section-body .statement { margin: 0 0 28px !important; color: white; font-size: clamp(1.6rem, 2.3vw, 2.2rem); line-height: 1.45; font-weight: 600; }
.text-link { display: inline-block; padding-bottom: 11px; border-bottom: 1px solid var(--accent); margin-top: 26px !important; }
.text-link a { color: white; text-decoration: none; font-weight: 600; }
.text-link a:hover { color: var(--accent); }

.insights-heading { display: grid; grid-template-columns: 1fr 360px; gap: 60px; align-items: end; margin-bottom: 70px !important; }
.insights-heading > p { color: var(--muted); line-height: 1.75; font-size: 1.07rem; margin-bottom: 8px; }
.insight-list { border-top: 1px solid #454545; }
.insight-row { display: grid; grid-template-columns: 10% 34% 1fr 40px; gap: 20px; align-items: center; padding: 29px 4px; border-bottom: 1px solid #454545; transition: padding .25s, background .25s; }
.insight-row:hover { padding-left: 18px; background: #1b1b1b; }
.insight-row > * { margin: 0 !important; }
.insight-index { color: var(--accent); font-size: .75rem; font-weight: 600; }
.insight-row h3 { color: white; font-size: clamp(1.5rem, 2.4vw, 2.7rem); letter-spacing: -.035em; }
.insight-row > p:not(.insight-index) { color: var(--muted); line-height: 1.6; font-size: .95rem; }
.insight-row::after { content: '↗'; justify-self: end; color: var(--accent); font-size: 1.5rem; }

.contact { display: flex; align-items: center; background: radial-gradient(circle at 86% 40%, #3b2527, transparent 31%), var(--panel); }
.contact-grid { display: grid; grid-template-columns: 1fr .45fr; align-items: center; }
.contact h2 { font-size: clamp(4.5rem, 9vw, 9.2rem); }
.contact-lead { max-width: 550px; margin: 36px 0 0 !important; color: #c9c9c9; font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.65; }
.contact-mark { justify-self: center; margin: 0 !important; color: #f3e9e0; font-family: Georgia, serif; font-size: clamp(12rem, 28vw, 29rem); line-height: 1; letter-spacing: -.16em; text-shadow: 20px 30px 35px rgba(0,0,0,.28); transform: rotate(-13deg); }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 110px; border-top: 1px solid #555; color: #aaa; font-size: .8rem; }
.site-footer > * { margin: 0; }
.site-footer a { color: #ddd; text-decoration: none; }
.footer-brand { font-size: 1.4rem; font-weight: 600; letter-spacing: -.05em; }
.simple-page { min-height: calc(100vh - 110px); padding: 160px 24px 90px; }
.simple-page h1 { color: white; }

@media (max-width: 991px) {
  .site-header { height: 78px; padding-inline: 32px; }
  .site-nav { margin-left: auto !important; margin-right: 0 !important; }
  .header-note { display: none; }
  .wp-block-navigation__responsive-container.is-menu-open { background: var(--panel) !important; color: white !important; padding: 95px 32px 30px !important; }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { color: white; font-size: 1.3rem; }
  .hero-grid { grid-template-columns: 1fr .8fr; }
  .hero-title { font-size: clamp(4rem, 8.5vw, 7rem); }
  .hero-art { min-height: 420px; }
  .section-grid { gap: 4vw; }
  .insights-heading { grid-template-columns: 1fr 280px; }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 76px; }
  .site-container, .site-footer { width: min(calc(100% - 40px), 1280px); }
  .section { min-height: auto; padding-block: 120px 100px; }
  .section h2 { font-size: clamp(3.4rem, 11vw, 6rem); }
  .eyebrow { margin-bottom: 30px !important; }
  .hero { min-height: 100svh; padding-top: 135px; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-copy { padding: 0; }
  .hero-title { font-size: clamp(3.6rem, 12.5vw, 6.4rem); }
  .hero-lead { max-width: 570px; margin: 25px 0 28px !important; font-size: 1.12rem; }
  .hero-art { align-self: flex-end; width: min(66vw, 360px); min-height: 0; height: min(66vw, 360px); margin-top: -25px; margin-right: 10px; }
  .art-disc { font-size: clamp(9rem, 36vw, 16rem); }
  .scroll-cue { bottom: 30px; left: 20px; }
  .section-grid, .insights-heading, .contact-grid { grid-template-columns: 1fr; gap: 45px; }
  .section-body { padding-top: 0; }
  .insights-heading { margin-bottom: 40px !important; }
  .insights-heading > p { max-width: 520px; }
  .insight-row { grid-template-columns: 45px 1fr 28px; padding: 24px 0; }
  .insight-row > p:not(.insight-index) { grid-column: 2 / 3; grid-row: 2; }
  .insight-row::after { grid-column: 3; grid-row: 1; }
  .contact-mark { justify-self: end; margin: -30px 8vw 12px 0 !important; font-size: 13rem; }
  .site-footer { flex-wrap: wrap; min-height: auto; padding: 26px 0; }
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 3.3rem; }
  .hero-art { margin-top: 10px; }
  .contact-mark { font-size: 11rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
