/* Outfit (SIL Open Font License), selbst gehostet */
@font-face { font-family: "Outfit"; font-weight: 500; font-style: normal; font-display: swap; src: url(/assets/fonts/outfit-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Outfit"; font-weight: 500; font-style: normal; font-display: swap; src: url(/assets/fonts/outfit-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Outfit"; font-weight: 700; font-style: normal; font-display: swap; src: url(/assets/fonts/outfit-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Outfit"; font-weight: 700; font-style: normal; font-display: swap; src: url(/assets/fonts/outfit-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* CommunityOffice – Gestaltung nach der bisherigen Squarespace-Seite (Vorlage «Piccolo») */
:root {
  --blue: #1f29db;          /* rgb(30,40,220) */
  --blue-a: rgba(30, 40, 220, 0.7);
  --turquoise-a: rgba(40, 225, 200, 0.3);
  --gradient: linear-gradient(71.71deg, var(--blue-a) 1.47%, var(--turquoise-a) 99.81%);
  --text: #222;
  --grey: #ededed;
  --header-h: 84px;
  /* Schrift: Outfit 500 (Entscheid Roger), selbst gehostet, ohne verbundene «ff»; fett nur für Auszeichnungen */
  --sans: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: var(--sans);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font: 500 18px/1.55 var(--sans); font-variant-ligatures: no-common-ligatures; font-feature-settings: "liga" 0, "clig" 0; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: #1a23b5; }
p { margin: 0 0 1em; }
sub { font-size: .7em; }
code { font-size: 12px; }
strong, b { font-weight: 700; }

/* Kopf */
.header { position: sticky; top: 0; z-index: 50; background: var(--blue); color: #fff; display: flex; align-items: center; gap: 24px; min-height: var(--header-h); padding: 0 44px; }
.brand img { width: 170px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.nav a, .folder-title { color: #fff; text-decoration: none; cursor: pointer; }
.nav a:hover, .folder:hover .folder-title { opacity: .7; }
.folder { position: relative; }
.folder-items { position: absolute; left: 0; top: 100%; display: none; flex-direction: column; gap: 0; background: none; padding: 0; min-width: 160px; }
.folder-items a { color: #fff; }
.folder:hover .folder-items, .folder:focus-within .folder-items { display: flex; }
.languages { display: flex; background: #000; padding: 2px; font-size: 15px; }
.languages a { color: #fff; text-decoration: none; padding: 2px 5px; }
.languages a.active { font-weight: 700; }
.menu-toggle, .menu-button { display: none; }

/* Abschnitte */
.sec { position: relative; }
.sec-inner { max-width: 1400px; margin: 0 auto; padding: 62px 44px; }
.banner { background-size: cover; background-position: center; color: #fff; display: flex; align-items: center; justify-content: center; min-height: 38vh; text-align: center; isolation: isolate; }
.banner::before { content: ""; position: absolute; inset: 0; background: var(--gradient); z-index: -1; }
.banner:first-of-type { min-height: 78vh; }
.banner .sec-inner { width: 100%; padding-top: 40px; padding-bottom: 40px; }
.banner a { color: #fff; }
.banner .text p { margin: 0; font-weight: 700; font-size: 1.1em; }
main > .sec:nth-of-type(even):not(.banner) { background: #fff; }

/* Raster */
.row { display: flex; flex-wrap: wrap; gap: 0 40px; }
.row > .col { flex: 1 1 0; min-width: 0; }
.col.span-12 { flex-basis: 100%; }
.col.span-6 { flex: 1 1 calc(50% - 20px); }
.col.span-4 { flex: 1 1 calc(33.3% - 27px); }
.col.span-3 { flex: 1 1 calc(25% - 30px); }
.col.span-8 { flex: 2 1 calc(66.6% - 13px); }
.col.span-9 { flex: 3 1 calc(75% - 10px); }
@media (max-width: 767px) {
  .row { display: block; }
}

/* Text */
.text h1 { font: 500 1.35em/1.7 var(--sans); margin: 0 0 1em; }
.text h2 { font: 500 1.35em/1.4 var(--serif); color: var(--blue); margin: 0 0 .6em; }
.text h3 { font: 700 1.1em/1.5 var(--sans); margin: 0 0 .5em; }
.text ul, .text ol { padding-left: 1.2em; }
.text table { border-collapse: collapse; width: 100%; }
.ta-center { text-align: center; }
.ta-right { text-align: right; }
.spacer { height: 1.5em; }
.anchor { display: block; height: 0; }
.button-row { margin: 1.5em 0 0; }
.button { display: inline-block; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: #000; border: 1px solid #000; padding: .6em 1.4em; }
.button:hover { background: #000; color: #fff; }
.diagram svg { max-width: 100%; height: auto; }

/* Karten (Team, Spaces) */
.card { margin: 0 0 40px; }
.card img { width: 100%; max-width: 400px; }
.card figcaption { font-size: 16px; padding-top: 10px; }
.card figcaption p { margin: 0 0 .25em; }
.tiles { display: grid; gap: 20px; margin-bottom: 30px; }
.tile img { width: 100%; }
.tile .meta { padding-top: 8px; font-size: 16px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 1em 0; }

/* Videos (Click-to-load, kein Tracking) */
.videos { display: grid; gap: 20px; margin: 1em 0; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video button { all: unset; display: block; width: 100%; height: 100%; cursor: pointer; position: relative; }
.video button img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; background: rgba(0, 0, 0, .75); border-radius: 12px; }
.video button::before { content: ""; position: absolute; left: 50%; top: 50%; margin: -11px 0 0 -7px; border: solid transparent; border-width: 11px 0 11px 19px; border-left-color: #fff; z-index: 1; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Laufband «Book a space …» */
.ticker { display: block; overflow: hidden; color: #fff; text-decoration: none; margin-top: 3em; font-size: 1.4em; }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track span { padding-right: 3em; white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Fuss */
.footer { background: var(--grey); padding: 36px 44px; font-size: 15px; }
.footer p { margin: 0 0 .5em; }
.footer a { color: #000; }
.to-top { position: fixed; right: 12px; bottom: 12px; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; color: #000; z-index: 40; }
.banner ~ .to-top { color: #000; }

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  body { font-size: 17px; }
  .header { padding: 0 20px; gap: 12px; flex-wrap: wrap; }
  .brand img { width: 130px; }
  .languages { margin-left: auto; }
  .menu-button { display: block; cursor: pointer; text-transform: uppercase; font-size: 15px; letter-spacing: .04em; }
  .nav { display: none; flex-direction: column; align-items: flex-start; width: 100%; gap: 14px; padding: 10px 0 18px; margin: 0; }
  .menu-toggle:checked ~ .nav { display: flex; }
  .folder-items { position: static; display: flex; background: none; box-shadow: none; padding: 8px 0 0 14px; }
  .folder-items a { color: #fff; }
  .sec-inner { padding: 40px 20px; }
  .footer { padding: 28px 20px; }
}

/* Textseiten (Impressum, Bildnachweise) */
.plain .sec-inner { max-width: 768px; padding-top: 48px; }
.legal { font-size: 16px; }
.legal h3 { font: 700 1.1em/1.4 var(--sans); margin: 1.8em 0 .5em; }
.legal ul { padding-left: 1.2em; }
.plain a { overflow-wrap: anywhere; }

/* keine verbundenen Buchstaben (ff, fi …) – gilt auch dort, wo «font:» die Einstellung zurücksetzt */
*, *::before, *::after { font-variant-ligatures: no-common-ligatures !important; font-feature-settings: "liga" 0, "clig" 0 !important; }

/* ===== Angleichung an das Original (Squarespace «Piccolo»), Desktop ab 901 px – 13.11.2026 ===== */
body { font-size: 24px; line-height: 1.5; }
.text h1 { font-size: 24px; line-height: 2.3; }
/* Fragen (Produkte, Prozesse): kursiv, Serifen, blau – wie im Original */
.text h2 { font: italic 400 24px/1.5 "Times New Roman", Times, serif; color: var(--blue); margin: 0 0 .5em; }
.text h2 em { font-style: italic; }
/* Bildbänder: Text gemäss Inhalt ausrichten (Titel sind zentriert markiert, Listen nicht) */
.banner { text-align: left; min-height: 63vh; }
.banner:first-of-type { min-height: 63vh; }
.banner .text p { font-size: 1em; }
.ticker { font-size: 1em; margin-top: 2em; }
.diagram svg { width: 100%; max-width: 360px; margin: 1em auto 0; }
.scroll-down { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); color: #fff; padding: 10px 14px; }
/* Team: kleine runde Porträts neben dem Namen */
.card { display: flex; align-items: flex-start; gap: 0; margin: 0 0 34px; }
.card img { width: 72px; height: 72px; max-width: none; border-radius: 50%; object-fit: cover; flex: none; }
.card figcaption { padding: 0 0 0 85px; font-size: 20px; line-height: 1.5; letter-spacing: .01em; }
.card figcaption p { margin: 0 0 .45em; }
.card figcaption > div > div:first-child p { font-weight: 700; }
/* Knopf «zurück zur Übersicht» */
.button { font-size: 13px; font-weight: 700; letter-spacing: .3em; text-transform: none; color: #0004ff; border: 2px solid #0004ff; padding: 13px 26px; }
.button:hover { background: #0004ff; color: #fff; }
/* Fusszeile: Social-Media-Symbole */
.footer { font-size: 24px; padding: 48px 61px; }
.footer .social { display: flex; gap: 12px; margin-top: .6em; }
.footer .social a { display: inline-flex; color: #1c1c1c; }
.footer .social svg { fill: currentColor; }

@media (min-width: 769px) {
  /* Kopf liegt durchsichtig über dem Titelbild und scrollt mit; nur die Sprachwahl bleibt oben rechts */
  html { scroll-padding-top: 0; }
  .header { position: absolute; left: 0; right: 0; top: 0; background: transparent; min-height: 0; padding: 40px 44px 0; align-items: flex-start; }
  .no-hero .header { position: relative; background: var(--blue); padding-bottom: 30px; }
  .brand img { width: 320px; }
  .nav { font-size: 20px; letter-spacing: .14em; text-transform: none; gap: 0 22px; padding-top: 10px; margin-right: 0; }
  .languages { position: fixed; top: 0; right: 0; z-index: 60; font-size: 24px; line-height: 1; padding: 6px 4px; }
  .languages a { padding: 0 4px; }
  .sec-inner { padding: 62px 44px; }
  /* Coworking Talks: Inhalt links, Seitenleiste rechts (260 px) */
  .has-sidebar main { margin-right: 260px; }
  .has-sidebar .header { right: 260px; }
  .sidebar { position: fixed; top: 44px; right: 0; width: 260px; padding: 0 20px; font-size: 24px; line-height: 1.5; }
  .sidebar p { margin: 0 0 .78em; }
  .sidebar a { text-decoration: none; }
  .sidebar-contact { font: 11px/1.4 ui-monospace, Menlo, monospace; margin-top: 1em !important; }
  .sidebar-contact a { color: #000; }
}
@media (max-width: 768px) {
  body { font-size: 18px; }
  .text h1 { font-size: 20px; line-height: 1.8; }
  .text h2 { font-size: 20px; }
  .banner, .banner:first-of-type { min-height: 50vh; }
  .footer { font-size: 17px; padding: 28px 20px; }
  .card figcaption { font-size: 17px; padding-left: 24px; }
  .sidebar { display: none; }
}
/* Spaces-Kacheln volle Spaltenbreite, Text in normaler Grösse; Fusszeile Rechtliches gleich gross */
.tile { margin: 0; }
.tile .meta { font-size: inherit; line-height: 1.4; }
.tile .meta p { margin: 0 0 .1em; }
.footer .legal { font-size: inherit; }
.text li { margin-bottom: .2em; }
.plain .legal { font-size: inherit; }
.plain .sec-inner { max-width: 1280px; padding-left: 44px; padding-right: 44px; }

/* Mobil (wie Squarespace ab 768 px): blaue Leiste, Hamburger, grosser Text */
@media (max-width: 768px) {
  :root { --header-h: 63px; }
  body { font-size: 24px; line-height: 36px; }
  .header { background: var(--blue); height: auto; min-height: 63px; padding: 0 20px; gap: 0; align-items: center; flex-wrap: wrap; }
  .brand { margin-left: 35px; padding: 15px 0; }
  .brand img { width: 175px; }
  .menu-button { position: absolute; left: 20px; top: 20px; width: 24px; height: 22px; font-size: 0; line-height: 0; background: linear-gradient(#fff 0 0) 0 2px / 24px 2px no-repeat, linear-gradient(#fff 0 0) 0 10px / 24px 2px no-repeat, linear-gradient(#fff 0 0) 0 18px / 24px 2px no-repeat; }
  .languages { position: absolute; top: 0; right: 0; margin: 0; font-size: 24px; padding: 6px 4px; }
  .has-sidebar .languages, .has-sidebar .header { right: 0; }
  .nav { font-size: 20px; padding: 10px 0 18px; order: 3; }
  .banner:first-of-type { padding-top: 63px; min-height: 503px; }
  .banner { min-height: 440px; }
  .text h1 { font-size: 24px; line-height: 55px; }
  .text h2 { font-size: 24px; }
  .footer { font-size: 24px; padding: 40px 20px; display: block; }
  .footer .social { margin: 12px 0; }
  .card figcaption { font-size: inherit; padding-left: 0; }
  .card img { margin-right: 20px; width: 72px; }
}
@media (max-width: 768px) {
  .banner .sec-inner { padding-top: 10px; padding-bottom: 10px; }
  .ticker { margin-top: .5em; }
}
/* Fusszeile wie im Original: grosse Schrift, Symbole rechts */
@media (min-width: 769px) {
  .footer { font-size: 24px; padding: 60px 44px; }
  .footer .legal, .footer .legal a, .footer p { font-size: inherit; }
  .footer .social svg { width: 24px; height: 24px; }
}
@media (max-width: 768px) { .banner:first-of-type { height: 503px; min-height: 0; } }
/* lange Rechtstexte dürfen auf dem Handy nicht breiter als der Bildschirm werden */
.legal, .legal * { overflow-wrap: anywhere; max-width: 100%; }
