/* ═══════════════════════════════════════════════════
   Da-Jimbo.de – Template CSS
   Farben & Abstände werden via CSS-Variablen
   aus den Joomla Template-Parametern gesetzt.
   ═══════════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); transition: color .2s; }
a:hover { color: var(--blue-lt); }

/* ── TYPOGRAFIE ── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

/* ── LAYOUT HELPERS ── */
.section {
  padding: var(--section-pad) 48px;
  max-width: var(--container-w);
  margin: 0 auto;
}
.section-wrapper { }
.section-wrapper--sky { background: var(--sky); }

.section-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.section-eyebrow::before {
  content: ''; width: 28px; height: 2px;
  background: var(--blue); border-radius: 1px; flex-shrink: 0;
}
h2.section-title {
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: -.025em; margin-bottom: 18px;
}
h2.section-title em { font-style: italic; color: var(--blue); }
.section-sub {
  font-size: 16px; line-height: 1.8; color: var(--ink-mid);
  max-width: 520px; margin-bottom: 64px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  padding: 14px 28px; border-radius: var(--radius-sm);
  text-decoration: none; transition: all .25s;
  letter-spacing: .01em; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--blue); color: white;
  box-shadow: 0 6px 24px color-mix(in srgb, var(--blue) 40%, transparent);
}
.btn-primary:hover {
  background: var(--blue-lt); color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px color-mix(in srgb, var(--blue) 50%, transparent);
}
.btn-outline {
  background: white; color: var(--teal);
  border: 1.5px solid var(--teal);
  box-shadow: 0 2px 12px rgba(15,31,46,.07);
}
.btn-outline:hover { background: var(--teal-pale); color: var(--teal); transform: translateY(-2px); }

/* ── HEADER ── */
header#j-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 72px; transition: background .4s, box-shadow .4s;
}
header#j-header.scrolled {
  background: rgba(244,248,251,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(15,31,46,.08);
}
.header-inner {
  max-width: var(--container-w); margin: 0 auto;
  padding: 0 48px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-img {
  max-height: 52px; width: auto;
  transition: opacity .2s;
}
.logo-img:hover { opacity: .85; }

/* Navigation */
#j-mainnav {
  display: flex; align-items: center; gap: 4px;
}
#j-mainnav a {
  font-size: 13px; font-weight: 400; color: var(--ink-mid);
  text-decoration: none; padding: 8px 16px;
  border-radius: var(--radius-sm); transition: color .2s, background .2s;
}
#j-mainnav a:hover,
#j-mainnav a.active {
  color: var(--blue); background: var(--blue-pale);
}
#j-mainnav .nav-cta,
#j-mainnav a[href*="contact"],
#j-mainnav a[href*="kontakt"] {
  background: var(--blue); color: white !important;
  font-weight: 500; margin-left: 8px;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--blue) 35%, transparent);
}
#j-mainnav .nav-cta:hover,
#j-mainnav a[href*="contact"]:hover,
#j-mainnav a[href*="kontakt"]:hover {
  background: var(--blue-lt) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: all .3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── HERO ── */
.hero {
  position: relative; height: 100vh; min-height: 700px;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -15%;
  background-image: var(--hero-bg);
  background-size: cover; background-position: center;
  will-change: transform;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg,
    rgba(244,248,251,.96) 0%,
    rgba(230,242,250,.88) 45%,
    rgba(13,79,122,.45) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--container-w); width: 100%;
  margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 1px solid var(--ink-faint);
  border-radius: 50px; padding: 6px 16px;
  font-size: 12px; color: var(--ink-mid);
  letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 2px 12px rgba(15,31,46,.07);
  margin-bottom: 28px;
  animation: fadeUp .8s ease both;
}
.hero-pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 6px color-mix(in srgb, var(--blue) 60%, transparent);
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.4)} }
h1.hero-h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 900; line-height: 1.02;
  letter-spacing: -.03em; margin-bottom: 24px;
  animation: fadeUp .8s .12s ease both;
}
h1.hero-h1 .italic { font-style: italic; color: var(--blue); }
h1.hero-h1 .teal   { color: var(--teal); }
.hero-desc {
  font-size: 17px; line-height: 1.75;
  color: var(--ink-mid); max-width: 440px;
  margin-bottom: 40px; animation: fadeUp .8s .22s ease both;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp .8s .32s ease both; }
