/* TOOLmenue 1.0 Styles (c) 2025 Lars Weber GmbH */

:root {
  --tm-primary: #146C94;
  --tm-accent: #D9682D;
  --tm-bg: #F4F7FB;
  --tm-text: #111111;
  --tm-card-bg: #FFFFFF;
  --tm-card-border: #E0E6EE;
  --tm-radius-lg: 16px;
  --tm-radius-xl: 22px;
  --tm-shadow-soft: 0 12px 26px rgba(0, 0, 0, 0.08);
  --tm-shadow-subtle: 0 1px 4px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--tm-text);
  background: radial-gradient(circle at top left, rgba(20,108,148,0.09), transparent 55%), var(--tm-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */

.tm-header {
  background: linear-gradient(135deg, var(--tm-primary), #0C405A);
  color: #FFFFFF;
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow: var(--tm-shadow-subtle);
}

.tm-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.tm-logo-wrap {
  flex: 0 0 auto;
}

.tm-logo {
  display: block;
  height: 60px;
  width: auto;
}

.tm-title-wrap {
  flex: 1 1 auto;
}

.tm-toolname {
  margin: 0 0 0.125rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.tm-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 650;
}

.tm-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
  max-width: 36rem;
  opacity: 0.95;
}

/* Layout main */

.tm-main {
  flex: 1 0 auto;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 2.5rem;
}

.tm-intro {
  margin-bottom: 1.75rem;
  background: rgba(255,255,255,0.95);
  border-radius: var(--tm-radius-xl);
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(224,230,238,0.9);
  box-shadow: var(--tm-shadow-subtle);
}

.tm-intro p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.98rem;
}

/* Card grid */

.tm-grid-section {
  margin-top: 0.5rem;
}

.tm-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.tm-card {
  background: var(--tm-card-bg);
  border-radius: var(--tm-radius-xl);
  border: 1px solid var(--tm-card-border);
  padding: 1.25rem 1.2rem 1.2rem;
  box-shadow: var(--tm-shadow-soft);
  display: flex;
  flex-direction: column;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.tm-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(217,104,45,0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.tm-card:hover::before,
.tm-card:focus-within::before {
  opacity: 1;
}

.tm-card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20,108,148,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 0.75rem;
}

.tm-card-icon {
  width: 26px;
  height: 26px;
  display: block;
}

.tm-card-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 620;
  color: #072636;
}

.tm-card-desc {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1 1 auto;
}

.tm-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tm-card-link {
  margin: 0;
  font-size: 0.86rem;
  color: #4F6475;
}

.tm-card-link span {
  font-weight: 600;
}

.tm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: none;
  background: var(--tm-primary);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 550;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(20,108,148,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.tm-button:hover,
.tm-button:focus-visible {
  background: #0F5675;
  box-shadow: 0 12px 22px rgba(20,108,148,0.45);
  transform: translateY(-1px);
}

.tm-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(20,108,148,0.35);
}

.tm-button-icon {
  margin-left: 0.45rem;
  display: inline-block;
  transform: translateY(1px);
}

/* Footer */

.tm-footer {
  flex-shrink: 0;
  padding: 0.9rem 1.5rem 1.1rem;
  border-top: 1px solid rgba(0,0,0,0.04);
  background: rgba(255,255,255,0.95);
}

.tm-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: #556270;
}

/* Small screens */

@media (max-width: 640px) {
  .tm-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .tm-logo {
    height: 52px;
  }

  .tm-main {
    padding-inline: 1.15rem;
  }

  .tm-intro {
    padding: 1rem 1.1rem;
  }

  .tm-card {
    padding-inline: 1.05rem;
  }
}

/* Very large screens */

@media (min-width: 1280px) {
  .tm-main {
    max-width: 1180px;
  }

  .tm-header-inner,
  .tm-footer-inner {
    max-width: 1180px;
  }
}


.tm-header-links {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
}

.tm-header-links a {
  color: #FFFFFF;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 1px;
}

.tm-header-links a:hover,
.tm-header-links a:focus-visible {
  border-bottom-color: #FFFFFF;
}

.tm-footer-inner a {
  color: #146C94;
  text-decoration: none;
}

.tm-footer-inner a:hover,
.tm-footer-inner a:focus-visible {
  text-decoration: underline;
}


.tm-logo-wrap {
  flex: 0 0 auto;
}

.tm-logo-badge {
  background: #FFFFFF;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.tm-logo {
  display: block;
  height: 54px;
  width: auto;
}

.tm-header-links {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
}

.tm-header-links a {
  color: #FFFFFF;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.55);
  padding-bottom: 1px;
}

.tm-header-links a:hover,
.tm-header-links a:focus-visible {
  border-bottom-color: #FFFFFF;
}

.tm-footer-inner a {
  color: #146C94;
  text-decoration: none;
}

.tm-footer-inner a:hover,
.tm-footer-inner a:focus-visible {
  text-decoration: underline;
}
