:root {
  color-scheme: light;
  --ink: #18212b;
  --muted: #586575;
  --paper: #f6f4ef;
  --white: #fff;
  --line: rgba(24, 33, 43, .14);
  --blue: #087db3;
  --green: #467650;
  --clay: #a95032;
  --gold: #b88b2b;
  --shadow: 0 18px 48px rgba(24, 33, 43, .14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; -webkit-tap-highlight-color: rgba(8, 125, 179, .18); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(10, 20, 41, .82);
  backdrop-filter: blur(18px) saturate(1.18);
  color: var(--white);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .18);
}

.nav {
  width: min(1160px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  overflow-wrap: anywhere;
}
.brand::before {
  content: "S";
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #00d7e8, #087db3);
  color: #071421;
  font-weight: 900;
  box-shadow: 0 0 24px rgba(0, 215, 232, .28);
}
.nav-links { display: flex; align-items: center; gap: 18px; font-size: .92rem; }
.nav-links a { text-decoration: none; opacity: .78; }
.nav-links a:hover, .nav-links a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

.hero {
  min-height: 82vh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 24%, rgba(0, 215, 232, .16), transparent 34%),
    radial-gradient(circle at 78% 64%, rgba(8, 125, 179, .2), transparent 38%),
    linear-gradient(90deg, rgba(7, 13, 25, .9) 0%, rgba(7, 13, 25, .68) 44%, rgba(7, 13, 25, .2) 100%),
    linear-gradient(0deg, rgba(7, 13, 25, .62), rgba(7, 13, 25, .12)),
    url("hero-sportunterricht-neon.jpg") center / cover no-repeat;
}

.hero-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 118px 0 78px;
}

.eyebrow {
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .86);
  font-size: .86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(3.15rem, 7.6vw, 7.35rem);
  line-height: .94;
}

.hero-title {
  white-space: nowrap;
}

.hero-copy {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1.04rem, 1.7vw, 1.24rem);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: 0 22px;
  background: linear-gradient(135deg, #00d7e8, #58d35e);
  color: #071421;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(0, 215, 232, .22);
}
.button.secondary {
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  box-shadow: none;
}
.button:hover, .button:focus-visible { transform: translateY(-1px); }

.section { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 72px 0; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  gap: 36px;
  align-items: end;
  margin-bottom: 30px;
}
h2 { margin: 0; font-size: clamp(1.9rem, 3.6vw, 3.25rem); line-height: 1.05; }
.section-heading h1 { font-size: clamp(2.8rem, 5vw, 3.6rem); }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 1.02rem; }

.impressum-content {
  max-width: 920px;
  margin: 0 auto;
}

.impressum-block h2 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.impressum-block p {
  margin: 0.65rem 0 0;
  color: rgba(24, 33, 43, .74);
  line-height: 1.78;
}

.materials-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}

.category-filter {
  position: sticky;
  top: 80px;
  border: 1px solid rgba(24, 33, 43, .1);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(8px);
}

.search-box {
  margin-bottom: 16px;
  position: relative;
}

.search-input {
  width: 100%;
  border: 1px solid rgba(24, 33, 43, .1);
  border-radius: 6px;
  padding: 10px 36px 10px 12px;
  background: #fbfbfa;
  color: var(--ink);
  font-size: 0.9rem;
  font: inherit;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--blue);
  background: white;
}

.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.search-clear:hover {
  color: var(--ink);
}

.category-filter h3 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category-btn {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(24, 33, 43, .1);
  border-radius: 6px;
  padding: 10px 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-btn:hover {
  background: rgba(8, 125, 179, .08);
  border-color: rgba(8, 125, 179, .2);
}

.category-btn.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  font-weight: 600;
}

.category-count {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.8;
}

.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.no-results {
  grid-column: 1 / -1;
  padding: 32px 24px;
  text-align: center;
  background: rgba(8, 125, 179, .05);
  border: 2px dashed rgba(8, 125, 179, .2);
  border-radius: 8px;
  color: var(--muted);
}
.no-results p {
  margin: 0;
  font-size: 1.1rem;
}
.resource-card {
  min-height: 242px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, .72);
  background: linear-gradient(135deg, rgba(var(--card-tint-rgb, 255, 255, 255), .1), rgba(255, 255, 255, .82));
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(8, 125, 179, .16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
  overflow: hidden;
}
.resource-card:hover, .resource-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(8, 125, 179, .42);
  box-shadow: var(--shadow);
  outline: none;
}
.pin-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  opacity: .65;
  pointer-events: none;
}
.pin-badge svg {
  display: block;
  width: 11px;
  height: 14px;
}

