/* Stannek, Unterseite „DIGI-Toolbox“. Baut auf site.css und datev-solution.css auf. */

/* ---------- Einstieg ---------- */
.tb-hero {
  position: relative; overflow: hidden; color: var(--white); background: var(--night);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
}
.tb-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 55% at 82% 40%, rgba(46, 230, 176, 0.2), transparent 70%),
    radial-gradient(55% 65% at 70% 45%, rgba(39, 82, 236, 0.6), transparent 70%),
    linear-gradient(180deg, #0c1a44 0%, #07112e 100%);
}
.tb-hero-grid { position: relative; z-index: 1; display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .tb-hero-grid { grid-template-columns: 1.15fr 1fr; } }
.tb-hero-copy { display: grid; gap: 1.3rem; max-width: 38rem; }
.tb-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 700; letter-spacing: -0.024em; line-height: 1.04; }
.tb-hero h1 span { background: linear-gradient(90deg, var(--sky), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tb-hero-sub { color: var(--on-night-muted); font-size: clamp(1.05rem, 1.35vw, 1.25rem); }
.tb-search { position: relative; margin-top: 0.4rem; }
.tb-search svg { position: absolute; left: 1.1rem; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); fill: none; stroke: var(--night); stroke-width: 2; stroke-linecap: round; }
.tb-search input {
  width: 100%; padding: 1rem 1.2rem 1rem 3.2rem; border: 0; border-radius: 999px; font: inherit; font-size: 1.05rem;
  background: var(--white); color: var(--ink); box-shadow: 0 16px 40px rgba(3, 8, 30, 0.35);
}
.tb-search input:focus { outline: 3px solid var(--accent); outline-offset: 2px; }

.tb-box { margin: 0; justify-self: center; width: min(100%, 420px); }
.tb-box-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.7rem, 2vw, 1.1rem); }
.tb-box-grid span {
  aspect-ratio: 1; border-radius: 22px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}
.tb-box-grid svg { width: 44%; height: 44%; fill: none; stroke: #dbe3fd; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tb-box-grid .t1 { background: var(--blue); border-color: transparent; }
.tb-box-grid .t1 svg { stroke: #fff; }
.tb-box-grid .t3 { border-color: rgba(46, 230, 176, 0.55); }
.tb-box-grid .t3 svg { stroke: var(--accent); }
.tb-box-grid .is-lock { border-style: dashed; }
.tb-box-grid .is-lock svg { stroke: var(--on-night-muted); }
.js-motion .tb-box-grid span { animation: tb-bob 6s ease-in-out infinite; }
.js-motion .tb-box-grid .t2 { animation-delay: -1s; } .js-motion .tb-box-grid .t3 { animation-delay: -2s; }
.js-motion .tb-box-grid .t4 { animation-delay: -3s; } .js-motion .tb-box-grid .t5 { animation-delay: -4s; } .js-motion .tb-box-grid .t6 { animation-delay: -5s; }
@keyframes tb-bob { 50% { transform: translateY(-8px); } }

/* ---------- Tools ---------- */
.tb-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.2rem 2rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.tb-head .section-head { margin-bottom: 0; }
.tb-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tb-filter button {
  font: inherit; font-weight: 600; font-size: 0.95rem; padding: 0.55rem 1.05rem; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.tb-filter button:hover { border-color: var(--blue); }
.tb-filter button.is-on { background: var(--blue); color: #fff; border-color: var(--blue); }

.tb-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .tb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tb-grid { grid-template-columns: repeat(4, 1fr); } }
.tb-tool { transition: opacity 0.3s, transform 0.3s var(--ease); }
.tb-tool.is-hidden { display: none; }
.tb-tool a {
  height: 100%; display: grid; gap: 0.5rem; align-content: start; grid-template-rows: auto auto auto 1fr auto;
  padding: 1.5rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s, background-color 0.35s;
}
.tb-tool a:hover, .tb-tool a:focus-visible { transform: translateY(-4px); border-color: #b9c7f6; background: var(--white); box-shadow: 0 18px 40px rgba(12, 26, 68, 0.09); }
.tb-tool.is-key a { background: linear-gradient(150deg, var(--blue), #1a3184); color: #fff; border-color: transparent; }
.tb-tool.is-key .tb-desc { color: #dbe3fd; }
.tb-tool.is-key .tb-ico { background: rgba(255, 255, 255, 0.14); }
.tb-tool.is-key .tb-ico svg { stroke: #fff; }
.tb-tool.is-key .tb-tag { background: rgba(255, 255, 255, 0.16); color: #fff; }
.tb-tool.is-key .tb-go { color: var(--accent); }
.tb-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--light); margin-bottom: 0.3rem; }
.tb-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tb-tag { justify-self: start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 6px; background: var(--white); color: var(--petrol); }
.tb-tool b { font-size: 1.15rem; line-height: 1.25; }
.tb-desc { color: var(--muted); font-size: 0.97rem; }
.tb-go { margin-top: 0.5rem; font-weight: 600; color: var(--blue); }
.tb-tool.is-soon .tb-tag::after { content: " · folgt"; }
.tb-empty { margin: 1.5rem 0 0; padding: 1.2rem 1.4rem; border-radius: 16px; background: var(--surface); }
.tb-empty a { color: var(--blue); font-weight: 600; }

/* ---------- Bereich mit Anmeldung ---------- */
.tb-plus-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .tb-plus-grid { grid-template-columns: 1.1fr 1fr; } }
.tb-plus-copy { display: grid; gap: 1rem; max-width: 36rem; }
.tb-plus-list { list-style: none; margin: 0.3rem 0 0.6rem; padding: 0; display: grid; gap: 0.55rem; }
.tb-plus-list li { position: relative; padding-left: 1.7rem; color: #dbe3fd; }
.tb-plus-list li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.btn.is-disabled { opacity: 0.55; cursor: not-allowed; }
.tb-locked { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.tb-locked > span {
  display: grid; gap: 0.6rem; padding: 1.3rem; border-radius: 20px; min-height: 140px;
  background: rgba(255, 255, 255, 0.05); border: 1px dashed rgba(255, 255, 255, 0.22); filter: blur(1.5px);
}
.tb-locked i { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.14); }
.tb-locked b { height: 12px; width: 75%; border-radius: 6px; background: rgba(255, 255, 255, 0.2); }
.tb-locked em { height: 10px; width: 55%; border-radius: 6px; background: rgba(255, 255, 255, 0.12); }
.tb-lock {
  position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); box-shadow: 0 0 0 10px rgba(39, 82, 236, 0.25), 0 20px 50px rgba(3, 8, 30, 0.5);
}
.tb-lock svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.js-motion .tb-lock { animation: tb-pulse 2.8s ease-in-out infinite; }
@keyframes tb-pulse { 50% { box-shadow: 0 0 0 18px rgba(39, 82, 236, 0.12), 0 20px 50px rgba(3, 8, 30, 0.5); } }

/* ---------- Abschluss ---------- */
.tb-cta { background: var(--surface); }
.tb-cta h2 { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { .tb-box-grid span, .tb-lock { animation: none !important; } }
.tb-app { margin-top: 1rem; }
