/*
 Theme Name:   DEGA-IT Child
 Theme URI:    https://www.dega-it.de
 Description:  DEGA-IT Child Theme basierend auf Blocksy
 Author:       DEGA-IT Dennis Gase
 Author URI:   https://www.dega-it.de
 Template:     blocksy
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  dega-it-child
*/

/* =====================================================
   CI-FARBEN & TOKENS
   ===================================================== */
:root {
  --dega-ink:        #0B1220;
  --dega-ink-2:      #121d33;
  --dega-paper:      #F5F6FA;
  --dega-white:      #FFFFFF;
  --dega-blue:       #2F6FED;
  --dega-blue-deep:  #15387A;
  --dega-amber:      #F5A623;
  --dega-amber-deep: #C97B0E;
  --dega-slate:      #4B5668;
  --dega-mist:       #9AA6BC;
  --dega-radius:     14px;
  --dega-maxw:       1180px;

  /* Blocksy-Variablen überschreiben */
  --theme-palette-color-1: #2F6FED;
  --theme-palette-color-2: #15387A;
  --theme-palette-color-3: #F5A623;
  --theme-palette-color-4: #0B1220;
  --theme-palette-color-5: #4B5668;
  --theme-palette-color-6: #9AA6BC;
  --theme-palette-color-7: #F5F6FA;
  --theme-palette-color-8: #FFFFFF;
}

/* =====================================================
   TYPOGRAFIE
   ===================================================== */
body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dega-ink);
  background: var(--dega-paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title {
  font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

code, pre, .mono {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
}

/* =====================================================
   GLOBALE HILFSKLASSEN
   ===================================================== */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow .dot { color: var(--dega-amber); }
.eyebrow.on-dark { color: var(--dega-mist); }
.eyebrow.on-light { color: var(--dega-blue-deep); }

/* =====================================================
   BUTTONS
   ===================================================== */
.wp-block-button .wp-block-button__link,
.btn,
a.btn {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
}
.wp-block-button .wp-block-button__link:hover,
.btn:hover { transform: translateY(-1px); }

/* Primary (Orange) */
.wp-block-button.is-style-primary .wp-block-button__link,
.btn-primary {
  background: linear-gradient(135deg, #F5A623, #f0871f);
  color: #1a1100 !important;
  box-shadow: 0 8px 24px -8px rgba(245,166,35,0.55);
}
.wp-block-button.is-style-primary .wp-block-button__link:hover,
.btn-primary:hover {
  box-shadow: 0 10px 28px -6px rgba(245,166,35,0.7);
}

/* Ghost Dark */
.btn-ghost-dark {
  border-color: rgba(255,255,255,0.25);
  color: #fff !important;
  background: transparent;
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.08); }

/* Ghost Light */
.btn-ghost-light {
  border-color: rgba(11,18,32,0.18);
  color: var(--dega-ink) !important;
  background: transparent;
}
.btn-ghost-light:hover { background: rgba(11,18,32,0.05); }

/* =====================================================
   HEADER
   ===================================================== */
.site-header,
#site-header {
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled,
#site-header.scrolled {
  background: rgba(11,18,32,0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

/* Blocksy Header Nav-Links */
.ct-header .ct-menu > li > a {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  color: #dfe4ee;
  position: relative;
}
.ct-header .ct-menu > li > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px; height: 2px;
  background: linear-gradient(90deg, var(--dega-blue), var(--dega-amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.ct-header .ct-menu > li > a:hover::after,
.ct-header .ct-menu > li.current-menu-item > a::after {
  transform: scaleX(1);
}

/* =====================================================
   HERO-SEKTION (Custom Block / Cover)
   ===================================================== */
.dega-hero,
.wp-block-cover.dega-hero {
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(47,111,237,0.30), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 30%,  rgba(245,166,35,0.14), transparent 60%),
    #0B1220;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 100px 0 0;
}

.dega-hero h1,
.dega-hero .hero-headline {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 700;
  color: #fff;
}

.dega-hero .hl {
  background: linear-gradient(100deg, var(--dega-blue) 10%, var(--dega-amber) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dega-hero .lead {
  color: var(--dega-mist);
  font-size: 1.12rem;
  max-width: 46ch;
}

/* Trust-Strip */
.dega-trust-strip {
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 60px;
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}
.dega-trust-item .v {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--dega-amber);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: block;
}
.dega-trust-item .l {
  color: var(--dega-mist);
  font-size: .86rem;
}

/* =====================================================
   SEKTIONS-ALLGEMEIN
   ===================================================== */
.dega-section { padding: 100px 0; }
.dega-section.bg-white { background: var(--dega-white); }
.dega-section.bg-dark {
  background: var(--dega-ink);
  color: #fff;
}
.dega-section.tight { padding: 80px 0; }

.dega-section-head { max-width: 640px; margin-bottom: 56px; }
.dega-section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
}
.dega-section-head p {
  color: var(--dega-slate);
  font-size: 1.05rem;
  margin: 0;
}

/* =====================================================
   STEPS / VORGEHEN
   ===================================================== */
.dega-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.dega-step-card {
  background: var(--dega-white);
  border: 1px solid #E7E9F0;
  border-radius: var(--dega-radius);
  padding: 30px 26px;
}

.dega-step-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--dega-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 20px;
  border: 3px solid var(--dega-paper);
  box-shadow: 0 0 0 2px var(--dega-ink);
}

.dega-step-card h3 {
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.dega-step-card p {
  color: var(--dega-slate);
  font-size: .97rem;
  margin: 0;
}

/* =====================================================
   FEATURED CARD (Hauptleistung IT-Beratung)
   ===================================================== */
.dega-featured-card {
  background: linear-gradient(135deg, var(--dega-ink) 0%, var(--dega-blue-deep) 130%);
  color: #fff;
  border-radius: 18px;
  padding: 46px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
}
.dega-featured-card::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(245,166,35,0.35), transparent 70%);
  pointer-events: none;
}
.dega-featured-card .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dega-amber);
  display: block;
  margin-bottom: 10px;
}
.dega-featured-card h3 {
  font-size: 1.7rem;
  margin-bottom: 12px;
  font-weight: 600;
}
.dega-featured-card p {
  color: var(--dega-mist);
  max-width: 54ch;
  margin-bottom: 0;
  font-size: 1.02rem;
}

