/*
Theme Name: EnergieNetzwerk
Theme URI: https://energie-netzwerk.org/
Author: EnergieNetzwerk
Author URI: https://energie-netzwerk.org/
Description: Block Theme MVP fuer energie-netzwerk.org mit Verzeichnis fuer Energieberater, News-Fokus und vertrauenswuerdigem, mobile-first Design.
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 7.4
Version: 0.1.0
Text Domain: energienetzwerk
Tags: full-site-editing, block-patterns, custom-logo, custom-menu, featured-images, news
*/

:root {
  --en-color-primary: #0e7a4b;
  --en-color-secondary: #1f2937;
  --en-color-accent: #f59e0b;
  --en-color-surface: #f8fafc;
  --en-color-surface-strong: #ffffff;
  --en-color-border: #dbe4ea;
  --en-color-text-soft: #52606d;
  --en-shadow-soft: 0 20px 40px rgba(15, 23, 42, 0.08);
  --en-shadow-card: 0 16px 32px rgba(14, 122, 75, 0.08);
  --en-radius-sm: 12px;
  --en-radius-md: 20px;
  --en-radius-lg: 28px;
}

body {
  text-wrap: pretty;
}

a {
  text-underline-offset: 0.18em;
}

.wp-site-blocks {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.1), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 46%, #f5f8f7 100%);
}

.en-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 228, 234, 0.9);
}

.en-header-brand {
  letter-spacing: 0.02em;
}

.wp-block-site-logo img,
.custom-logo {
  display: block;
  width: 100%;
  height: auto;
}

.wp-block-site-logo {
  line-height: 0;
}

.en-site-header .wp-block-site-logo {
  flex: 0 1 auto;
  width: min(360px, 42vw);
}

.en-site-header .wp-block-navigation {
  flex: 1 1 auto;
  width: auto;
  margin-left: auto;
}

.en-header-row {
  gap: 1.25rem;
}

.en-header-row > .wp-block-navigation {
  min-width: 0;
}

.en-header-row .wp-block-navigation__container {
  justify-content: flex-end;
}

@media (max-width: 781px) {
  .en-site-header .wp-block-site-logo {
    width: min(280px, 58vw);
  }
}

.en-hero-card,
.en-surface-card,
.en-berater-card,
.en-news-card,
.en-profile-grid,
.en-filter-panel,
.en-stat-card {
  border: 1px solid var(--en-color-border);
  border-radius: var(--en-radius-md);
  background: var(--en-color-surface-strong);
  box-shadow: var(--en-shadow-card);
}

.en-hero-card {
  overflow: hidden;
}

.en-hero-accent {
  position: relative;
}

.en-hero-accent::after {
  content: "";
  position: absolute;
  inset: auto -8% -18% auto;
  width: 200px;
  height: 200px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0));
  pointer-events: none;
}

.en-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(14, 122, 75, 0.1);
  color: var(--en-color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.en-filter-panel {
  padding: 1.25rem;
}

.en-filter-form {
  display: grid;
  gap: 1rem;
}

.en-filter-grid {
  display: grid;
  gap: 0.85rem;
}

.en-filter-field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--en-color-secondary);
  font-size: 0.95rem;
  font-weight: 600;
}

.en-filter-field input,
.en-filter-field select,
.en-filter-field textarea {
  width: 100%;
  border: 1px solid #bfd0c6;
  border-radius: var(--en-radius-sm);
  background: #ffffff;
  color: var(--en-color-secondary);
  padding: 0.9rem 1rem;
  font: inherit;
}

.en-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.en-button,
.wp-block-button__link {
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.en-button:hover,
.en-button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(14, 122, 75, 0.18);
}

.en-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--en-color-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--en-color-secondary);
  font-weight: 600;
  text-decoration: none;
}

.en-berater-card,
.en-news-card {
  height: 100%;
  overflow: hidden;
}

.en-card-meta,
.en-profile-list,
.en-status-row {
  display: grid;
  gap: 0.9rem;
}

.en-card-meta-item,
.en-profile-item {
  display: grid;
  gap: 0.25rem;
}

.en-card-label,
.en-profile-label {
  color: var(--en-color-text-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.en-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.en-status-frei {
  background: rgba(14, 122, 75, 0.12);
  color: var(--en-color-primary);
}

.en-status-begrenzt {
  background: rgba(245, 158, 11, 0.16);
  color: #9a6700;
}

.en-status-ausgebucht {
  background: rgba(185, 28, 28, 0.12);
  color: #b91c1c;
}

.en-empty-state {
  padding: 2rem;
  border: 1px dashed #bfd0c6;
  border-radius: var(--en-radius-md);
  background: rgba(255, 255, 255, 0.7);
}

.en-profile-grid {
  padding: 1.5rem;
}

.en-profile-columns {
  display: grid;
  gap: 1.2rem;
}

.en-taxonomy-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.en-taxonomy-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.08);
  color: var(--en-color-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

.en-footer-note {
  color: rgba(255, 255, 255, 0.78);
}

.en-footer-links a {
  color: #ffffff;
}

@media (min-width: 782px) {
  .en-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .en-profile-columns {
    grid-template-columns: 1.3fr 1fr;
  }
}