.hero-modules, .hero-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; animation: fadeUp .8s .18s ease both;
}
.hero-card {
  background: white; border-radius: var(--radius);
  padding: 28px 24px; box-shadow: 0 8px 40px rgba(15,31,46,.11);
  transition: transform .3s, box-shadow .3s;
  border-bottom: 3px solid var(--hc-color, var(--blue-pale));
}
.hero-card:hover { transform: translateY(-6px); box-shadow: 0 24px 80px rgba(15,31,46,.16); }
.hero-card:nth-child(2),
.hero-card:nth-child(4) { transform: translateY(20px); }
.hero-card:nth-child(2):hover,
.hero-card:nth-child(4):hover { transform: translateY(14px); }
.hc-icon { font-size: 32px; margin-bottom: 12px; }
.hc-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.hc-desc { font-size: 12px; color: var(--ink-light); line-height: 1.5; }
.hc-tag {
  display: inline-block; margin-top: 12px;
  font-size: 10px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-pale);
  padding: 3px 10px; border-radius: 50px;
}
@keyframes fadeUp { from{opacity:0;transform:translateY(32px)} to{opacity:1;transform:none} }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--ocean); position: relative; z-index: 1; overflow: hidden;
}
.stats-bar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45,132,204,.6) 30%, rgba(42,143,148,.6) 70%, transparent);
}
.stats-bar::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45,132,204,.4) 50%, transparent);
}
.stats-inner {
  max-width: var(--container-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 0 48px;
}
.stat-block {
  padding: 28px 24px; border-right: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column; gap: 4px;
  position: relative; transition: background .3s;
}
.stat-block:last-child { border-right: none; }
.stat-block:hover { background: rgba(255,255,255,.04); }
.stat-block::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--blue-lt); transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.stat-block:hover::before { transform: scaleX(1); }
.stat-num {
  font-family: var(--font-display); font-weight: 900; font-size: 32px;
  color: white; line-height: 1; letter-spacing: -.02em;
}
.stat-num span { font-size: 18px; color: var(--blue-lt); }
.stat-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.stat-sub { font-size: 10px; color: rgba(255,255,255,.2); font-family: 'DM Mono', monospace; margin-top: 2px; }

