/* ==========================================================================
   LOCAL WEB FONTS – Plus Jakarta Sans (100 % DSGVO-konform, 0 externe Aufrufe)
   ========================================================================== */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Young Smarthome Solutions (YSS) — Design System
   CI der Dachmarke Young Solutions: Pure White Canvas, Navy (#133A56) & Green (#4D9E45)
   ========================================================================== */

:root {
  /* Brand Colors */
  --ys-navy: #133A56;
  --ys-navy-dark: #0B2538;
  --ys-navy-light: #1E4E70;
  --ys-navy-tint: #F0F5F9;

  --ys-green: #4D9E45;
  --ys-green-dark: #3B8234;
  --ys-green-light: #64B65B;
  --ys-green-tint: #F2F9F1;

  /* Accent Colors */
  --blue-accent: #075593;
  --blue-tint: #EEF6FC;
  --amber-dark: #B45309;
  --amber-bg: #FFFBEB;
  --amber-border: #FDE68A;

  /* Neutrals & Borders */
  --bg-white: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --text-main: #132939;
  --text-muted: #526675;
  --text-light: #7B8E9D;
  --border-light: #E4ECF2;
  --border-hover: #CBD5E1;

  /* Shadows */
  --shadow-xs: 0 2px 6px rgba(19, 58, 86, 0.04);
  --shadow-sm: 0 6px 20px rgba(19, 58, 86, 0.06);
  --shadow-md: 0 14px 36px rgba(19, 58, 86, 0.09);
  --shadow-lg: 0 24px 54px rgba(19, 58, 86, 0.13);
  --shadow-green: 0 10px 24px rgba(77, 158, 69, 0.22);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --container-max: 1140px;
  --transition: 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-white);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-white);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ys-green);
  outline-offset: 3px;
  border-radius: 4px;
}

section[id],
article[id] {
  scroll-margin-top: 90px;
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section--subtle {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 3.2rem;
  text-align: center;
}

/* Eyebrow & Badges */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ys-green-dark);
  background-color: var(--ys-green-tint);
  border: 1px solid rgba(77, 158, 69, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.eyebrow__node {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--ys-green);
  background: var(--bg-white);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.34rem 0.8rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot--wip {
  background-color: var(--amber-dark);
  box-shadow: 0 0 0 2px rgba(180, 83, 9, 0.25);
  animation: pulse-dot 2s infinite ease-in-out;
}

.status-dot--live {
  background-color: var(--ys-green);
  box-shadow: 0 0 0 2px rgba(77, 158, 69, 0.25);
}

.status-badge--wip {
  background: var(--amber-bg);
  color: var(--amber-dark);
  border: 1px solid var(--amber-border);
}

.status-badge--live {
  background: var(--ys-green-tint);
  color: var(--ys-green-dark);
  border: 1px solid rgba(77, 158, 69, 0.28);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

h1, h2, h3 {
  color: var(--ys-navy);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.h1-hero {
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  line-height: 1.18;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-line {
  display: block;
}

.h2-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin-bottom: 0.85rem;
}

.h3-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.lead {
  font-size: clamp(1.04rem, 1.35vw, 1.18rem);
  color: var(--text-muted);
  line-height: 1.7;
}

.text-green {
  color: var(--ys-green);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 0.78rem 1.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background-color: var(--ys-green);
  color: #FFFFFF;
  box-shadow: var(--shadow-green);
}

.btn--primary:hover {
  background-color: var(--ys-green-dark);
  transform: translateY(-2px);
}

.btn--outline {
  background-color: var(--bg-white);
  color: var(--ys-navy);
  border-color: var(--border-hover);
}

.btn--outline:hover {
  border-color: var(--ys-navy);
  background-color: var(--bg-subtle);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--ys-navy);
}

.nav-link--highlight {
  color: var(--ys-navy);
  font-weight: 700;
}

.nav-link--highlight:hover {
  color: var(--ys-green-dark);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ys-navy);
  padding: 0.5rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
}

.mobile-nav.is-open {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  padding: 1.2rem 1.5rem;
  gap: 1rem;
}

.mobile-nav a {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ys-navy);
}

/* ==========================================================================
   Hero Section (mit Banner-Hintergrund der Dachseite)
   ========================================================================== */