@keyframes pinPop {
  0% {
    transform: scale(0) rotate(-45deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}
.resource-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(8, 125, 179, .1);
  color: #075f86;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.arrow {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
}
.resource-card h3 { margin: 28px 0 12px; font-size: 1.34rem; line-height: 1.15; }
.resource-card p { margin: 0; color: var(--muted); line-height: 1.58; }
.resource-card small { display: block; margin-top: 24px; color: rgba(24, 33, 43, .62); overflow-wrap: anywhere; }
.resource-card:nth-child(2n) .tag { background: rgba(70, 118, 80, .12); color: var(--green); }
.resource-card:nth-child(3n) .tag { background: rgba(169, 80, 50, .12); color: var(--clay); }
.resource-card:nth-child(4n) .tag { background: rgba(184, 139, 43, .16); color: #78570f; }
.resource-card[style*="card-tint-rgb"] .tag {
  border: 1px solid rgba(24, 33, 43, .16);
  background: var(--tag-bg, rgba(226, 232, 236, .95));
  color: rgb(var(--card-tint-rgb));
}

.profile-band { background: #111a25; color: var(--white); }
.profile {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 60px 0;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 42px;
  align-items: center;
}
.profile h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
.profile p { margin: 22px 0 0; color: rgba(255, 255, 255, .78); font-size: 1.08rem; line-height: 1.7; }
.contact-panel { border-left: 3px solid var(--blue); padding-left: 24px; }
.contact-panel a { display: inline-flex; margin-top: 14px; color: var(--white); font-weight: 800; text-decoration: none; }
.contact-panel a:hover, .contact-panel a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }

.site-footer { background: #0b1118; color: rgba(255, 255, 255, .76); }
.footer-inner {
  width: min(1160px, calc(100% - 32px));
  min-height: 138px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 28px 0;
}
.footer-copy { line-height: 1.65; }
.footer-copy strong { display: block; color: var(--white); font-size: 1rem; }
.visit-counter { color: rgba(255, 255, 255, .54); font-size: .9rem; }
.footer-copy a { color: var(--white); text-decoration: none; }
.footer-copy a:hover, .footer-copy a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }
.footer-support-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.footer-support-buttons a {
  display: inline-flex;
  line-height: 0;
}
.footer-support-buttons img {
  height: 36px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
}
.footer-logo { width: 96px; height: 96px; object-fit: contain; flex: 0 0 auto; }
.footer-logo-link { display: inline-flex; flex: 0 0 auto; cursor: default; }

.cookie-banner {
  display: none;
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  background: rgba(9, 18, 33, .96);
  color: #f5f7fb;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.cookie-banner-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner p {
  margin: 0;
  color: rgba(245, 247, 251, .92);
  line-height: 1.6;
  font-size: .95rem;
  max-width: calc(100% - 170px);
}

.cookie-banner a {
  color: #88d7ff;
  text-decoration: underline;
}

.button.small {
  min-height: 42px;
  padding: 0 16px;
  font-size: .95rem;
}

.impressum-content {
  display: grid;
  gap: 28px;
}

.impressum-block {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(24, 33, 43, .1);
  border-radius: 12px;
  padding: 24px;
}

.impressum-block h2 {
  margin-top: 0;
}

.admin-body { background: #eef1f3; }
.admin-wrap { width: min(1060px, calc(100% - 32px)); margin: 0 auto; padding: 38px 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.admin-top h1 { color: var(--ink); font-size: clamp(2rem, 6vw, 4rem); line-height: 1; }
.panel, .table-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(24, 33, 43, .08);
}
.panel { padding: 22px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-full { grid-column: 1 / -1; }
label { display: grid; gap: 7px; color: var(--muted); font-weight: 700; font-size: .9rem; }
.field-label { display: block; margin-bottom: 7px; color: var(--muted); font-weight: 700; font-size: .9rem; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  color: var(--ink);
  background: #fbfbfa;
  font: inherit;
}
textarea { min-height: 94px; resize: vertical; }
.password-field-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
}
.password-field-wrapper input {
  flex: 1;
  margin: 0;
}
.password-toggle-btn {
  flex: 0 0 auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfbfa;
  color: var(--ink);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s;
}
.password-toggle-btn:hover {
  background: #f0ede7;
  border-color: var(--muted);
}
.password-toggle-btn:active {
  background: #e8e4db;
}
.check { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.check input { width: auto; }
.swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.swatch-choice {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: #fbfbfa;
  color: var(--ink);
  cursor: pointer;
  font-size: .86rem;
  white-space: nowrap;
}
.swatch-choice input[type="radio"] {
  width: auto;
  margin: 0;
  accent-color: #ff4b1f;
}
.swatch-choice input[type="color"] {
  width: 26px;
  min-height: 24px;
  border: 0;
  border-radius: 4px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.swatch-choice input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.swatch-choice input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgba(24, 33, 43, .22);
  border-radius: 4px;
}
.swatch-dot {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(24, 33, 43, .22);
  border-radius: 5px;
  flex: 0 0 auto;
}
.swatch-choice:has(input[type="radio"]:checked) {
  border-color: rgba(8, 125, 179, .55);
  box-shadow: 0 0 0 3px rgba(8, 125, 179, .12);
}
.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 12px 16px;
  min-height: 46px;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
.admin-button.light { background: #dfe5e8; color: var(--ink); }
.admin-button.danger { background: #8d2c1d; }
.admin-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-actions form { margin: 0; }
.notice { border-left: 4px solid var(--blue); padding: 12px 14px; background: #e9f4f8; margin-bottom: 16px; }
.error { border-left-color: #8d2c1d; background: #fbebe8; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table-panel { overflow-x: auto; }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.table-actions form { margin: 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  display: block;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(10, 20, 41, .98);
  backdrop-filter: blur(18px) saturate(1.18);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  z-index: 9;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.mobile-nav.active {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}

.mobile-nav a {
  padding: 12px 16px;
  color: var(--white);
  text-decoration: none;
  opacity: .78;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: opacity 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, .06);
}

@media (max-width: 900px) {
  .nav { min-height: 58px; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .hero {
    min-height: 84vh;
    background: linear-gradient(0deg, rgba(8, 12, 16, .86), rgba(8, 12, 16, .32)), url("hero-sportunterricht-neon.jpg") 34% center / cover no-repeat;
  }
  .section-heading, .profile { grid-template-columns: 1fr; }
  .materials-layout { grid-template-columns: 160px 1fr; }
  .link-grid, .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .nav,
  .hero-inner,
  .section,
  .profile,
  .footer-inner,
  .admin-wrap {
    width: min(100% - 24px, 1160px);
  }

  .site-header {
    background: rgba(10, 20, 41, .9);
  }

  .nav {
    min-height: 54px;
    width: calc(100% - 20px);
    gap: 10px;
  }

  .brand {
    max-width: 100%;
    font-size: clamp(.82rem, 5vw, .98rem);
    line-height: 1.1;
    white-space: nowrap;
  }

  .hero {
    min-height: 78svh;
    background-position: center top;
  }

  .hero-inner {
    padding: 88px 0 42px;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: .74rem;
    line-height: 1.35;
    letter-spacing: .06em;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(1.75rem, 8.4vw, 3.15rem);
    line-height: .94;
    overflow-wrap: normal;
    word-break: normal;
    white-space: nowrap;
  }

  .hero-copy {
    max-width: 100%;
    margin-top: 20px;
    font-size: .96rem;
    line-height: 1.5;
    hyphens: auto;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 26px;
  }

  .hero-actions, .button { width: 100%; }
  .button { min-height: 52px; padding: 0 14px; }

  .section {
    padding: 48px 0;
  }

  .section-heading {
    gap: 16px;
    margin-bottom: 22px;
  }

  h2 {
    font-size: clamp(1.85rem, 9vw, 2.55rem);
    line-height: 1.04;
  }

  .section-heading p {
    font-size: .98rem;
    line-height: 1.6;
  }

  .link-grid, .form-grid { grid-template-columns: 1fr; }
  .materials-layout { grid-template-columns: 1fr; }
  .category-filter { position: relative; top: auto; margin-bottom: 16px; }
  .search-box { margin-bottom: 12px; }
  .resource-card {
    min-height: 0;
    padding: 18px;
  }

  .resource-card h3 {
    margin-top: 22px;
    font-size: 1.18rem;
  }

  .resource-card p {
    font-size: .96rem;
  }

  .resource-card small {
    margin-top: 18px;
    font-size: .82rem;
  }

  .tag {
    min-height: 26px;
    font-size: .72rem;
  }

  .arrow {
    width: 32px;
    height: 32px;
  }

  .profile {
    gap: 26px;
    padding: 46px 0;
  }

  .profile p {
    font-size: 1rem;
    line-height: 1.62;
  }

  .contact-panel {
    padding-left: 18px;
  }

  .footer-inner, .admin-top { align-items: flex-start; flex-direction: column; }
  .footer-inner {
    gap: 18px;
    min-height: 0;
  }

  .footer-copy {
    font-size: .94rem;
  }

  .footer-logo { width: 82px; height: 82px; }

  .admin-wrap {
    padding: 24px 0;
  }

  .admin-top {
    gap: 14px;
  }

  .admin-actions,
  .admin-actions form,
  .admin-button {
    width: 100%;
  }

  .table-actions {
    min-width: 180px;
  }

  .table-actions .admin-button {
    width: 100%;
  }

  .panel {
    padding: 18px;
  }

  input,
  textarea {
    min-height: 48px;
    font-size: 16px;
  }

  th,
  td {
    padding: 12px;
  }
}

@media (max-width: 380px) {
  .nav {
    width: calc(100% - 16px);
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-copy {
    font-size: .9rem;
    line-height: 1.46;
  }

  .section-heading p,
  .profile p {
    font-size: .95rem;
  }

  .resource-card {
    padding: 16px;
  }
}

/* ==========================================================================
   Dark Morphism / Glassmorphic Resources Section
   ========================================================================== */

.resources-band {
  background: radial-gradient(circle at 50% 0%, #152232, #090e15 70%);
  color: var(--white);
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.resources-container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.section-heading-dark {
  margin-bottom: 40px;
  max-width: 680px;
}

.section-heading-dark h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3.6vw, 3.25rem);
  line-height: 1.05;
  margin: 0 0 12px;
}

.section-heading-dark p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.08rem;
  line-height: 1.6;
  margin: 0;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.resource-glass-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease, 
              background-color 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.resource-glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent, rgba(var(--res-tint-color-rgb, 0, 215, 232), 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.resource-glass-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(var(--res-tint-color-rgb, 0, 215, 232), 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
              0 0 30px rgba(var(--res-tint-color-rgb, 0, 215, 232), 0.15);
}

.card-image-wrapper {
  padding: 24px 24px 0;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(0, 0, 0, 0.2);
}

.card-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.resource-glass-card:hover .card-image {
  transform: scale(1.04) rotate(0.5deg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.card-image-placeholder {
  height: 220px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.2);
}

.placeholder-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 99px;
  padding: 0 10px;
  background: rgba(var(--res-tint-color-rgb, 0, 215, 232), 0.15);
  color: var(--res-tint-color, #00d7ff);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  align-self: start;
  border: 1px solid rgba(var(--res-tint-color-rgb, 0, 215, 232), 0.25);
  margin-bottom: 16px;
}

.resource-glass-card h3 {
  margin: 0 0 10px;
  font-size: 1.32rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.resource-glass-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
  line-height: 1.55;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  color: var(--res-tint-color, #00d7ff);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-arrow {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.resource-glass-card:hover .card-arrow {
  transform: translateX(6px);
}

.profile-info-footer {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
}

.profile-text strong {
  display: block;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 12px;
}

.profile-text p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}

.contact-box-glass {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-box-glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #00d7e8, #087db3);
}

.contact-box-glass .contact-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
}

.contact-box-glass .contact-name {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.contact-box-glass .contact-company {
  display: block;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
  margin-bottom: 20px;
}

.contact-box-glass .contact-email {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.2s ease;
}

.contact-box-glass .contact-email::after {
  content: " →";
  transition: transform 0.2s ease;
}

.contact-box-glass .contact-email:hover {
  color: #00d7e8;
}

.contact-box-glass .contact-email:hover::after {
  transform: translateX(4px);
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .profile-info-footer {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 48px;
    padding-top: 36px;
  }
}

@media (max-width: 640px) {
  .resources-band {
    padding: 56px 0;
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .card-image-wrapper, .card-image-placeholder {
    height: 180px;
  }
  
  .contact-box-glass {
    padding: 20px;
  }
}

