/* Startseite: Segelnummer als Bühne, Gorilla als Maskottchen, Tools sofort im Blick */
.page { max-width: 1120px; margin: 0 auto; padding-inline: 18px; display: flex; flex-direction: column; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: end; padding-block: 8px 10px; overflow: hidden; }
.hero::before { /* Segelnähte: feine Diagonalen wie Bahnen im Tuch */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(118deg, transparent 0 46px, rgba(11, 58, 143, 0.07) 46px 47px);
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { grid-column: 1 / -1; }
.hero h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(3rem, 15.5vw, 10rem); line-height: 0.92; letter-spacing: 0; color: var(--text); animation: rise 0.7s cubic-bezier(0.2, 0.9, 0.2, 1) both; }
.hero h1 span { display: block; }
.hero h1 { color: var(--signal); }
.hero h1 span + span { color: var(--signal); }
.sailno { position: absolute; z-index: 0; right: -0.04em; bottom: -0.2em; font-family: var(--display); font-weight: 900; font-size: clamp(6rem, 28vw, 19rem); line-height: 0.9; letter-spacing: 0; color: transparent; -webkit-text-stroke: 1px var(--line); pointer-events: none; user-select: none; }
.mascot { width: clamp(104px, 29vw, 250px); align-self: end; animation: settle 0.8s 0.1s cubic-bezier(0.2, 0.9, 0.2, 1) both; }
.mascot img { width: 100%; border-radius: var(--r-s); border: 1px solid var(--line-2); box-shadow: 8px 8px 0 var(--red); }
.mascot figcaption { margin-top: 12px; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.hero-sub { display: none; grid-column: 1 / -1; max-width: 46ch; color: var(--text-2); font-size: 0.95rem; margin-top: 4px; }
.wide-only { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(10px) rotate(2deg); } to { opacity: 1; transform: none; } }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-2); padding-top: 8px; margin-top: 0; }
.sec-head h2 { font-family: var(--display); font-weight: 400; font-size: 1.15rem; letter-spacing: 0.02em; text-transform: uppercase; }

.tools { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 6px; }
.tool { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 3px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; transition: background 0.15s, padding 0.15s; }
.tool:hover, .tool:focus-visible { background: var(--surface); padding-inline: 8px; }
.code { width: 46px; height: 32px; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; border-radius: 2px; }
.code.q { background: var(--signal); color: #fff; }
.code.s { background: var(--sea); color: #fff; }
.code.r { background: var(--red); color: #fff; }
.code.w { background: #fff; color: var(--signal); box-shadow: inset 0 0 0 1.5px var(--signal); }
.code.b { background: var(--blue); color: #fff; }
.code.g { background: #fff; color: var(--sea); box-shadow: inset 0 0 0 1.5px var(--sea); }
.code.t { background: #fff; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.tool-t { font-family: var(--display); font-weight: 400; font-size: 1rem; letter-spacing: 0.01em; text-transform: uppercase; line-height: 1.1; }
.tool-s { font-size: 0.76rem; color: var(--text-2); line-height: 1.15; }
.tool-a { font-family: var(--mono); color: var(--text-3); transition: transform 0.15s, color 0.15s; }
.tool:hover .tool-a { color: var(--signal); transform: translateX(4px); }

.follow { margin-block: 26px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: center; background: var(--signal); color: var(--signal-ink); padding: 20px 18px; border-radius: var(--r); }
.follow .eyebrow { color: rgba(255, 255, 255, 0.85); }
.follow .follow-h { font-family: var(--display); font-weight: 900; font-size: clamp(1.7rem, 7.6vw, 3.6rem); line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.follow p { font-size: 0.92rem; max-width: 44ch; }
.follow .follow-h { margin-block: 6px 10px; max-width: none; }
.cta { justify-self: start; display: inline-block; background: #fff; color: var(--signal); font-family: var(--display); font-weight: 400; font-size: 1rem; letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; padding: 12px 20px; border-radius: var(--r-s); transition: transform 0.15s; }
.cta:hover { transform: translateY(-2px); }
.cta:focus-visible { outline-color: #fff; }

@media (min-width: 760px) {
  .page { padding-inline: 32px; }
  .hero { padding-block: 30px 28px; gap: 12px 40px; }
  .hero h1 { font-size: clamp(6rem, 12.5vw, 9.2rem); }
  .hero-sub { display: block; font-size: 1.1rem; }
  .wide-only { display: inline; }
  .mascot figcaption { font-size: 0.68rem; }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .tool { padding: 14px 0; }
  .code { height: 38px; }
  .tool-t { font-size: 1.3rem; }
  .tool-s { font-size: 0.9rem; }
  .follow { grid-template-columns: minmax(0, 1fr) auto; padding: 30px 32px; }
  .cta { justify-self: end; }
}
@media (min-width: 1040px) {
  .tools { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 0; border-bottom: 1px solid var(--line); }
  .tools li + li { border-left: 1px solid var(--line); }
  .tool { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 14px; padding: 18px 16px 22px; border-bottom: 0; height: 100%; }
  .tool:hover, .tool:focus-visible { padding-inline: 16px; }
  .tool-t { font-size: 0.86rem; overflow-wrap: anywhere; }
  .tool-s { font-size: 0.82rem; }
  .tool-a { justify-self: start; }
}