/* =====================================================
   SUB-SERVICE CARDS
   ===================================================== */
.dega-sub-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.dega-sub-card {
  background: var(--dega-white);
  border: 1px solid #E7E9F0;
  border-radius: 12px;
  padding: 24px 22px;
  transition: border-color .15s ease, transform .15s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.dega-sub-card:hover {
  border-color: var(--dega-blue);
  transform: translateY(-2px);
}
.dega-sub-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.04rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--dega-ink);
}
.dega-sub-card p {
  color: var(--dega-slate);
  font-size: .92rem;
  margin: 0 0 14px;
}
.dega-sub-card .more {
  font-size: .86rem;
  font-weight: 600;
  color: var(--dega-blue-deep);
}

/* =====================================================
   FACT-LIST (Über uns)
   ===================================================== */
.dega-fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dega-fact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid #E7E9F0;
}
.dega-fact-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.dega-fact-list .mark {
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--dega-blue), var(--dega-amber));
}
.dega-fact-list strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  margin-bottom: 3px;
}
.dega-fact-list span {
  color: var(--dega-slate);
  font-size: .94rem;
}

/* =====================================================
   CTA-BAND
   ===================================================== */
.dega-cta-band {
  background: var(--dega-ink);
  color: #fff;
  padding: 80px 0;
}
.dega-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.dega-cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
  color: #fff;
}
.dega-cta-inner p { color: var(--dega-mist); margin: 0; max-width: 42ch; }
.dega-cta-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dega-cta-contacts a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .95rem;
  color: #fff;
  text-decoration: none;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer,
#colophon {
  background: #080D18;
  color: var(--dega-mist);
}
.site-footer .footer-logo { height: 30px; margin-bottom: 16px; }
.site-footer h5,
.site-footer .widget-title {
  font-family: 'IBM Plex Mono', monospace;
  color: #fff;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer a { color: var(--dega-mist); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .84rem;
}

/* =====================================================
   REVEAL-ANIMATION
   ===================================================== */
.dega-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.dega-reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .dega-reveal { opacity: 1; transform: none; transition: none; }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 980px) {
  .dega-steps { grid-template-columns: 1fr; }
  .dega-sub-services { grid-template-columns: 1fr; }
  .dega-featured-card { grid-template-columns: 1fr; }
  .dega-cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .dega-section { padding: 70px 0; }
}
