/* Clubhouse Holding GmbH – Stylesheet */

@font-face {
  font-family: "Lora";
  src: url("fonts/lora-variable.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --pine: #14302b;
  --pine-deep: #0e221f;
  --fairway: #2f6b4a;
  --brass: #b8903f;
  --brass-soft: #d9c38f;
  --paper: #f5f6f3;
  --paper-deep: #eceee8;
  --ink: #27322e;
  --ink-soft: #5b6662;
  --line: #d4d8d1;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --measure: 62ch;
  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-variation-settings: "wght" 400;
}

a { color: var(--pine); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: var(--pine); font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
small, .meta { font-family: var(--sans); font-size: .875rem; color: var(--ink-soft); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Header ---------------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 66px; width: auto; }
.nav { font-family: var(--sans); font-size: .9375rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav a { text-decoration: none; color: var(--ink); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brass); }

/* Hero ------------------------------------------------------------------ */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.hero .lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink); }
.hero .lede + .lede { color: var(--ink-soft); font-size: 1.0625rem; }

.facts { border-top: 2px solid var(--pine); padding-top: 18px; font-family: var(--sans); font-size: .9375rem; }
.facts h2 { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 14px; font-weight: 600; }
.facts dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; color: var(--ink); }
.facts .note { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .85rem; line-height: 1.5; }

/* Sections -------------------------------------------------------------- */
.section { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(32px, 6vw, 96px); margin-bottom: clamp(24px, 4vw, 48px); }
.section-head h2 { margin: 0; }
.section-head .intro { font-size: 1.125rem; margin: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }

.section.dark { background: var(--pine); color: #e9eee9; border-top: 0; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark a { color: #fff; text-decoration-color: var(--brass-soft); }
.section.dark .meta, .section.dark small { color: #b9c6bf; }
.section.dark .lede { color: #e9eee9; }

/* Structure diagram ----------------------------------------------------- */
.structure { margin: 0; }
.structure svg { width: 100%; height: auto; font-family: var(--serif); }
.structure .node { fill: #fff; stroke: var(--pine); stroke-width: 1.2; }
.structure .node.root { fill: var(--pine); }
.structure .node.soft { fill: var(--paper-deep); stroke: var(--line); }
.structure text { fill: var(--pine); font-size: 15px; }
.structure text.t-root { fill: #fff; font-size: 17px; font-weight: 600; }
.structure text.t-sub { fill: var(--ink-soft); font-size: 12.5px; font-family: var(--sans); }
.structure text.t-strong { font-weight: 600; }
.structure .edge { stroke: var(--pine); stroke-width: 1.2; fill: none; }
.structure .edge.brass { stroke: var(--brass); }
.structure .tag { fill: var(--brass); font-family: var(--sans); font-size: 11.5px; letter-spacing: .02em; }
.structure-list { display: none; }

/* Ledger of brands ------------------------------------------------------ */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ledger li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ledger .logo { display: flex; align-items: center; justify-content: flex-start; min-height: 44px; }
.ledger .logo img { max-height: 56px; width: auto; max-width: 170px; }
.ledger .logo .wordmark { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--pine); letter-spacing: .01em; line-height: 1; }
.ledger .logo .wordmark small { display: block; font-family: var(--sans); font-weight: 400; font-size: .72rem; letter-spacing: .12em; color: var(--brass); margin-top: 4px; }
.ledger h3 { margin: 0 0 4px; font-size: 1.1rem; }
.ledger p { margin: 0; font-size: 1rem; }
.ledger .meta { display: block; margin-top: 6px; }

/* Rights ledger ----------------------------------------------------------- */
.rights { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rights li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 32px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rights strong { display: block; color: var(--pine); font-weight: 600; }
.rights .meta { display: block; }
@media (max-width: 860px) { .rights li { grid-template-columns: 1fr; } }

/* Apps ------------------------------------------------------------------- */
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.app { border-top: 2px solid var(--pine); padding-top: 18px; }
.app h3 { font-size: 1.35rem; margin-bottom: 2px; }
.app .meta { margin-bottom: 12px; display: block; }
.app ul { padding-left: 1.1em; margin: 0 0 1em; }
.app li { margin-bottom: 4px; }

/* Form ------------------------------------------------------------------- */
.form { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); padding: clamp(18px, 3vw, 28px); font-family: var(--sans); }
.form .field { margin-bottom: 14px; }
.form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form label { display: block; font-size: .875rem; color: #d9e2dc; margin-bottom: 5px; }
.form label span { color: #9fb0a7; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: #fff; background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.28); border-radius: 3px; padding: 10px 12px; }
.form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #d9e2dc 50%), linear-gradient(135deg, #d9e2dc 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.form select option { color: var(--ink); background: #fff; }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
.form .check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.form .check input { margin: 4px 0 0; width: 18px; height: 18px; accent-color: var(--brass); }
.form .check label { margin: 0; line-height: 1.5; }
.form .check a { color: #fff; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .button { font: inherit; font-size: 1rem; font-weight: 600; color: var(--pine); background: var(--brass-soft); border: 0; border-radius: 3px; padding: 12px 22px; cursor: pointer; margin-top: 6px; }
.form .button:hover { background: #fff; }
.form .form-note { margin: 0 0 12px; font-size: .9375rem; min-height: 0; }
.form .form-note.is-error { color: #ffd7d7; border-left: 3px solid #e07b7b; padding-left: 10px; }
.form .meta { margin-top: 12px; }
.section.dark h3 { font-size: 1.1rem; margin-top: 1.2em; }
.section.dark h3:first-child { margin-top: 0; }
@media (max-width: 600px) { .form .field-row { grid-template-columns: 1fr; } }

#investment .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* Contact ---------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.address { font-style: normal; line-height: 1.6; }
.address strong { font-weight: 600; color: var(--pine); }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--pine-deep); color: #b9c6bf; font-family: var(--sans); font-size: .875rem; padding: 36px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--brass-soft); }
.site-footer ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }

/* Legal pages ------------------------------------------------------------ */
.legal { padding: clamp(40px, 6vw, 72px) 0; }
.legal .wrap { max-width: 780px; }
.legal h1 { margin-bottom: .75em; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5em; }
.legal p, .legal li { max-width: none; }
.legal ul { padding-left: 1.2em; }
.legal .card { background: #fff; border: 1px solid var(--line); padding: 22px 26px; margin: 1.5em 0; }
.legal .card p { margin: 0 0 .5em; }
.legal address { font-style: normal; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero .wrap, .section-head, .two-col, .apps, .contact-grid { grid-template-columns: 1fr; }
  .section-head { gap: 12px; }
  .structure svg { display: none; }
  .structure-list { display: block; }
  .ledger li { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 480px) {
  .brand img { height: 56px; }
  .facts dl { grid-template-columns: 1fr; gap: 2px; }
  .facts dt { margin-top: 10px; }
}

/* Structure list (mobile fallback) */
.structure-list ul { list-style: none; padding: 0; margin: 0; }
.structure-list > ul > li { border-left: 2px solid var(--pine); padding: 4px 0 4px 16px; margin-bottom: 14px; }
.structure-list ul ul { margin: 6px 0 0 0; }
.structure-list ul ul li { border-left: 1px solid var(--line); padding: 2px 0 2px 14px; margin: 6px 0; }
.structure-list strong { color: var(--pine); }
.structure-list .meta { display: block; }