.hero {
  padding: 5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-white);
  background-image: 
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.92) 50%, rgba(248, 250, 252, 0.7) 80%, rgba(230, 244, 236, 0.4) 100%),
    url('assets/hero-banner.webp');
  background-size: cover;
  background-position: center 25%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* Hero Showcase Card (exakt wie Dachseite) */
.hero-hub-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.hero-hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

.hub-card__title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ys-navy);
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-preview-img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.2rem;
  border: 1px solid var(--border-light);
  max-height: 175px;
}

.hero-preview-img-wrap img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  object-position: center 28%;
}

.hub-card__info-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  margin-top: 1rem;
}

.hub-card__info-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

.hub-card__info-box p:last-child {
  margin-bottom: 0;
}

.hub-card__info-box strong {
  color: var(--ys-navy);
}

/* ==========================================================================
   Pillars / Kernkompetenzen (3 Säulen wie Dachseite)
   ========================================================================== */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.pillar-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ys-green), var(--ys-navy));
  opacity: 0;
  transition: opacity var(--transition);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ys-green-tint);
  color: var(--ys-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  font-size: 1.35rem;
}

.pillar-card:nth-child(2) .pillar-icon {
  background: var(--ys-navy-tint);
  color: var(--ys-navy);
}

.pillar-card:nth-child(3) .pillar-icon {
  background: var(--amber-bg);
  color: var(--amber-dark);
}

.pillar-card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.6rem;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ==========================================================================
   Über Dr.-Ing. Manuel Jung
   ========================================================================== */

.about-box {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
}

.about-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light);
}

.about-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-text h2 {
  margin-bottom: 0.35rem;
}

.about-subtitle {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ys-green-dark);
  margin-bottom: 1.1rem;
}

.about-text p {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.9rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Kontakt (Schlicht & Ohne Formular – exakt wie Dachseite)
   ========================================================================== */

.contact-simple {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.contact-channels {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ys-navy);
}

.contact-channel a:hover {
  color: var(--ys-green-dark);
  text-decoration: underline;
}

/* Dachmarke Hub Banner */
.ecosystem-banner {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.6rem 2rem;
  margin-top: 4rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ecosystem-banner__text {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.ecosystem-banner__text strong {
  color: var(--ys-navy);
}

.ecosystem-banner__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ecosystem-banner__link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ys-navy);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.ecosystem-banner__link:hover {
  background: var(--bg-white);
  border-color: var(--ys-navy);
  transform: translateY(-1px);
}

.ecosystem-banner__link--green {
  color: var(--ys-green-dark);
  background: var(--ys-green-tint);
  border-color: rgba(77, 158, 69, 0.25);
}

.ecosystem-banner__link--green:hover {
  background: var(--bg-white);
  border-color: var(--ys-green);
}

/* ==========================================================================
   Legal Pages (Impressum & Datenschutz)
   ========================================================================== */

.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.legal-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-xs);
  margin-top: 1.5rem;
}

.legal-card h2 {
  font-size: 1.2rem;
  margin: 1.8rem 0 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.legal-card h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0.2rem;
}

.legal-card h3 {
  font-size: 1rem;
  margin: 1.1rem 0 0.4rem;
}

.legal-card p,
.legal-card li {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.7rem;
}

.legal-card ul {
  padding-left: 1.3rem;
  list-style: disc;
  margin-bottom: 1rem;
}

.legal-card a {
  color: var(--ys-navy);
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--ys-navy);
  transform: translateX(-3px);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 2.5rem 0;
  font-size: 0.86rem;
  color: var(--text-light);
  background: var(--bg-white);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: var(--text-muted);
  font-weight: 600;
}

.footer-legal-links a:hover {
  color: var(--ys-navy);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero-grid,
  .about-box {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 240px;
    margin: 0 auto;
  }

  .about-box {
    text-align: center;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 3.5rem 0 4rem;
  }

  .h1-hero {
    font-size: clamp(1.75rem, 7.5vw, 2.3rem);
    line-height: 1.2;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-hub-card {
    padding: 1.5rem 1.25rem;
  }

  .section {
    padding: 3.8rem 0;
  }

  .contact-channels {
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
  }

  .ecosystem-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
