/* Karate Do Oberwil · V3 · 7. September 2026
   Washi-Weiss, Sumi-Schwarz und ein roter Siegel-Akzent. */
:root {
  --paper: #f5f2e9;
  --soft: #eae6dc;
  --ink: #242823;
  --muted: #62665e;
  --red: #a72d28;
  --line: #d3d1c5;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.8 "Noto Sans", system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); margin: 0 0 1.5rem; letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin: 0 0 1.5rem; letter-spacing: -.025em; }
h3 { font-size: 1.6rem; margin: 0 0 1rem; }
p { margin: 0 0 1.2rem; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
.container, .masthead-inner, .nav-bar-inner, .footer-inner { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 20; background: white; padding: .75rem; }
.skip-link:focus { top: 1rem; }
.site-header { border-top: 5px solid var(--red); }
.masthead-inner { display: flex; align-items: center; gap: 16px; padding-block: 24px; }
.logo { color: var(--ink); font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.1rem); text-decoration: none; letter-spacing: -.03em; }
.hanko { width: 42px; height: 42px; flex-shrink: 0; transform: rotate(-7deg); }
.hanko circle, .footer-hanko circle { fill: var(--red); }
.hanko text, .footer-hanko text { fill: var(--paper); font-family: "Noto Serif JP", serif; }
.nav-bar { border-block: 1px solid var(--line); position: relative; z-index: 5; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; justify-content: space-between; gap: 18px; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 15px 0; text-decoration: none; color: var(--ink); font-size: 14px; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--red); }
.main-nav a[aria-current] { box-shadow: inset 0 -2px var(--red); }
.has-submenu > a::after { content: "⌄"; padding-left: 9px; }
.main-nav .submenu { display: none; position: absolute; top: 100%; left: -16px; min-width: 235px; background: var(--paper); padding: 8px 16px; border: 1px solid var(--line); box-shadow: 0 12px 20px #24282310; }
.main-nav .submenu a { padding: 10px 0; }
.has-submenu:hover > .submenu, .has-submenu:focus-within > .submenu { display: block; }
.nav-toggle-checkbox, .nav-toggle-label { display: none; }
.hero { position: relative; isolation: isolate; width: min(1280px, 100%); margin: auto; min-height: 640px; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 5%; padding: 72px 60px 84px; overflow: hidden; }
.hero-inner { max-width: 580px; }
.hero .badge { display: block; text-transform: uppercase; font-size: 12px; letter-spacing: .19em; color: var(--red); margin-bottom: 28px; font-weight: 600; }
.hero .badge::before { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 12px; }
.hero h1 { font-size: clamp(2.6rem, 4.8vw, 4.15rem); }
.hero p { color: var(--muted); font-size: 16px; }
.hero p:last-child { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero::after { content: ""; display: block; background: url("Bilder/Home.jpg") center / cover; width: 100%; aspect-ratio: 4/4.3; box-shadow: -18px 18px 0 var(--soft); }
.button { display: inline-block; background: var(--red); color: white; border: 1px solid var(--red); text-decoration: none; padding: 11px 20px; font-size: 14px; font-weight: 600; }
.button:hover { background: #86221f; color: white; }
.button--ausserlich { background: transparent; color: var(--ink); border-color: var(--ink); }
.button--ausserlich:hover { background: var(--ink); }
.section { padding: 80px 0; border-top: 1px solid var(--line); }
.section--soft { background: var(--soft); }
.section .container > p { max-width: 760px; }
.section-lead { font-size: 1.15rem; color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.split > * { min-width: 0; }
.split img { margin-inline: auto; }
.split--umgekehrt > :first-child { order: 2; }
.split--umgekehrt > :last-child { order: 1; }
.split h2::before { content: ""; display: block; width: 36px; height: 3px; margin-bottom: 24px; background: var(--red); }
.page-title { display: grid; grid-template-columns: minmax(0, 1fr) 200px; grid-template-rows: 1fr auto 1fr; column-gap: 40px; padding: 36px max(32px, calc((100% - 1160px)/2)); background: var(--soft); }
.page-title h1 { grid-column: 1; grid-row: 2; margin: 0; }
.linie { display: block; background: var(--red); width: 40px; height: 3px; margin-top: 25px; }
.karten { display: grid; gap: 32px; margin-top: 32px; }
.karten--drei { grid-template-columns: repeat(3, 1fr); }
.karten--zwei { grid-template-columns: repeat(2, 1fr); }
.karte { border-top: 2px solid var(--red); padding: 28px 0 8px; }
.karte h3 { color: var(--ink); }
.karte p { color: var(--muted); }
blockquote { border-left: 3px solid var(--red); margin: 30px 0; padding: 12px 28px; font: italic 1.3rem/1.7 var(--serif); }
.tabelle-wrapper { overflow-x: auto; margin-block: 32px; }
table { border-collapse: collapse; width: 100%; }
caption { text-align: left; margin-bottom: 12px; color: var(--muted); }
td, th { padding: 20px 24px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
thead { background: var(--ink); color: var(--paper); }
tbody tr:nth-child(even) { background: var(--soft); }
.galerie-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.galerie-grid a { overflow: hidden; background: var(--soft); }
.galerie-grid img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .2s; }
.galerie-grid a:hover img { transform: scale(1.04); }
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.kontakt-karte dt { color: var(--muted); margin-top: 16px; }
.kontakt-karte dd { margin: 0; }
.karte-einbettung { width: 100%; height: 360px; border: 0; }
.linkliste { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.linkliste a { display: block; border-bottom: 1px solid var(--line); padding: 25px 0; text-decoration: none; }
.linkliste .titel { display: block; font: 1.4rem var(--serif); margin-bottom: 8px; }
.linkliste .beschreibung { display: block; color: var(--muted); font-size: 14px; }
.site-footer { background: var(--ink); color: var(--paper); padding: 48px 0; }
.site-footer a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 900px) {
  .hero { padding: 56px 32px; gap: 32px; min-height: 540px; }
  .split { gap: 36px; }
  .main-nav > ul { gap: 12px; }
  .main-nav a { font-size: 13px; }
}
@media (max-width: 680px) {
  .container, .masthead-inner, .nav-bar-inner, .footer-inner { width: calc(100% - 40px); }
  .masthead-inner { padding-block: 20px; }
  .nav-bar-inner { padding-block: 13px; }
  .nav-toggle-label { display: flex; gap: 5px; flex-direction: column; width: 28px; margin-left: auto; cursor: pointer; padding-block: 5px; }
  .nav-toggle-label > span:not(.sr-only) { height: 2px; width: 28px; background: var(--ink); }
  .nav-toggle-checkbox { display: block; position: absolute; opacity: 0; width: 28px; height: 28px; right: 20px; }
  .nav-toggle-checkbox:focus-visible + label { outline: 3px solid var(--red); outline-offset: 5px; }
  .main-nav { display: none; padding-top: 16px; }
  .nav-toggle-checkbox:checked ~ .main-nav { display: block; }
  .main-nav > ul { display: block; }
  .main-nav a { padding: 10px 0; font-size: 15px; }
  .main-nav .submenu { display: block; position: static; border: 0; border-left: 1px solid var(--line); padding: 0 0 0 20px; margin-bottom: 8px; box-shadow: none; }
  .main-nav .submenu a { color: var(--muted); font-size: 14px; }
  .has-submenu > a::after { content: none; }
  .hero { grid-template-columns: 1fr; padding: 40px 20px 48px; gap: 40px; }
  .hero h1 { max-width: 520px; font-size: clamp(2.6rem, 9vw, 3.8rem); }
  .hero::after { aspect-ratio: 3/2; width: calc(100% - 12px); margin-left: 12px; box-shadow: -12px 12px 0 var(--soft); }
  .hero .badge { font-size: 11px; margin-bottom: 20px; }
  .section { padding: 48px 0; }
  .split, .karten--drei, .karten--zwei, .kontakt-grid, .linkliste { grid-template-columns: 1fr; }
  .split--umgekehrt > * { order: 0 !important; }
  .galerie-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .page-title { grid-template-columns: minmax(0, 1fr) 100px; column-gap: 16px; padding: 32px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .galerie-grid img { transition: none; }
}
@media print {
  body { background: white; color: black; font-size: 11pt; }
  .nav-bar, .skip-link, .hero::before, .hero::after, .footer-hanko, .karte-einbettung { display: none; }
  .hero { display: block; min-height: 0; padding: 20px; }
  .section, .page-title { padding: 20px 0; background: white; }
  .container, .footer-inner { width: 100%; }
  .site-footer { color: black; background: white; padding: 20px 0; }
  a, nav a, .button { color: black; background: none; }
  .split { gap: 24px; }
  h1 { font-size: 28pt; }
  h2 { font-size: 22pt; }
  img, table, .karte { break-inside: avoid; }
}
/* Einzeilige Pinselkalligrafie im Header. */
.masthead-inner { padding-block: 18px; }
.logo { display: block; width: min(560px, 100%); overflow: hidden; }
.logo-calligraphy { width: 100%; height: auto; margin-block: -5%; }
/* Faust-Emblem im Titelbereich, rechts mit der Navigation bündig. */
.page-title .linie { grid-column: 1; grid-row: 3; }
.page-emblem { grid-column: 2; grid-row: 1 / 4; place-self: center end; width: 200px; height: 200px; min-width: 0; min-height: 0; padding: 12px; border: 1px solid var(--red); border-radius: 50%; }
.page-emblem img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
@media (max-width: 680px) {
  .page-emblem { width: 100px; height: 100px; padding: 6px; }
  .page-title h1 { font-size: clamp(1.65rem, 5.8vw, 2.6rem); overflow-wrap: anywhere; }
}
.footer-inner { text-align: center; }
.footer-copy { margin: 0; font-size: 14px; }
