/* ==========================================================================
   HINTERHOELLER theme stylesheet
   Companion to theme.json — everything theme.json/core blocks cannot express:
   self-hosted @font-face, custom grids, hover states, the dark quote band,
   the form, the network diagram wrapper, and responsive behaviour.
   ========================================================================== */

/* ---- Self-hosted fonts (GDPR: no Google Fonts CDN request) ---- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/archivo-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/archivo-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/archivo-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/archivo-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/newsreader-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/newsreader-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/newsreader-400italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/newsreader-500italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/barlowcondensed-800.woff2') format('woff2');
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 32px; }
body { background: #FAF7F2; }
.hh-wrap a,
.hh-header a,
.hh-footer a,
.hh-band a,
.hh-kontakt-details a { color: inherit; text-decoration: none; }
.hh-wrap a:hover,
.hh-header a:hover,
.hh-footer a:hover,
.hh-band a:hover,
.hh-kontakt-details a:hover { color: #8a8074; }

.hh-wrap { max-width: 1080px; margin: 0 auto; padding-left: 56px; padding-right: 56px; box-sizing: border-box; }
.hh-section { padding-bottom: 120px; }
.hh-kicker { font-family: 'Archivo', sans-serif; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #8a8074; margin-bottom: 28px; }

/* ---- Topbar ---- */
.hh-topbar {
  background: #181614; color: #FAF7F2; text-align: center;
  padding: 12px 24px; box-sizing: border-box;
  font-family: 'Archivo', sans-serif; font-size: 13px; letter-spacing: 0.02em;
}
.hh-topbar a { color: #FAF7F2; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(250,247,242,0.5); }
.hh-topbar a:hover { color: #FAF7F2; text-decoration-color: #FAF7F2; }
.hh-topbar__sep { margin: 0 16px; color: rgba(250,247,242,0.4); }

/* ---- Header ---- */
.hh-header { display: flex; align-items: center; justify-content: space-between; padding: 32px 56px; box-sizing: border-box; }
.hh-header__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hh-header__brand svg { flex: none; width: 22px; height: 20px; }
.hh-wordmark { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 20px; color: #181614; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1; }
.hh-nav { display: flex; gap: 40px; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; }
.hh-nav a { border-bottom: 1px solid transparent; padding-bottom: 2px; }
.hh-nav a:hover { color: #181614; border-bottom-color: #181614; }
.hh-nav-toggle { display: none; }

/* ---- Hero ---- */
.hh-hero { padding-top: 100px; padding-bottom: 120px; }
.hh-hero h1 { font-family: 'Newsreader', serif; font-weight: 500; font-size: 56px; line-height: 1.18; margin: 0 0 40px; max-width: 820px; letter-spacing: -0.01em; }
.hh-hero__lede { font-family: 'Archivo', sans-serif; font-size: 16px; letter-spacing: 0.02em; color: #4a453f; text-transform: uppercase; font-weight: 500; }

/* ---- Team ---- */
.hh-team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.hh-portrait { display: block; }
.hh-portrait__frame { aspect-ratio: 4/5; margin-bottom: 24px; overflow: hidden; }
.hh-portrait__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hh-portrait__name { font-family: 'Newsreader', serif; font-size: 26px; font-weight: 500; margin-bottom: 6px; }
.hh-portrait__role { font-family: 'Archivo', sans-serif; font-size: 14px; color: #6a6459; line-height: 1.6; margin-bottom: 14px; }
.hh-portrait__bio { font-family: 'Newsreader', serif; font-style: italic; font-size: 15px; color: #4a453f; line-height: 1.6; }

.hh-wir-quote { margin: 80px 0 0; max-width: 760px; padding-left: 32px; border-left: 1px solid #DAD3C6; }
.hh-wir-quote p { font-family: 'Newsreader', serif; font-size: 19px; line-height: 1.7; color: #4a453f; margin: 0 0 16px; }
.hh-wir-quote p:last-child { margin-bottom: 0; }

.hh-split { margin-top: 96px; padding-top: 40px; border-top: 1px solid #DAD3C6; display: grid; grid-template-columns: minmax(0,0.8fr) minmax(0,1.2fr); gap: 64px; align-items: start; }
.hh-split h3 { font-family: 'Newsreader', serif; font-size: 28px; font-weight: 500; line-height: 1.35; margin: 0; }
.hh-split .hh-prose { font-family: 'Archivo', sans-serif; font-size: 15px; color: #4a453f; line-height: 1.75; }
.hh-prose p { margin: 0 0 16px; }
.hh-prose p:last-child { margin-bottom: 0; }

.hh-network { margin-top: 96px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hh-network__diagram { position: relative; }
.hh-network__diagram svg { width: 100%; height: auto; display: block; }
.hh-network__signet { position: absolute; left: 50%; top: 50%; width: 30px; height: 27px; transform: translate(-50%,-50%); }
.hh-network__signet svg { width: 100%; height: 100%; }
.hh-network__text h3 { font-family: 'Newsreader', serif; font-size: 28px; font-weight: 500; margin: 0 0 16px; }
.hh-network__text p { font-family: 'Archivo', sans-serif; font-size: 15px; color: #4a453f; line-height: 1.7; margin: 0; }

/* ---- Werte (values) ---- */
.hh-values h2 { font-family: 'Newsreader', serif; font-size: 32px; font-weight: 500; margin: 0 0 32px; }
.hh-values-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #DAD3C6; }
.hh-values-grid .hh-value { padding: 28px 24px; border-bottom: 1px solid #DAD3C6; }
.hh-values-grid .hh-value:not(:first-child) { border-left: 1px solid #DAD3C6; }
.hh-values-grid .hh-value:first-child { padding-left: 0; }
.hh-values-grid .hh-value:last-child { padding-right: 0; }
.hh-value__title { font-family: 'Newsreader', serif; font-size: 20px; font-style: italic; margin-bottom: 12px; }
.hh-value__desc { font-family: 'Archivo', sans-serif; font-size: 14px; color: #6a6459; line-height: 1.6; }

/* ---- MARKETUN ---- */
.hh-marketun__kicker { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; color: #8a8074; margin-bottom: 16px; }
.hh-marketun__lead { font-family: 'Newsreader', serif; font-size: 32px; font-weight: 500; line-height: 1.3; margin: 0 0 24px; max-width: 820px; }
.hh-marketun__sub { font-family: 'Newsreader', serif; font-style: italic; font-size: 19px; color: #4a453f; margin: 0 0 32px; }
.hh-marketun .hh-prose { font-size: 16px; line-height: 1.7; max-width: 760px; margin-bottom: 24px; }
.hh-marketun .hh-prose:last-of-type { margin-bottom: 48px; }

.hh-label { font-family: 'Archivo', sans-serif; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8074; margin-bottom: 24px; }
.hh-schluessel { display: grid; grid-template-columns: minmax(0,0.8fr) minmax(0,1.2fr); gap: 32px 48px; margin-bottom: 48px; max-width: 920px; border-top: 1px solid #DAD3C6; padding-top: 28px; }
.hh-schluessel dt { font-family: 'Newsreader', serif; font-size: 21px; font-weight: 500; line-height: 1.35; }
.hh-schluessel dd { font-family: 'Archivo', sans-serif; font-size: 15px; color: #4a453f; line-height: 1.7; margin: 0; }

.hh-gruende { margin-top: 64px; padding-top: 40px; border-top: 1px solid #DAD3C6; }
.hh-gruende h3 { font-family: 'Newsreader', serif; font-size: 28px; font-weight: 500; margin: 0 0 28px; }
.hh-gruende ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 48px; max-width: 920px; }
.hh-gruende li { font-family: 'Archivo', sans-serif; font-size: 15px; color: #4a453f; line-height: 1.65; padding-left: 22px; position: relative; }
.hh-gruende li::before { content: '\2014'; position: absolute; left: 0; }

/* ---- Referenzen ---- */
.hh-referenzen-head h3 { font-family: 'Newsreader', serif; font-size: 28px; font-weight: 500; margin: 0 0 16px; }
.hh-referenzen-head p { font-family: 'Archivo', sans-serif; font-size: 13px; color: #8a8074; margin: 0 0 32px; }
.hh-referenzen-list { border-top: 1px solid #181614; }
.hh-referenzen-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid #DAD3C6; }
.hh-referenzen-row .hh-ref-name { font-family: 'Newsreader', serif; font-size: 21px; font-weight: 500; line-height: 1.35; }
.hh-referenzen-row .hh-ref-desc { font-family: 'Archivo', sans-serif; font-size: 14px; color: #6a6459; line-height: 1.6; }

/* ---- Quote band ---- */
.hh-band { background: #181614; color: #FAF7F2; padding: 140px 56px; box-sizing: border-box; }
.hh-band__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.hh-band__main { font-family: 'Newsreader', serif; font-style: italic; font-size: 32px; line-height: 1.5; font-weight: 400; }
.hh-band__sub { margin-top: 56px; padding-top: 48px; border-top: 1px solid rgba(250,247,242,0.22); }
.hh-band__sub-title { font-family: 'Newsreader', serif; font-style: italic; font-weight: 400; font-size: 26px; line-height: 1.45; margin-bottom: 18px; }
.hh-band__sub-text { font-family: 'Archivo', sans-serif; font-size: 15px; color: rgba(250,247,242,0.72); line-height: 1.7; }

/* ---- Kontakt ---- */
.hh-kontakt-grid { display: grid; grid-template-columns: minmax(0,0.85fr) minmax(0,1.15fr); gap: 80px; align-items: start; }
.hh-kontakt-left h2 { font-family: 'Newsreader', serif; font-size: 32px; font-weight: 500; line-height: 1.35; margin: 0 0 28px; }
.hh-kontakt-left .hh-prose { font-size: 15px; margin-bottom: 24px; }
.hh-kontakt-left .hh-prose:last-of-type { margin-bottom: 40px; }
.hh-kontakt-details { display: flex; flex-direction: column; gap: 24px; border-top: 1px solid #DAD3C6; padding-top: 28px; }
.hh-kontakt-details dt { font-family: 'Archivo', sans-serif; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8074; margin-bottom: 8px; }
.hh-kontakt-details dd { margin: 0; font-family: 'Newsreader', serif; font-size: 19px; }
.hh-kontakt-details dd.hh-address { font-family: 'Archivo', sans-serif; font-size: 15px; color: #4a453f; line-height: 1.7; }

.hh-form { display: flex; flex-direction: column; gap: 28px; }
.hh-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.hh-field { display: flex; flex-direction: column; gap: 8px; }
.hh-field label { font-family: 'Archivo', sans-serif; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8074; }
.hh-field input[type="text"],
.hh-field input[type="email"],
.hh-field select,
.hh-field textarea {
  border: none; border-bottom: 1px solid #DAD3C6; background: transparent; padding: 10px 0;
  font-size: 15px; font-family: 'Archivo', sans-serif; color: #181614; outline: none; border-radius: 0;
  width: 100%; box-sizing: border-box;
}
.hh-field textarea { resize: vertical; }
.hh-field input:focus, .hh-field select:focus, .hh-field textarea:focus { border-bottom-color: #181614; }
.hh-field-select { position: relative; }
.hh-field-select select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 20px; }
.hh-field-select::after {
  content: ''; position: absolute; right: 2px; bottom: 16px; width: 8px; height: 8px;
  border-right: 1px solid #8a8074; border-bottom: 1px solid #8a8074; transform: rotate(45deg);
  pointer-events: none;
}
.hh-field-captcha label { text-transform: none; letter-spacing: 0; font-size: 13px; color: #4a453f; }
.hh-field-captcha input[type="text"] { max-width: 120px; }

.hh-consent { display: flex; align-items: flex-start; gap: 12px; }
.hh-consent input[type="checkbox"] { margin-top: 3px; accent-color: #181614; width: 15px; height: 15px; flex: none; }
.hh-consent label { font-family: 'Archivo', sans-serif; font-size: 13px; color: #8a8074; line-height: 1.6; }
.hh-consent label a { color: #4a453f; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #DAD3C6; }
.hh-consent label a:hover { color: #181614; text-decoration-color: #181614; }
.hh-form .hh-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hh-submit {
  align-self: flex-start; padding: 16px 40px; background: #181614; color: #FAF7F2;
  font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
  border: none; cursor: pointer; font-family: 'Archivo', sans-serif;
}
.hh-submit:hover { background: #4a453f; }
.hh-form-notice { font-family: 'Archivo', sans-serif; font-size: 14px; padding: 16px 20px; border: 1px solid #DAD3C6; }
.hh-form-notice--success { color: #181614; }
.hh-form-notice--error { color: #B5654A; border-color: #B5654A; }

/* ---- Footer ---- */
.hh-footer { border-top: 1px solid #DAD3C6; padding: 48px 56px; box-sizing: border-box; }
.hh-footer__inner { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; }
.hh-footer__brand { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.hh-footer__brand svg { width: 17px; height: 15px; flex: none; }
.hh-footer__brand .hh-wordmark { font-size: 15px; }
.hh-footer__address { font-family: 'Archivo', sans-serif; font-size: 13px; color: #8a8074; line-height: 1.7; }
.hh-footer__coop { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.hh-footer__coop-label { font-family: 'Archivo', sans-serif; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #8a8074; }
.hh-footer__coop img { width: 132px; height: auto; display: block; }
.hh-footer-nav { display: flex; gap: 32px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: #4a453f; flex-wrap: wrap; }

/* ---- Legal pages (Impressum / Datenschutz) ---- */
.hh-legal { padding: 40px 56px 120px; box-sizing: border-box; max-width: 820px; margin: 0 auto; }
.hh-legal--narrow { max-width: 760px; }
.hh-legal h1 { font-family: 'Newsreader', serif; font-size: 40px; font-weight: 500; margin: 0 0 48px; }
.hh-legal--narrow h1 { margin-bottom: 40px; }
.hh-legal h2.hh-legal__company { font-family: 'Newsreader', serif; font-size: 22px; font-weight: 500; margin: 0 0 28px; }
.hh-legal-table { display: grid; grid-template-columns: 300px 1fr; gap: 0 40px; border-top: 1px solid #DAD3C6; }
.hh-legal-table dt { padding: 28px 0; border-bottom: 1px solid #DAD3C6; font-family: 'Archivo', sans-serif; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: #8a8074; }
.hh-legal-table dd { padding: 28px 0; border-bottom: 1px solid #DAD3C6; font-family: 'Archivo', sans-serif; font-size: 15px; color: #181614; line-height: 1.6; margin: 0; }
.hh-legal-table dt:last-of-type, .hh-legal-table dd:last-of-type { border-bottom: none; }
.hh-legal-table a { text-decoration: none; border-bottom: 1px solid #181614; }
.hh-legal-table a:hover { color: #B5654A; border-bottom-color: #B5654A; }

.hh-legal-prose { font-family: 'Archivo', sans-serif; font-size: 15px; color: #4a453f; line-height: 1.75; }
.hh-legal-prose h2 { font-family: 'Newsreader', serif; font-size: 22px; font-weight: 500; margin: 0 0 16px; color: #181614; }
.hh-legal-prose p { margin: 0 0 16px; }
.hh-legal-prose p.hh-mb-lg { margin-bottom: 48px; }
.hh-legal-prose ul { margin: 0 0 20px; padding-left: 20px; }
.hh-legal-prose ul.hh-mb-lg { margin-bottom: 48px; }
.hh-legal-prose li { margin-bottom: 6px; }
.hh-legal-prose a { color: #181614; border-bottom: 1px solid #181614; text-decoration: none; }
.hh-legal-prose a:hover { color: #B5654A; border-bottom-color: #B5654A; }

/* ==========================================================================
   Responsive — the source design is fixed desktop (1080px column).
   Breakpoints derived per the handoff README: collapse grids to one column,
   stack nav, scale down the hero heading, tighten side padding.
   ========================================================================== */
@media (max-width: 900px) {
  .hh-wrap, .hh-header, .hh-band, .hh-legal { padding-left: 32px; padding-right: 32px; }
  .hh-footer { padding-left: 32px; padding-right: 32px; }

  .hh-team-grid { grid-template-columns: 1fr; gap: 56px; }
  .hh-split { grid-template-columns: 1fr; gap: 24px; }
  .hh-network { grid-template-columns: 1fr; gap: 40px; }
  .hh-network__text { order: -1; }

  .hh-values-grid { grid-template-columns: repeat(2, 1fr); }
  .hh-values-grid .hh-value:nth-child(2n+1) { border-left: none; padding-left: 0; }
  .hh-values-grid .hh-value:nth-child(2n) { padding-right: 0; }
  .hh-values-grid .hh-value:nth-child(-n+2) { border-left: 0; }
  .hh-values-grid .hh-value:nth-child(1) { border-left: none; }

  .hh-schluessel { grid-template-columns: 1fr; gap: 12px 0; }
  .hh-schluessel dd { margin-bottom: 8px; }

  .hh-gruende ul { grid-template-columns: 1fr; }

  .hh-referenzen-row { grid-template-columns: 1fr; gap: 6px; }

  .hh-kontakt-grid { grid-template-columns: 1fr; gap: 56px; }
  .hh-form-row { grid-template-columns: 1fr; }

  .hh-legal-table { grid-template-columns: 1fr; }
  .hh-legal-table dt { padding-bottom: 8px; border-bottom: none; }
  .hh-legal-table dd { padding-top: 0; }
}

@media (max-width: 640px) {
  .hh-wrap, .hh-header, .hh-band, .hh-legal, .hh-footer { padding-left: 24px; padding-right: 24px; }

  .hh-header { flex-wrap: wrap; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
  .hh-nav { width: 100%; flex-direction: column; gap: 16px; }

  .hh-topbar { padding: 10px 16px; font-size: 12px; }
  .hh-topbar__sep { margin: 0 10px; }

  .hh-hero { padding-top: 56px; padding-bottom: 72px; }
  .hh-hero h1 { font-size: 36px; line-height: 1.22; margin-bottom: 28px; }

  .hh-section { padding-bottom: 72px; }

  .hh-values-grid { grid-template-columns: 1fr; }
  .hh-values-grid .hh-value { border-left: none !important; padding-left: 0 !important; padding-right: 0 !important; }

  .hh-marketun__lead { font-size: 26px; }
  .hh-band { padding: 80px 24px; }
  .hh-band__main { font-size: 24px; }
  .hh-band__sub-title { font-size: 21px; }

  .hh-footer__inner { gap: 40px; }
}
