/*
Theme Name: DA6IT Block
Theme URI: https://da6it.de/
Author: DA6IT
Author URI: https://da6it.de/
Description: Helles, modernes Block-Theme für DA6IT.de – Amateurfunk, IT, Projekte, Config-Snippets und Guides. Vollständig für den WordPress Site Editor ausgelegt.
Version: 1.3.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: da6it-block
*/

:root {
  --da6it-green: #62c92d;
  --da6it-green-dark: #3d9d22;
  --da6it-cyan: #13b9c4;
  --da6it-teal: #079ba3;
  --da6it-ink: #173d38;
  --da6it-muted: #627b76;
  --da6it-line: #dcece8;
  --da6it-surface: #ffffff;
  --da6it-soft: #f4faf8;
  --da6it-soft-cyan: #f0fbfd;
  --da6it-radius: 22px;
  --da6it-shadow: 0 18px 50px rgba(28, 83, 72, .09);
}

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  text-underline-offset: .16em;
}

.wp-site-blocks {
  overflow: hidden;
}

.da6it-sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(25, 83, 72, .06);
}

.admin-bar .da6it-sticky-header {
  top: 32px;
}

.da6it-logo img {
  width: min(270px, 42vw);
  height: auto;
  display: block;
}

.da6it-hero {
  position: relative;
  overflow: hidden;
}

.da6it-hero::before,
.da6it-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(1px);
}

.da6it-hero::before {
  width: 420px;
  height: 420px;
  right: -130px;
  top: -170px;
  background: radial-gradient(circle, rgba(98,201,45,.17), rgba(98,201,45,0) 68%);
}

.da6it-hero::after {
  width: 360px;
  height: 360px;
  left: -150px;
  bottom: -190px;
  background: radial-gradient(circle, rgba(19,185,196,.13), rgba(19,185,196,0) 68%);
}

.da6it-eyebrow {
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
}

.da6it-card {
  height: 100%;
  border: 1px solid var(--da6it-line);
  border-radius: var(--da6it-radius);
  box-shadow: 0 8px 30px rgba(28, 83, 72, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.da6it-card:hover {
  transform: translateY(-4px);
  border-color: rgba(19,185,196,.42);
  box-shadow: var(--da6it-shadow);
}

.da6it-card .wp-block-post-title a {
  text-decoration: none;
}

.da6it-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  border: 1px solid var(--da6it-line);
  background: #fff;
}

.da6it-soft-section {
  border-top: 1px solid var(--da6it-line);
  border-bottom: 1px solid var(--da6it-line);
}

.da6it-service-card {
  border: 1px solid var(--da6it-line);
  border-radius: 18px;
}

.da6it-content {
  max-width: 860px;
}

.da6it-content pre {
  border-radius: 16px;
  border: 1px solid #cfe6e0;
  box-shadow: 0 8px 24px rgba(29, 82, 71, .06);
}

.da6it-content code:not(pre code) {
  border-radius: 7px;
  padding: .12em .38em;
  background: #edf9f6;
  color: #087d83;
}

.da6it-content blockquote {
  border-left: 4px solid var(--da6it-green);
  background: #f4faf8;
  padding: .9rem 1.25rem;
  border-radius: 0 14px 14px 0;
}

.da6it-archive-hero {
  border-bottom: 1px solid var(--da6it-line);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
  background: #fff;
}

.wp-block-button__link {
  transition: transform .18s ease, box-shadow .18s ease;
}

.wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 24px rgba(39, 132, 105, .14);
}

.wp-block-navigation a {
  text-decoration: none !important;
}

.wp-block-navigation a:hover {
  color: var(--da6it-teal);
}

.wp-block-post-terms a {
  text-decoration: none;
}

.wp-block-query-pagination {
  margin-top: 2.5rem;
}

@media (max-width: 782px) {
  .admin-bar .da6it-sticky-header { top: 46px; }
  .da6it-logo img { width: min(230px, 64vw); }
}


/* ==========================================================
   DA6IT Block 1.1 – visual polish
   ========================================================== */

.da6it-hero-grid {
  position: relative;
  z-index: 2;
}

.da6it-hero-panel {
  border: 1px solid rgba(19,185,196,.20);
  background: rgba(255,255,255,.72);
  box-shadow: 0 20px 70px rgba(29, 88, 76, .09);
  backdrop-filter: blur(12px);
  border-radius: 28px;
}

.da6it-stat-grid {
  margin-top: 2rem;
}

.da6it-stat {
  min-height: 94px;
  border: 1px solid var(--da6it-line);
  border-radius: 18px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 8px 30px rgba(28,83,72,.045);
}

.da6it-stat strong {
  color: var(--da6it-ink);
  font-size: 1.06rem;
}

.da6it-query-card {
  overflow: hidden;
}

.da6it-query-card .wp-block-post-featured-image {
  margin: -1.35rem -1.35rem 1.2rem;
  overflow: hidden;
  border-radius: 21px 21px 0 0;
}

.da6it-query-card .wp-block-post-featured-image img {
  width: 100%;
  transition: transform .25s ease;
}

.da6it-query-card:hover .wp-block-post-featured-image img {
  transform: scale(1.025);
}

.da6it-query-card .wp-block-post-terms {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.da6it-query-card .wp-block-post-terms a {
  display: inline-block;
  padding: .25rem .62rem;
  border-radius: 999px;
  background: #eff9f6;
  border: 1px solid #d9eee8;
  font-weight: 700;
  font-size: .78rem;
}

.da6it-project-hero {
  border-bottom: 1px solid var(--da6it-line);
  position: relative;
  overflow: hidden;
}

.da6it-project-hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -120px;
  top: -170px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(98,201,45,.15), rgba(98,201,45,0) 70%);
  pointer-events: none;
}

