/* ============================================
   LokalKI-Explorer – Technische Übersicht
   An Hauptseite angepasst (styles.css)
   ============================================ */

.page-technik {
  background: var(--color-bg-alt);
}

/* Tech Hero – wie Hauptseite Hero (Navy + Cyan-Glow) */
.tech-hero {
  text-align: center;
  padding: 3rem 0 4rem;
}

.tech-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 4.5vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.tech-hero > .container > p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

/* Badges wie hero-badges */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-badges span {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #ffffff;
}

.tech-badges span i {
  margin-right: 0.4rem;
  color: var(--color-cyan-accent);
}

.tech-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.tech-toc a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.tech-toc a:hover {
  color: var(--color-cyan-accent);
}

/* Sektionen – wie features, licenses, requirements */
.tech-section {
  padding: 4rem 0;
  background: var(--color-bg);
}

.tech-section-alt {
  background: var(--color-bg-alt);
}

.tech-section h2 {
  font-family: var(--font-main);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-section h2 i {
  color: var(--color-cyan-accent);
}

.tech-lead {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Cards – wie feature-card */
.tech-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.tech-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.tech-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.tech-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.4);
}

.tech-section-alt .tech-card {
  background: #ffffff;
}

.tech-card-highlight {
  background: rgba(34, 211, 238, 0.03);
  border-color: rgba(34, 211, 238, 0.25);
}

.tech-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-navy-bg);
}

.tech-card p {
  font-size: 0.9375rem;
  color: #475569;
  margin: 0;
  line-height: 1.6;
}

.tech-card ul {
  margin: 0;
  padding-left: 1.25rem;
}

.tech-card li {
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
  color: #475569;
}

.tech-card pre {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.8125rem;
  background: var(--color-navy-bg);
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 0;
}

/* Badge wie Hauptseite (Navy-Hintergrund) */
.tech-badge {
  display: inline-block;
  background: var(--color-navy-bg);
  color: #ffffff;
  font-family: 'Consolas', monospace;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

/* Dateisuche – Details (expandable wie features) */
.tech-details {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.tech-details summary {
  cursor: pointer;
  color: var(--color-cyan-accent);
  font-weight: 500;
  padding: 0.35rem 0;
  user-select: none;
}

.tech-details summary:hover {
  text-decoration: underline;
}

.tech-details-content {
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.tech-details-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy-bg);
  margin: 0.75rem 0 0.25rem;
}

.tech-details-content h4:first-child {
  margin-top: 0;
}

.tech-details-content p {
  font-size: 0.875rem;
  color: #475569;
  margin: 0 0 0.5rem;
}

.tech-details-content code {
  font-family: 'Consolas', monospace;
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* Tabelle – wie license-table vereinfacht */
.tech-table {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
}

.tech-table th,
.tech-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.tech-table th {
  background: var(--color-navy-bg);
  color: #ffffff;
  font-weight: 600;
}

.tech-table .check {
  color: var(--color-cyan-accent);
  font-weight: 700;
}

.tech-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

/* Formate – wie format-category */
.tech-format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.tech-format-category {
  background: #ffffff;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s;
}

.tech-format-category:hover {
  border-color: rgba(34, 211, 238, 0.4);
}

.tech-format-category h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy-bg);
  margin-bottom: 0.5rem;
}

.tech-format-category p {
  font-size: 0.8125rem;
  color: #475569;
  margin: 0;
  font-family: 'Consolas', monospace;
}

.tech-link {
  color: var(--color-cyan-accent);
  text-decoration: none;
  font-weight: 500;
}

.tech-link:hover {
  text-decoration: underline;
}

/* Datenfluss – wie ps-solution-box */
.tech-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tech-flow-item {
  background: var(--color-bg-alt);
  padding: 1.25rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--color-cyan-accent);
  font-size: 0.9375rem;
  color: #475569;
}

/* Responsive */
@media (max-width: 768px) {
  .tech-grid-2 {
    grid-template-columns: 1fr;
  }
}