/* ── PARALLAX BANNER ── */
.parallax-banner {
  position: relative; height: 60vh; min-height: 420px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.parallax-bg {
  position: absolute; inset: -20%;
  background-image: var(--banner-bg);
  background-size: cover; background-position: center;
  will-change: transform;
}
.parallax-bg::after { content: ''; position: absolute; inset: 0; }
.banner-tools    .parallax-bg::after { background: linear-gradient(135deg, rgba(13,79,122,.82), rgba(29,110,114,.65)); }
.banner-smarthome .parallax-bg::after { background: linear-gradient(135deg, rgba(7,24,40,.80), rgba(13,79,122,.65)); }
.banner-weather  .parallax-bg::after { background: linear-gradient(135deg, rgba(26,106,173,.70), rgba(29,110,114,.60)); }
.banner-blog     .parallax-bg::after { background: linear-gradient(135deg, rgba(13,79,122,.75), rgba(7,24,40,.55)); }
.parallax-content {
  position: relative; z-index: 1; text-align: center; padding: 0 40px;
}
.parallax-content h2 {
  font-size: clamp(32px, 5vw, 64px); color: white;
  letter-spacing: -.025em;
  text-shadow: 0 4px 40px rgba(0,0,0,.3); margin-bottom: 20px;
}
.parallax-content h2 em { font-style: italic; }
.parallax-content p {
  font-size: 17px; color: rgba(255,255,255,.85);
  max-width: 480px; margin: 0 auto 32px;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}

/* ── ÜBER MICH ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.about-image-wrap { position: relative; }
.about-image {
  width: 100%; aspect-ratio: 4/5; border-radius: var(--radius);
  background-size: cover; background-position: center;
  box-shadow: 0 24px 80px rgba(15,31,46,.16); position: relative; z-index: 1;
}
.about-badge {
  position: absolute; bottom: -20px; right: -20px; z-index: 2;
  background: white; border-radius: var(--radius); padding: 20px 24px;
  box-shadow: 0 8px 40px rgba(15,31,46,.11);
  display: flex; align-items: center; gap: 14px;
}
.about-badge-icon { font-size: 28px; }
.about-badge-text strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.about-badge-text span { font-size: 12px; color: var(--ink-light); }
.about-deco {
  position: absolute; top: -20px; left: -20px;
  width: 120px; height: 120px;
  border: 2px solid var(--blue-pale); border-radius: var(--radius);
  background: var(--blue-pale); z-index: 0;
}
.about-content .lead {
  font-family: var(--font-display); font-style: italic; font-size: 20px;
  line-height: 1.6; margin-bottom: 24px;
  padding-left: 20px; border-left: 3px solid var(--blue);
}
.about-content p { font-size: 15px; line-height: 1.85; color: var(--ink-mid); margin-bottom: 16px; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip {
  font-size: 12px; font-weight: 500; padding: 6px 16px; border-radius: 50px;
  background: var(--teal-pale); color: var(--teal);
  border: 1px solid color-mix(in srgb, var(--teal) 20%, transparent);
}
.chip.blue {
  background: var(--blue-pale); color: var(--blue);
  border-color: color-mix(in srgb, var(--blue) 20%, transparent);
}

/* ── TOOLS ── */
.tools-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
/*.tools-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }*/

.tool-card {
  background: white; border-radius: var(--radius);
  padding: 40px 32px; box-shadow: 0 2px 12px rgba(15,31,46,.07);
  border: 1px solid var(--ink-faint);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
  position: relative; overflow: hidden;
}
.tool-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--tc, var(--blue));
}
.tool-card.t-purple { --tc: #5b21b6; --ti: #f0ebff; }
.tool-card:hover { transform: translateY(-8px); box-shadow: 0 24px 80px rgba(15,31,46,.16); }
.tool-card.t-teal { --tc: var(--teal); --ti: var(--teal-pale); }
.tool-card.t-ocean { --tc: var(--ocean); --ti: var(--sky); }
.tool-icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 24px;
  background: var(--ti, var(--blue-pale));
}
.tool-number {
  position: absolute; top: 28px; right: 28px;
  font-family: var(--font-display); font-weight: 700; font-size: 48px;
  color: var(--ink-faint); line-height: 1;
}
.tool-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 10px; }
.tool-desc { font-size: 14px; line-height: 1.75; color: var(--ink-mid); margin-bottom: 20px; }
.tool-features { list-style: none; margin-bottom: 28px; }
.tool-features li {
  font-size: 12px; color: var(--ink-mid);
  padding: 5px 0; border-bottom: 1px solid var(--ink-faint);
  display: flex; align-items: center; gap: 8px;
}
.tool-features li::before { content: '✓'; color: var(--tc, var(--blue)); font-weight: 700; font-size: 11px; }
.tool-features li:last-child { border-bottom: none; }
.tool-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--tc, var(--blue));
  text-decoration: none; transition: gap .2s;
}
.tool-link:hover { gap: 14px; }
.tool-link::after { content: '→'; }

/* ── PORTFOLIO ── */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  grid-template-rows: auto auto; gap: 20px;
}
.portfolio-item {
  border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer;
  box-shadow: 0 2px 12px rgba(15,31,46,.07);
}
.portfolio-item.large { grid-column: 1/3; }
.portfolio-img { width: 100%; background-size: cover; background-position: center; transition: transform .5s ease; }
.portfolio-item.large .portfolio-img { height: 320px; }
.portfolio-item:not(.large) .portfolio-img { height: 220px; }
.portfolio-item:hover .portfolio-img { transform: scale(1.04); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7,24,40,.88) 100%);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: flex-end; padding: 28px;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-cat { font-size: 10px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--blue-lt); margin-bottom: 6px; }
.portfolio-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: white; margin-bottom: 8px; }
.portfolio-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.p-tag { font-size: 10px; background: rgba(255,255,255,.15); color: white; padding: 3px 10px; border-radius: 50px; backdrop-filter: blur(4px); }

