/* TENNISwerk365: Produktseite. Farben der Seite und der Mockups aus den ITwerk365-Markenrichtlinien. */
:root {
  --blue: #2f86d2;
  --blue-dark: #1f6fb8;
  --ink: #323c46;
  --graphite: #46505a;
  --ice: #eef3fa;
  --white: #fff;
  --line: #dce8f4;
  --navy: #17232d;
  --on-dark: #dbe5ee;
  --app: #1f6fb8;
  --app-text: #17232d;
  --app-muted: #52606d;
  --app-line: #e6eaef;
  --app-bg: #f5f7fa;
  --ok: #0a7a2f;
  --danger: #b00020;
  --warn: #8a5a00;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(23, 35, 45, .14);
  --shell: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 17px/1.6 system-ui, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; }
h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 750; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 720; letter-spacing: -.015em; }
h3 { font-size: 23px; font-weight: 700; }
:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; }

.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 14px; border-radius: 8px; background: var(--blue-dark); color: var(--white); }
.skip-link:focus { top: 12px; }
.eyebrow { margin-bottom: 12px; color: var(--blue-dark); font-size: 14px; font-weight: 700; letter-spacing: .04em; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); }
.nav-shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-size: 19px; font-weight: 750; text-decoration: none; }
.brand b { color: var(--blue); }
.wordmark-zahl { color: #8fc4ed; }
.brand-mark { position: relative; width: 28px; height: 28px; border: 3px solid var(--blue-dark); border-radius: 50%; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; top: -3px; bottom: -3px; width: 9px; border: 2px solid var(--blue-dark); border-radius: 50%; }
.brand-mark::before { left: -6px; border-left-color: transparent; border-top-color: transparent; border-bottom-color: transparent; }
.brand-mark::after { right: -6px; border-right-color: transparent; border-top-color: transparent; border-bottom-color: transparent; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; color: var(--graphite); font-size: 15px; font-weight: 600; text-decoration: none; }
.site-nav a:not(.button):hover { color: var(--blue-dark); }
.menu-button { display: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 1px solid var(--blue-dark); border-radius: 12px; background: var(--blue-dark); color: var(--white); font-size: 16px; font-weight: 650; text-decoration: none; transition: background .2s; }
.button:hover { background: #185c9b; }
.button.small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.button.ghost { border-color: var(--line); background: var(--white); color: var(--blue-dark); }
.button.ghost:hover { background: var(--ice); }
.button.light { flex: none; border-color: var(--white); background: var(--white); color: var(--blue-dark); }
.button.light:hover { background: var(--ice); }

.hero { padding: 64px 0 72px; background: linear-gradient(180deg, var(--ice), var(--white)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 48px; }
.lead { margin: 20px 0 28px; color: var(--graphite); font-size: 19px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.checks { display: grid; gap: 8px; font-size: 16px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #dceafa; color: #185c9b; font-size: 12px; font-weight: 800; }
.hero-visual { position: relative; display: grid; justify-items: end; }
.float-note { position: absolute; left: 0; bottom: 56px; display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: var(--shadow); font-size: 14px; line-height: 1.3; }
.float-note b { color: var(--ink); }

.strip { border-block: 1px solid var(--line); }
.strip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding-block: 18px; color: var(--graphite); font-size: 15px; font-weight: 600; }

.section { padding: 80px 0; }
.section-ice { background: var(--ice); }
.section-dark { background: var(--navy); color: var(--on-dark); }
.section-dark h2, .section-dark b { color: var(--white); }
.section-dark .eyebrow { color: #9fcdf5; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head h2 + p { margin-top: 14px; color: var(--graphite); font-size: 18px; }
.section-dark .section-head h2 + p { color: var(--on-dark); }

.tab-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab-list button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--graphite); font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; }
.tab-list button:hover { border-color: var(--blue-dark); color: var(--blue-dark); }
.tab-list button[aria-selected="true"] { border-color: var(--blue-dark); background: var(--blue-dark); color: var(--white); }
html:not(.js) .tab-list { display: none; }
.tab-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ice); }
html:not(.js) .tab-panel + .tab-panel { margin-top: 20px; }
.tab-panel.wide { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); background: var(--white); }
.tab-panel[hidden] { display: none; }
.panel-text p { margin: 12px 0 18px; color: var(--graphite); }

.mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.mini-grid li { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.mini-grid b, .feature-list b { display: block; color: var(--ink); }
.mini-grid span { display: block; margin-top: 4px; color: var(--graphite); font-size: 15px; line-height: 1.5; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 56px; }
.split > div:first-child > h2 + p { margin-top: 14px; color: var(--graphite); font-size: 18px; }
.feature-list { display: grid; gap: 16px; margin-top: 24px; }
.feature-list li { padding-left: 16px; border-left: 3px solid var(--blue-dark); }
.feature-list span { color: var(--graphite); font-size: 16px; line-height: 1.5; }
.note { margin-top: 20px; color: var(--graphite); font-size: 15px; }
.section-dark .note { color: var(--on-dark); }
.duo { display: flex; align-items: flex-start; gap: 20px; }
.duo .phone { width: 250px; }
.duo .phone-dark { margin-top: 36px; }

.flow { display: grid; grid-template-columns: 1fr 44px 1fr 44px 1fr; align-items: stretch; gap: 8px; margin-bottom: 28px; }
.flow-box { display: grid; gap: 2px; padding: 18px; border: 1px solid #3a4b5a; border-radius: var(--radius); background: #1f2f3c; }
.flow-box.accent { border-color: #7fbcf0; background: #1f6fb8; }
.flow-box small { color: var(--on-dark); font-size: 13px; }
.flow-box.accent small, .flow-box.accent span { color: var(--white); }
.flow-box span { color: var(--on-dark); font-size: 15px; line-height: 1.4; }
.flow-arrow { position: relative; align-self: center; height: 2px; background: #7fbcf0; }
.flow-arrow::after { content: ""; position: absolute; right: 0; top: -4px; border-left: 8px solid #7fbcf0; border-block: 5px solid transparent; }
.connect-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.connect-grid li { padding: 18px; border: 1px solid #3a4b5a; border-radius: var(--radius); }
.connect-grid b { display: block; }
.connect-grid span { display: block; margin-top: 4px; color: var(--on-dark); font-size: 15px; line-height: 1.5; }

.final { padding: 0 0 80px; }
.final-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px; border-radius: var(--radius); background: var(--blue-dark); color: var(--white); }
.final-box h2 { color: var(--white); font-size: clamp(24px, 3vw, 32px); }
.final-box p { margin-top: 8px; }

.site-footer { padding: 48px 0 24px; background: var(--navy); color: var(--on-dark); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .8fr .8fr 1.3fr; gap: 28px; }
.footer-grid b { display: block; margin-bottom: 8px; color: var(--white); }
.footer-grid a { display: flex; align-items: center; min-height: 32px; text-decoration: none; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid #3a4b5a; font-size: 14px; }

/* Mockups */

.phone { width: 290px; max-width: 100%; padding: 8px; border-radius: 34px; background: #17232d; box-shadow: var(--shadow); }
.phone-screen { display: flex; flex-direction: column; height: 560px; overflow: hidden; border-radius: 27px; background: var(--app-bg); color: var(--app-text); font-size: 13px; line-height: 1.35; }
.app-bar { display: flex; align-items: center; justify-content: space-between; flex: none; padding: 14px 14px 10px; background: var(--app); color: var(--white); font-size: 14px; font-weight: 600; }
.app-avatar { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--white); color: var(--app); font-size: 12px; font-style: normal; font-weight: 700; }
.app-body { display: grid; align-content: start; flex: 1; gap: 8px; min-height: 0; padding: 12px; overflow: hidden; }
.app-date { color: var(--app-muted); font-size: 11.5px; font-weight: 600; }
.app-hello { font-size: 20px; font-weight: 500; line-height: 1.15; }
.app-card { padding: 10px; border: 1px solid var(--app-line); border-radius: 12px; background: var(--white); }
.app-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.app-card-head b { font-size: 13.5px; font-weight: 600; }
.ico { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--ice); color: var(--app); font-size: 11px; font-style: normal; font-weight: 700; }
.app-row { display: grid; padding: 6px 0; border-top: 1px solid var(--app-line); }
.app-row small { color: var(--app-muted); font-size: 11.5px; }
.app-tabs { display: grid; grid-template-columns: repeat(4, 1fr); flex: none; padding: 10px 4px 14px; border-top: 1px solid var(--app-line); background: var(--white); color: var(--app-muted); font-size: 11px; text-align: center; }
.app-tabs b { color: var(--app); }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 9px; background: #e8eef5; color: var(--app-muted); text-align: center; }
.seg b, .seg span { padding: 5px; border-radius: 7px; font-weight: 600; }
.seg b { background: var(--white); color: var(--app-text); }
.app-info { padding: 8px; border-radius: 9px; background: #e8f1fa; font-size: 11.5px; }

.board { overflow: hidden; border: 1px solid var(--app-line); border-radius: 12px; background: var(--white); }
.board-head, .board-grid { display: grid; grid-template-columns: 40px repeat(3, 1fr); }
.board-head { padding: 6px 0; border-bottom: 1px solid var(--app-line); font-size: 11.5px; text-align: center; }
.board-head b { font-weight: 600; }
.board-grid { height: 208px; }
.times { display: grid; grid-template-rows: repeat(4, 52px); color: var(--app-muted); font-size: 10.5px; text-align: center; }
.times span { padding-top: 3px; }
.lane { position: relative; border-left: 1px solid var(--app-line); background: repeating-linear-gradient(180deg, transparent 0 51px, var(--app-line) 51px 52px); }
.slot { position: absolute; left: 3px; right: 3px; padding: 4px; border-radius: 7px; font-size: 10.5px; font-style: normal; font-weight: 600; line-height: 1.2; }
.slot.busy { border: 1px solid #e3b4c0; background: #f8e6ea; color: #8a0f30; }
.slot.mine { border: 1px solid #a5d6b1; background: #dcf2e2; color: #0a5c24; }
.s1 { top: 3px; } .s2 { top: 55px; } .s3 { top: 107px; }
.h1 { height: 46px; } .h2 { height: 98px; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; color: var(--app-muted); font-size: 11.5px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 11px; height: 11px; border: 1px solid var(--app-line); border-radius: 3px; background: var(--white); }
.dot.busy { border-color: #e3b4c0; background: #f8e6ea; }
.dot.mine { border-color: var(--app); background: var(--app); }
.dot.can { border-color: #a5d6b1; background: #dcf2e2; }

.event { display: flex; gap: 8px; padding: 9px; border: 1px solid var(--app-line); border-radius: 11px; background: var(--white); }
.event b { display: block; font-weight: 600; }
.event small { color: var(--app-muted); font-size: 11.5px; }
.bar { flex: none; width: 4px; border-radius: 4px; }
.bar.blue { background: var(--app); } .bar.green { background: #0a7a2f; } .bar.teal { background: #087f8e; } .bar.amber { background: #b77900; }
.rank { display: grid; grid-template-columns: 18px 1fr auto; padding: 5px 0; border-top: 1px solid var(--app-line); }
.bubble { width: fit-content; max-width: 88%; margin-top: 5px; padding: 6px 9px; border-radius: 10px; background: #e8eef5; }
.bubble.own { margin-left: auto; background: var(--app); color: var(--white); }

.pyramid { display: grid; gap: 5px; padding: 4px 0; }
.pyramid div { display: flex; justify-content: center; gap: 4px; }
.pyramid span { display: grid; place-items: center; width: 56px; height: 38px; border: 1px solid var(--app-line); border-radius: 8px; background: var(--white); font-size: 10.5px; font-weight: 600; }
.pyramid .can { border-color: #a5d6b1; background: #dcf2e2; color: #0a5c24; }
.pyramid .me { border-color: var(--app); background: var(--app); color: var(--white); }

.stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.stats div { display: grid; padding: 8px; border: 1px solid var(--app-line); border-radius: 10px; background: var(--white); }
.stats small { color: var(--app-muted); font-size: 11px; font-weight: 600; }
.stats b { font-size: 16px; font-weight: 750; }
.stats .good { color: var(--ok); } .stats .bad { color: var(--danger); }
.meter { height: 7px; overflow: hidden; border-radius: 7px; background: #dfe6ee; }
.meter i { display: block; width: 69%; height: 100%; background: var(--app); }
.toggle { display: flex; align-items: center; justify-content: space-between; padding: 10px; border: 1px solid var(--app-line); border-radius: 10px; background: var(--white); font-weight: 500; }
.toggle i { position: relative; width: 32px; height: 18px; border-radius: 18px; background: #aab6c2; }
.toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); }
.toggle i.on { background: var(--app); }
.toggle i.on::after { left: 16px; }

.phone-dark .phone-screen { --app-bg: #14181d; --app-text: #eef2f6; --app-muted: #aeb8c2; --app-line: #2c343d; background: var(--app-bg); }
.phone-dark .app-bar { background: #1c222a; }
.phone-dark .app-card, .phone-dark .app-tabs { background: #1c222a; }
.phone-dark .app-tabs b { color: #84bff3; }
.phone-dark .ico { background: #2c343d; color: #84bff3; }

.browser { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--ice); color: var(--graphite); font-size: 13px; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #aab6c2; }
.browser-bar span { margin-left: 8px; }
.desk { display: grid; grid-template-columns: 124px minmax(0, 1fr); min-height: 310px; color: var(--app-text); font-size: 13px; line-height: 1.35; }
.side { display: grid; align-content: start; gap: 4px; padding: 12px 8px; border-right: 1px solid var(--app-line); }
.side b { padding: 0 6px 8px; font-weight: 650; }
.side span { padding: 6px; border-radius: 7px; color: var(--app-muted); }
.side .on { background: var(--ice); color: var(--app); font-weight: 600; }
.desk-main { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 14px; background: var(--app-bg); }
.desk table { width: 100%; border-collapse: collapse; border: 1px solid var(--app-line); background: var(--white); }
.desk th { padding: 7px 8px; border-bottom: 1px solid var(--app-line); color: var(--app-muted); font-size: 11.5px; font-weight: 700; text-align: left; }
.desk td { padding: 8px; border-bottom: 1px solid var(--app-line); }
.desk td:nth-child(3) { white-space: nowrap; }
.tag { display: inline-block; padding: 2px 7px; border-radius: 99px; background: #e8eef5; color: var(--app-muted); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.tag.ok { background: #dcf2e2; color: #0a5c24; }
.tag.warn { background: #f6ebd5; color: #6f4900; }
.tag.info { background: #e1ecf7; color: var(--app); }
.desk-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.fake-btn { padding: 7px 10px; border: 1px solid var(--app); border-radius: 8px; background: var(--app); color: var(--white); font-weight: 600; }
.fake-btn.ghost { border-color: var(--line); background: var(--white); color: var(--app); }
.bracket { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 14px; }
.round { display: grid; gap: 10px; }
.round small { color: var(--app-muted); font-weight: 600; }
.match { display: grid; gap: 2px; padding: 9px; border: 1px solid var(--app-line); border-radius: 10px; background: var(--white); }
.match b { font-weight: 700; }
.match em { color: var(--app-muted); font-size: 11.5px; font-style: normal; }

@media (max-width: 980px) {
  .menu-button { display: inline-flex; align-items: center; }
  .js .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); background: var(--white); }
  .js .site-nav.open { display: flex; }
  html:not(.js) .menu-button { display: none; }
  html:not(.js) .nav-shell { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .site-nav { flex-wrap: wrap; }
  .site-nav .button { margin-top: 8px; }
  .hero-grid, .tab-panel, .tab-panel.wide, .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-visual { justify-items: center; }
  .float-note { position: static; width: 290px; max-width: 100%; margin-top: 12px; }
  .tab-panel > .phone, .split > .phone { justify-self: center; }
  .split > .duo { justify-self: center; }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connect-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 48px; }
  .section { padding: 56px 0; }
  .tab-panel { padding: 20px; }
  .actions .button { width: 100%; }
  .mini-grid, .connect-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-arrow { justify-self: center; width: 2px; height: 22px; }
  .flow-arrow::after { left: -4px; right: auto; top: auto; bottom: 0; border-top: 8px solid #7fbcf0; border-inline: 5px solid transparent; border-bottom: 0; }
  .final-box { flex-direction: column; align-items: stretch; padding: 24px; }
  .final-box .button { width: 100%; }
  .duo { flex-direction: column; align-items: center; }
  .duo .phone { width: 290px; }
  .duo .phone-dark { margin-top: 0; }
  .desk { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .desk th, .desk td { padding: 6px 5px; font-size: 11.5px; }
  .tag { padding: 2px 5px; font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
