/*
Theme Name: HUBERT ONE
Theme URI: https://hubert-one.de/
Author: Pia Hubert
Description: Eigenes, schlankes Theme für HUBERT ONE mit den Produktseiten Kompass und EinCode – ohne externe Schriften, ohne Tracking, mit eigenem Kontaktformular und lokalem Assistenten.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.1
License: Alle Rechte vorbehalten
Text Domain: kompass
*/

:root {
  --navy: #0f1e33;
  --navy-2: #16294a;
  --ink: #1b2433;
  --muted: #5b6678;
  --line: #e3e7ee;
  --paper: #ffffff;
  --paper-2: #f5f7fb;
  --accent: #f2a33a;
  --accent-ink: #3a2400;
  --teal: #2bb5a8;
  --red: #d64545;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 30, 51, .10);
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 17px; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: #1d5fd1; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; overflow-wrap: break-word; hyphens: manual; }  /* Überschriften nicht automatisch trennen (Inhaber 17.11.2026) */
/* lange deutsche Wörter dürfen auf sehr schmalen Bildschirmen umbrechen statt überzustehen */
.wrap > *, .gitter > *, .modul > *, .kontakt > * { min-width: 0; }
.eyebrow, p, li, summary { overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 50; background: rgba(15, 15, 15, .94); backdrop-filter: saturate(1.4) blur(10px); color: #fff; }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.marke { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.marke svg { width: 34px; height: 34px; }
/* Dachmarke HUBERT ONE (Inhaber 24.11.2026): Gold #D9BF8B */
.marke-text { display: flex; flex-direction: column; line-height: 1.05; }
.marke-text small { font-size: .6rem; font-weight: 600; letter-spacing: .16em; color: #D9BF8B; margin-top: 3px; }
.h1-marke { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.h1-marke .h1-zeichen { width: 34px; height: 34px; flex: none; }
.h1-marke b { display: block; color: #D9BF8B; letter-spacing: .14em; font-weight: 600; }
.h1-marke small { display: block; font-size: .8rem; color: #a9b7cd; }
.marke-text { letter-spacing: .12em; }
.h1-buehne { background: #0f0f0f; color: #f2ede3; padding: 88px 0 96px; }
.h1-buehne .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.h1-buehne h1 { color: #D9BF8B; letter-spacing: .08em; font-weight: 600; margin: 0 0 6px; }
.h1-buehne .claim { font-size: 1.25rem; color: #e9e1d0; margin: 0 0 22px; letter-spacing: .04em; }
.h1-buehne .lead { color: #c9c1b0; }
.h1-buehne .zeichen svg { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto; }
.produkte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
@media (max-width: 1100px) { .produkte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.produkt { background: #fff; border: 1px solid #e3e8f0; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.produkt img { width: 100%; height: 230px; object-fit: cover; object-position: top; border-bottom: 1px solid #e3e8f0; }
.produkt .text { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.produkt .text h3 { margin: 0; }
.produkt .text .knopf { align-self: flex-start; margin-top: auto; }
.produkt .art { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9C7B3C; }
.werte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.unternav { background: #0b1626; border-top: 1px solid rgba(255, 255, 255, .06); position: sticky; top: 68px; z-index: 20; }
.unternav .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding-top: 10px; padding-bottom: 10px; }
.unternav b { color: #fff; margin-right: 8px; }
.unternav a { color: #c7d2e3; text-decoration: none; font-size: .93rem; }
.unternav a.knopf { margin-left: auto; color: #0f1e33; }
@media (max-width: 860px) {
	.h1-buehne .wrap, .produkte, .werte { grid-template-columns: 1fr; }
	.h1-buehne .zeichen { display: none; }
	.unternav a.knopf { margin-left: 0; }
	.marke-text { letter-spacing: .06em; font-size: 1.05rem; }
	.marke-text small { letter-spacing: .08em; }
	.unternav { position: static; }
}
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
.nav a { color: #dfe6f2; text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: .97rem; }
.nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav .knopf { margin-left: 6px; }
.menu-knopf { display: none; background: none; border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }
@media (max-width: 880px) {
  .menu-knopf { display: inline-block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); display: none; border-top: 1px solid rgba(255, 255, 255, .08); }
  .nav.offen { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 18px; }
  .nav .knopf { margin: 8px 0 0; text-align: center; }
}

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink) !important; font-weight: 650; text-decoration: none; border: 0; border-radius: 12px; padding: 12px 20px; font: inherit; font-weight: 650; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.knopf:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(242, 163, 58, .35); }
.knopf.hell { background: rgba(255, 255, 255, .1); color: #fff !important; border: 1px solid rgba(255, 255, 255, .25); }
.knopf.hell:hover { box-shadow: none; background: rgba(255, 255, 255, .16); }

/* Bühne */
.buehne { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, #24467a 0%, transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 88px 0 96px; }
.buehne .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.buehne p.lead { font-size: 1.2rem; color: #c9d4e6; max-width: 36em; }
.buehne .aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.marken-zeile { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: #a9b7cd; font-size: .93rem; padding: 0; list-style: none; }
.marken-zeile li::before { content: "✓"; color: var(--teal); margin-right: 8px; font-weight: 700; }
.eyebrow { display: inline-block; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.buehne .bild { position: relative; }
.fenster { background: #fff; border-radius: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); overflow: hidden; color: var(--ink); transform: perspective(1400px) rotateY(-8deg) rotateX(2deg); }
.fenster .leiste { height: 34px; background: #eef1f6; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.fenster .leiste i { width: 10px; height: 10px; border-radius: 50%; background: #cfd6e2; display: block; }
.fenster .inhalt { padding: 18px; display: grid; gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: var(--paper-2); border-radius: 10px; padding: 10px 12px; }
.kpi b { display: block; font-size: 1.15rem; }
.kpi span { font-size: .78rem; color: var(--muted); }
.kpi em { font-style: normal; font-size: .78rem; color: #1b8a5a; font-weight: 600; }
.balken { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding: 8px 4px 0; border-bottom: 1px solid var(--line); }
.balken span { flex: 1; background: linear-gradient(180deg, #4d8df0, #2a62c9); border-radius: 4px 4px 0 0; }
.balken span:nth-child(even) { background: linear-gradient(180deg, #ffc46e, var(--accent)); }
.zeilen div { display: flex; justify-content: space-between; font-size: .85rem; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.zeilen div b { color: #1b8a5a; }
@media (max-width: 920px) { .buehne .wrap { grid-template-columns: 1fr; } .fenster { transform: none; } }
@media (max-width: 420px) { .kpis { grid-template-columns: 1fr; } .zeilen div { flex-wrap: wrap; } }

/* Abschnitte */
section { padding: 88px 0; }
section.grau { background: var(--paper-2); }
.kopfzeile { max-width: 760px; margin: 0 0 42px; }
.kopfzeile p { color: var(--muted); font-size: 1.1rem; }
.mitte { text-align: center; margin-left: auto; margin-right: auto; }

.gitter { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g3, .g2, .g4 { grid-template-columns: 1fr; } section { padding: 64px 0; } }

.karte { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 0 rgba(15, 30, 51, .03); transition: box-shadow .2s ease, transform .2s ease; }
.karte:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.karte p { color: var(--muted); margin: 0; }
.symbol { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #eaf1ff; color: #2a62c9; margin-bottom: 16px; }
.symbol svg { width: 24px; height: 24px; }
.symbol.o { background: #fff3e2; color: #b86b00; }
.symbol.t { background: #e3f6f3; color: #138479; }
.liste { list-style: none; padding: 0; margin: 14px 0 0; }
.liste li { padding-left: 26px; position: relative; margin: 6px 0; color: var(--muted); }
.liste li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }

/* Module (Reiter) */
.reiter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.reiter button { font: inherit; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.reiter button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.modul { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.modul[hidden] { display: none; }
.modul .flaeche { background: linear-gradient(135deg, #eaf1ff, #fff3e2); border-radius: 20px; padding: 28px; min-height: 260px; display: grid; gap: 10px; align-content: center; }
.modul .flaeche div { background: #fff; border-radius: 12px; padding: 12px 16px; box-shadow: 0 4px 14px rgba(15, 30, 51, .06); font-size: .95rem; display: flex; justify-content: space-between; gap: 10px; }
.modul .flaeche div span { color: var(--muted); }
@media (max-width: 860px) { .modul { grid-template-columns: 1fr; } }

/* Bildschirmfotos (erfundene Testdaten) */
.foto, .foto-buehne { display: block; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
.foto img, .foto-buehne img { width: 100%; height: auto; display: block; }
.foto:hover { box-shadow: 0 14px 34px rgba(15, 30, 51, .18); }
.foto-buehne { border: 0; border-radius: 0; box-shadow: none; }
.inhalt-bild { line-height: 0; }

/* Ablauf */
.schritte { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.schritt { position: relative; padding-top: 54px; }
.schritt::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.schritt p { color: var(--muted); }
@media (max-width: 900px) { .schritte { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .schritte { grid-template-columns: 1fr; } }

/* Zitat / Zahlen */
.band { background: var(--navy); color: #fff; }
.band .zahl b { display: block; font-size: 2.4rem; color: var(--accent); line-height: 1.1; }
.band .zahl span { color: #c9d4e6; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Kontakt */
.kontakt { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .kontakt { grid-template-columns: 1fr; } }
.formular { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.feld { display: grid; gap: 6px; margin-bottom: 16px; }
.feld label { font-weight: 600; font-size: .95rem; }
.feld input, .feld textarea, .feld select { font: inherit; padding: 12px 14px; border: 1px solid #cfd6e2; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.feld textarea { min-height: 140px; resize: vertical; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .zwei { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--muted); margin-bottom: 18px; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.falle { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.meldung { border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.meldung.ok { background: #e3f6ec; color: #135c3a; }
.meldung.fehler { background: #fdeaea; color: #8a1f1f; }
.adresse { font-style: normal; color: var(--muted); }
.person { display: flex; gap: 14px; align-items: center; margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid #fff; box-shadow: 0 6px 18px rgba(15, 30, 51, .15); }
.person strong { display: block; font-size: 1.1rem; }
.person span { display: block; color: var(--muted); font-size: .93rem; }
.person p { margin: 8px 0 4px; font-style: italic; color: var(--ink); }
.person .adresse { font-size: .9rem; }
@media (max-width: 420px) { .person { flex-direction: column; text-align: center; } }

/* Fuß */
.fuss { background: #0b1626; color: #a9b7cd; padding: 48px 0 30px; font-size: .95rem; }
.fuss a { color: #dfe6f2; text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.fuss .unten { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 20px; margin-top: 10px; font-size: .88rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin: 6px 0; }
@media (max-width: 760px) { .fuss .wrap { grid-template-columns: 1fr; } }

/* Inhaltsseiten (Impressum, Datenschutz) */
.seite { padding: 64px 0 88px; }
.seite .wrap { max-width: 820px; }
.seite h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* FAQ-Assistent */
.assistent-knopf { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 28px rgba(15, 30, 51, .3); cursor: pointer; display: grid; place-items: center; }
.assistent-knopf svg { width: 28px; height: 28px; }
.assistent { position: fixed; right: 20px; bottom: 92px; z-index: 61; width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100vh - 130px)); background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(15, 30, 51, .3); display: flex; flex-direction: column; overflow: hidden; }
.assistent[hidden] { display: none; }
.assistent header { background: var(--navy); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.assistent header small { display: block; color: #a9b7cd; font-size: .78rem; }
.assistent header button { background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.verlauf { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--paper-2); }
.blase { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: .95rem; line-height: 1.45; }
.blase.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.blase.ich { background: var(--navy); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.vorschlaege { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; background: #fff; }
.vorschlaege button { font: inherit; font-size: .84rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.eingabe { display: flex; gap: 8px; padding: 10px 12px 12px; background: #fff; }
.eingabe input { flex: 1; font: inherit; padding: 10px 12px; border: 1px solid #cfd6e2; border-radius: 10px; }
.eingabe button { border: 0; background: var(--navy); color: #fff; border-radius: 10px; padding: 0 14px; cursor: pointer; font: inherit; }
.assistent .hinweis { font-size: .74rem; color: var(--muted); padding: 0 12px 10px; background: #fff; margin: 0; }

/* Ein System statt vieler Insellösungen */
.vergleich ul { list-style: none; padding: 0; margin: 12px 0 0; }
.vergleich li { position: relative; padding: 6px 0 6px 28px; color: var(--muted); }
.liste-minus li::before { content: "–"; position: absolute; left: 6px; color: #b42318; font-weight: 700; }
.liste-plus li::before { content: "✓"; position: absolute; left: 4px; color: #1d7a3a; font-weight: 700; }
.karte.hervor { border-color: var(--accent, #e8590c); box-shadow: var(--shadow); }
.buehne .unterzeile { font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 600; color: var(--accent); margin: -6px 0 14px; }