/* ── SMARTHOME ── */
.smarthome-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; margin-bottom: 64px; }
.smarthome-status-box { background: var(--sky); border-radius: var(--radius); padding: 28px; }
.smarthome-status-box .status-header { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--ink-light); margin-bottom: 16px; letter-spacing: .1em; }
.status-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 10px; }
.status-badge {
  font-size: 11px; font-weight: 500; padding: 2px 10px; border-radius: 50px;
}
.status-badge.online { background: #d4edda; color: #155724; }
.status-badge.count-blue { background: var(--blue-pale); color: var(--blue); }
.status-badge.count-teal { background: var(--teal-pale); color: var(--teal); }

.smarthome-devices { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.device-card {
  background: white; border-radius: var(--radius); padding: 28px 20px;
  text-align: center; box-shadow: 0 2px 12px rgba(15,31,46,.07);
  border: 1px solid var(--ink-faint);
  transition: transform .3s, box-shadow .3s; position: relative; overflow: hidden;
}
.device-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--dc, var(--blue)); transform: scaleX(0); transition: transform .3s;
}
.device-card:hover { transform: translateY(-6px); box-shadow: 0 24px 80px rgba(15,31,46,.16); }
.device-card:hover::after { transform: scaleX(1); }
.device-card.d-teal { --dc: var(--teal); }
.device-card.d-ocean { --dc: var(--ocean); }
.device-card.d-blue { --dc: var(--blue-lt); }
.device-icon { font-size: 36px; margin-bottom: 14px; display: block; }
.device-name { font-family: var(--font-display); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.device-status { font-size: 11px; color: var(--ink-light); margin-bottom: 10px; }
.device-val { font-family: 'DM Mono', monospace; font-size: 13px; color: var(--dc, var(--blue)); font-weight: 500; }

/* Timeline */
.smarthome-timeline { margin-top: 56px; }
.timeline-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 32px; }
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--teal));
}
.tl-item { position: relative; padding-bottom: 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -28px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: white; border: 2px solid var(--blue);
  box-shadow: 0 0 0 4px var(--blue-pale);
}
.tl-date { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--ink-light); letter-spacing: .1em; margin-bottom: 4px; }
.tl-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.tl-desc { font-size: 13px; line-height: 1.7; color: var(--ink-mid); }
.tl-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tl-chip { font-size: 10px; background: var(--blue-pale); color: var(--blue); padding: 3px 10px; border-radius: 50px; font-weight: 500; }

/* ── WETTER ── */
.weather-showcase {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center;
}
.weather-big-temp {
  font-family: var(--font-display); font-weight: 900; font-size: 96px;
  line-height: 1; color: var(--ocean); margin-bottom: 4px;
  display: flex; align-items: flex-start;
}
.weather-big-temp sup { font-size: 36px; margin-top: 16px; color: var(--blue); }
.weather-condition { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--teal); margin-bottom: 8px; }
.weather-location { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 32px; display: flex; align-items: center; gap: 6px; }
.weather-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ws-item { background: white; border-radius: 14px; padding: 16px 18px; box-shadow: 0 2px 12px rgba(15,31,46,.07); }
.ws-label { font-size: 11px; color: var(--ink-light); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.ws-val { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ocean); }
.forecast-title { font-size: 11px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 20px; }
.forecast-list { display: flex; flex-direction: column; gap: 2px; }
.fc-item { display: flex; align-items: center; gap: 16px; background: white; border-radius: 12px; padding: 16px 20px; transition: transform .2s; }
.fc-item:hover { transform: translateX(6px); }
.fc-day-name { font-weight: 500; font-size: 13px; width: 36px; color: var(--ink-mid); }
.fc-weather-icon { font-size: 20px; width: 28px; text-align: center; }
.fc-desc { flex: 1; font-size: 13px; color: var(--ink-light); }
.fc-temp-range { font-family: 'DM Mono', monospace; font-size: 13px; display: flex; gap: 8px; }
.fc-hi { color: var(--blue); font-weight: 500; }
.fc-lo { color: var(--ink-light); }