.da6it-project-shell {
  position: relative;
  z-index: 1;
}

.da6it-project-content {
  background: #fff;
  border: 1px solid var(--da6it-line);
  border-radius: 24px;
  padding: clamp(1.35rem, 3vw, 2.6rem);
  box-shadow: 0 16px 50px rgba(28,83,72,.06);
}

.da6it-project-content > .wp-block-post-content {
  margin-block-start: 0;
}

.da6it-project-content h2 {
  padding-top: .35rem;
}

.da6it-project-content ul {
  padding-left: 1.35rem;
}

.da6it-project-content li::marker {
  color: var(--da6it-green-dark);
}

.da6it-service-grid .wp-block-column {
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.13);
  border-radius: 18px;
  padding: 1.15rem;
  backdrop-filter: blur(8px);
}

.da6it-service-grid a {
  color: #fff !important;
  font-weight: 750;
}

.da6it-screenshot-frame {
  border: 1px solid var(--da6it-line);
  border-radius: 20px;
  padding: .55rem;
  background: #fff;
  box-shadow: 0 16px 44px rgba(28,83,72,.08);
}

.da6it-screenshot-frame img {
  border-radius: 14px;
  display: block;
}

.da6it-note {
  border: 1px solid #cfe9e2;
  background: linear-gradient(135deg, #f4faf8, #f0fbfd);
  border-radius: 18px;
  padding: 1.2rem 1.35rem;
}

.da6it-note strong {
  color: var(--da6it-green-dark);
}

.da6it-code-intro {
  border-left: 4px solid var(--da6it-cyan);
  padding-left: 1rem;
}

@media (max-width: 900px) {
  .da6it-main-nav {
    font-size: .9rem;
  }
}

@media (max-width: 782px) {
  .da6it-project-content {
    border-radius: 18px;
    padding: 1.15rem;
  }

  .da6it-stat {
    min-height: auto;
  }
}


/* ==========================================================
   DA6IT Block 1.2 – compact project hero
   ========================================================== */

.da6it-project-hero {
  padding-top: clamp(2rem, 4vw, 3.6rem) !important;
  padding-bottom: clamp(2rem, 4vw, 3.4rem) !important;
}

.da6it-project-hero-grid {
  position: relative;
  z-index: 2;
  gap: clamp(1.8rem, 4vw, 4rem) !important;
}

.da6it-project-hero-copy .wp-block-post-title {
  font-family: var(--wp--preset--font-family--da6it-sans) !important;
  font-size: clamp(2.15rem, 4.3vw, 3.8rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.045em !important;
  margin-top: .7rem !important;
  margin-bottom: 1rem !important;
}

.da6it-project-hero-copy .wp-block-post-excerpt {
  font-family: var(--wp--preset--font-family--da6it-sans) !important;
  font-size: clamp(1rem, 1.6vw, 1.2rem) !important;
  line-height: 1.55 !important;
  max-width: 620px;
}

.da6it-project-hero-copy .wp-block-post-excerpt p {
  margin-bottom: 0;
}

.da6it-project-hero-copy .wp-block-post-terms {
  font-family: var(--wp--preset--font-family--da6it-sans) !important;
  font-size: .82rem !important;
}

.da6it-project-hero-image {
  margin: 0 !important;
  padding: .55rem;
  border: 1px solid var(--da6it-line);
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 50px rgba(28,83,72,.10);
}

.da6it-project-hero-image img {
  width: 100%;
  height: auto;
  max-height: 390px;
  object-fit: contain !important;
  border-radius: 15px;
}

.da6it-project-body {
  padding-top: clamp(1.6rem, 3vw, 2.6rem) !important;
}

.da6it-project-body .da6it-project-content {
  max-width: 1120px;
}

@media (max-width: 781px) {
  .da6it-project-hero-copy .wp-block-post-title {
    font-size: clamp(2rem, 10vw, 3rem) !important;
  }

  .da6it-project-hero-image img {
    max-height: none;
  }
}


/* ==========================================================
   DA6IT Block 1.3 – minimal project hero
   ========================================================== */
.da6it-project-hero {
  padding-top: clamp(1.6rem, 3vw, 2.7rem) !important;
  padding-bottom: clamp(1.6rem, 3vw, 2.7rem) !important;
}
.da6it-project-hero-grid {
  gap: clamp(1.35rem, 3vw, 3rem) !important;
}
.da6it-project-hero-copy .wp-block-post-title {
  margin: 0 0 .75rem !important;
  font-family: var(--wp--preset--font-family--da6it-sans) !important;
  font-size: clamp(2rem, 3.6vw, 3.25rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.04em !important;
}
.da6it-project-hero-copy .wp-block-post-excerpt {
  margin: 0 !important;
  max-width: 580px;
  font-family: var(--wp--preset--font-family--da6it-sans) !important;
  font-size: clamp(.98rem, 1.3vw, 1.08rem) !important;
  line-height: 1.5 !important;
  color: #58736e !important;
}
.da6it-project-hero-copy .wp-block-post-excerpt p {
  margin: 0 !important;
}
.da6it-project-hero-image {
  margin: 0 !important;
  padding: .4rem !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 38px rgba(28,83,72,.08) !important;
}
.da6it-project-hero-image img {
  max-height: 285px !important;
  object-fit: contain !important;
  border-radius: 12px !important;
}
.da6it-project-body {
  padding-top: clamp(1.2rem, 2.2vw, 2rem) !important;
}
@media (max-width: 781px) {
  .da6it-project-hero-copy .wp-block-post-title {
    font-size: clamp(1.9rem, 9vw, 2.7rem) !important;
  }
  .da6it-project-hero-image img {
    max-height: none !important;
  }
}