/* ── BLOG ── */
.blog-tabs { display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.blog-tab {
  font-size: 12px; font-weight: 500; padding: 8px 18px;
  border-radius: 50px; border: 1.5px solid var(--ink-faint);
  color: var(--ink-mid); cursor: pointer; transition: all .2s; background: white;
}
.blog-tab.active, .blog-tab:hover { background: var(--blue); color: white; border-color: var(--blue); }
.blog-grid-main {
  display: grid; grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto; gap: 24px; margin-bottom: 24px;
}
.blog-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.post {
  background: white; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 12px rgba(15,31,46,.07); border: 1px solid var(--ink-faint);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; cursor: pointer;
}
.post:hover { transform: translateY(-6px); box-shadow: 0 24px 80px rgba(15,31,46,.16); }
.post-img { width: 100%; background-size: cover; background-position: center; }
.post.featured { grid-row: 1/3; }
.post.featured .post-img { height: 300px; }
.post:not(.featured) .post-img { height: 180px; }
.post-body { padding: 24px 28px; }
.post-cat { font-size: 10px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.post-cat.c-teal { color: var(--teal); }
.post-cat.c-ocean { color: var(--ocean); }
.post-title { font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin-bottom: 10px; }
.post.featured .post-title { font-size: 22px; margin-bottom: 14px; }
.post:not(.featured) .post-title { font-size: 15px; }
.post-excerpt { font-size: 14px; line-height: 1.7; color: var(--ink-mid); margin-bottom: 18px; }
.post-meta { display: flex; align-items: center; gap: 14px; font-size: 11px; color: var(--ink-light); }
.post-author { display: flex; align-items: center; gap: 6px; }
.author-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 9px; color: white; font-weight: 700; }
.blog-more { text-align: center; margin-top: 48px; }

/* Joomla Beitrags-Liste Override */
.com-content-category__items .item { margin-bottom: 0 !important; }

/* ── ARTIKEL-SEITE ── */
.article-wrapper { padding-top: 72px; }
.article-container { max-width: 780px; margin: 0 auto; padding: var(--section-pad) 48px; }
.article-container h1 { font-size: clamp(28px, 4vw, 46px); letter-spacing: -.025em; margin-bottom: 24px; }
.article-container .article-info { font-size: 12px; color: var(--ink-light); margin-bottom: 32px; display: flex; gap: 20px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--ink-faint); }
.article-container .article-fulltext { font-size: 16px; line-height: 1.85; color: var(--ink-mid); }
.article-container .article-fulltext h2 { font-size: 24px; margin: 40px 0 16px; color: var(--ink); }
.article-container .article-fulltext h3 { font-size: 20px; margin: 32px 0 12px; color: var(--ink); }
.article-container .article-fulltext p { margin-bottom: 20px; }
.article-container .article-fulltext pre { background: var(--sky); border-left: 3px solid var(--blue); padding: 20px; border-radius: var(--radius-sm); overflow-x: auto; font-family: 'DM Mono', monospace; font-size: 13px; margin-bottom: 24px; }
.article-container .article-fulltext code { font-family: 'DM Mono', monospace; background: var(--blue-pale); color: var(--ocean); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.article-container .article-fulltext img { border-radius: var(--radius-sm); margin: 24px 0; }
.article-container .article-fulltext blockquote { border-left: 3px solid var(--blue); padding: 16px 24px; background: var(--blue-pale); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0; font-style: italic; color: var(--ink); }
.article-tags { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ink-faint); display: flex; gap: 8px; flex-wrap: wrap; }
.article-tags a { font-size: 11px; background: var(--blue-pale); color: var(--blue); padding: 4px 12px; border-radius: 50px; text-decoration: none; }

/* ── KONTAKT ── */
.contact-section { background: var(--ocean); color: white; padding: var(--section-pad) 48px; }
.contact-inner { max-width: var(--container-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.contact-left .section-eyebrow { color: var(--blue-lt); }
.contact-left .section-eyebrow::before { background: var(--blue-lt); }
.contact-left h2 { font-size: clamp(28px, 3.5vw, 48px); color: white; line-height: 1.08; letter-spacing: -.025em; margin-bottom: 18px; }
.contact-left h2 em { font-style: italic; color: var(--blue-lt); }
.contact-left p { font-size: 15px; line-height: 1.8; color: rgba(255,255,255,.6); margin-bottom: 32px; }
.contact-item { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.contact-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-item-text strong { display: block; color: white; font-weight: 500; font-size: 13px; }
.contact-item-text span { color: rgba(255,255,255,.5); font-size: 12px; }

/* Joomla Kontakt-Formular Overrides */
.contact-section .contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-section .control-group { display: flex; flex-direction: column; gap: 6px; }
.contact-section .control-label label { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.contact-section input[type="text"],
.contact-section input[type="email"],
.contact-section textarea,
.contact-section select {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 14px 18px;
  font-family: var(--font-body); font-size: 14px; color: white; outline: none;
  transition: border-color .2s, background .2s; appearance: none; width: 100%;
}
.contact-section input::placeholder, .contact-section textarea::placeholder { color: rgba(255,255,255,.3); }
.contact-section input:focus, .contact-section textarea:focus { border-color: var(--blue-lt); background: rgba(26,106,173,.08); }
.contact-section textarea { min-height: 120px; resize: vertical; }
.contact-section button[type="submit"], .contact-section .btn {
  background: var(--blue-lt); color: white; border: none; border-radius: 12px;
  padding: 16px 32px; font-family: var(--font-body); font-size: 15px; font-weight: 500;
  cursor: pointer; box-shadow: 0 6px 24px rgba(26,106,173,.4); transition: all .25s;
}
.contact-section button[type="submit"]:hover { background: var(--blue); transform: translateY(-2px); }

/* ── FOOTER ── */
footer#j-footer { background: var(--midnight); padding: 64px 48px 32px; }
.footer-inner { max-width: var(--container-w); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 56px; }
.footer-logo-img { max-height: 44px; width: auto; opacity: .85; transition: opacity .2s; }
.footer-logo-img:hover { opacity: 1; }
.footer-desc { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.35); margin: 16px 0 24px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 10px; text-decoration: none;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  transition: background .2s, border-color .2s;
}
.social-btn:hover { background: rgba(45,132,204,.25); border-color: var(--blue-lt); }
.footer-col h4 { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: white; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 13px; color: rgba(255,255,255,.4); text-decoration: none; transition: color .2s; display: flex; align-items: center; gap: 6px; }
.footer-col ul a::before { content: '›'; color: var(--blue-lt); }
.footer-col ul a:hover { color: var(--blue-lt); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.07); font-size: 12px; color: rgba(255,255,255,.25); flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: var(--blue-lt); text-decoration: none; }
.footer-legal a { color: var(--blue-lt); text-decoration: none; margin-left: 12px; font-size: 12px; }
.footer-made { font-family: var(--font-display); font-style: italic; }

/* ── KOMPONENTEN-WRAPPER ── */
.component-wrapper, .category-wrapper {
  padding-top: 72px; min-height: 60vh;
}
.component-wrapper .section, .category-wrapper .section {
  padding-top: calc(var(--section-pad) * 0.6);
}

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity .8s ease, transform .8s ease; }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity .8s ease, transform .8s ease; }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }

/* ── JOOMLA SYSTEM MESSAGES ── */
.alert { border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 20px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-warning  { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.alert-error, .alert-danger { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }
.alert-info    { background: var(--blue-pale); color: var(--ocean); border: 1px solid var(--blue-pale); }

/* ══════════════════════════════════════════
   RESPONSIVE – TABLET (max 960px)
══════════════════════════════════════════ */
@media (max-width: 960px) {

  /* Header */
  .header-inner { padding: 0 20px; }
  .logo-img { max-height: 44px; }

  /* Mobile Nav */
  .nav-toggle { display: flex; }
  #j-mainnav a:not(.nav-cta) { display: none; }
  #j-mainnav {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(244,248,251,.99); backdrop-filter: blur(16px);
    padding: 24px 20px; flex-direction: column; align-items: flex-start;
    gap: 4px; overflow-y: auto;
    box-shadow: 0 8px 40px rgba(15,31,46,.15);
    display: none; z-index: 499;
  }
  #j-mainnav.open { display: flex; }
  #j-mainnav.open a { display: block !important; width: 100%; font-size: 18px; padding: 14px 16px; }
  #j-mainnav.open .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }

  /* Sektionen */
  .section { padding: 72px 20px; }

  /* Hero */
  .hero { min-height: 100svh; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 0 20px; }
  .hero-modules, .hero-cards { order: -1; }
  .hero-desc { font-size: 15px; }
  .hero-btns .btn { padding: 12px 22px; font-size: 13px; }

  /* Stats */
  .stats-inner { grid-template-columns: repeat(3, 1fr); padding: 0 20px; }
  .stat-num { font-size: 24px; }

  /* Grids */
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .tools-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .smarthome-intro { grid-template-columns: 1fr; gap: 32px; }
  .smarthome-devices { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .portfolio-item.large { grid-column: auto; }
  .portfolio-item.large .portfolio-img { height: 220px !important; }
  .blog-grid-main { grid-template-columns: 1fr; }
  .blog-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .post.featured { grid-row: auto; }
  .post.featured .post-img { height: 220px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }

  /* Wetter */
  .weather-showcase {
    grid-template-columns: 1fr; gap: 32px; padding: 32px 24px;
  }
  .weather-big-temp { font-size: 72px; }

  /* About Bild */
  .about-image { aspect-ratio: 3/2; }
  .about-badge { right: 0; bottom: -16px; padding: 14px 18px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  footer#j-footer { padding: 48px 20px 24px; }

  /* Parallax Banner */
  .parallax-content h2 { font-size: clamp(28px, 6vw, 48px); }
  .parallax-content p { font-size: 15px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE – MOBIL (max 600px)
══════════════════════════════════════════ */
@media (max-width: 600px) {

  /* Header */
  header#j-header { height: 64px; }
  .header-inner { height: 64px; }
  #j-mainnav { top: 64px; }
  .logo-img { max-height: 38px; }

  /* Hero */
  .hero { min-height: 100svh; }
  .hero-inner { padding: 0 16px; padding-top: 80px; }
  .hero-modules, .hero-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-card { padding: 18px 14px; }
  .hc-icon { font-size: 24px; }
  .hc-title { font-size: 13px; }
  .hc-desc { display: none; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  /* Stats – 2 Spalten auf Mobil */
  .stats-inner { grid-template-columns: 1fr 1fr; padding: 0 16px; }
  .stat-block:last-child { grid-column: 1 / -1; border-right: none; border-top: 1px solid rgba(255,255,255,.07); }
  .stat-num { font-size: 22px; }
  .stat-sub { display: none; }

  /* Sektionen */
  .section { padding: 56px 16px; }
  .section-sub { margin-bottom: 40px; }

  /* Tools – 1 Spalte */
  .tools-grid { grid-template-columns: 1fr; }

  /* Smarthome */
  .smarthome-devices { grid-template-columns: 1fr 1fr; }
  .smarthome-timeline { margin-top: 40px; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: 1fr; }

  /* Blog */
  .blog-row { grid-template-columns: 1fr; }
  .blog-grid-main { grid-template-columns: 1fr; }
  .blog-tabs { gap: 6px; }
  .blog-tab { font-size: 11px; padding: 6px 12px; }

  /* Wetter */
  .weather-showcase { padding: 24px 16px; border-radius: var(--radius-sm); }
  .weather-big-temp { font-size: 56px; }
  .weather-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ws-val { font-size: 16px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Parallax Banner */
  .parallax-banner { min-height: 320px; height: 45vh; }
  .parallax-content { padding: 0 20px; }
  .parallax-content h2 { font-size: clamp(24px, 7vw, 36px); }
  .parallax-content p { font-size: 14px; margin-bottom: 24px; }
  .parallax-content .btn { padding: 12px 20px; font-size: 13px; }

  /* Kontakt */
  .contact-section { padding: 56px 16px; }
  .form-row { grid-template-columns: 1fr; }

  /* Allgemein */
  h2.section-title { letter-spacing: -.02em; }
  .skill-chips { gap: 6px; }
  .chip { font-size: 11px; padding: 5px 12px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE – KLEIN (max 380px)
══════════════════════════════════════════ */
@media (max-width: 380px) {
  .hero-modules, .hero-cards { grid-template-columns: 1fr 1fr; }
  .smarthome-devices { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .weather-big-temp { font-size: 48px; }
}
