/* ═══════════════════════════════════════
   PYSZNY.DE – Shared Stylesheet
   ═══════════════════════════════════════ */

/* ── VARIABLEN ── */
:root {
  --green-50:  #f2faf0;
  --green-100: #e0f4db;
  --green-200: #c2e8ba;
  --green-300: #a0d896;
  --green-400: #7bc47a;
  --green-500: #5aaa58;
  --green-600: #3f8a3d;
  --text-dark:  #1e3320;
  --text-mid:   #3a5c3c;
  --text-light: #5c7d5e;
  --white:      #ffffff;
  --card-bg:    #f8fdf7;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── BASE ── */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--green-50);
  color: var(--text-dark);
  line-height: 1.7;
}
body.subpage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(242, 250, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--green-200);
  padding: 0 2rem;
}
nav.sticky {
  position: sticky;
  background: rgba(242, 250, 240, 0.92);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-inner.narrow { max-width: 800px; gap: 1.5rem; justify-content: flex-start; }
.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-600);
  letter-spacing: -0.3px;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green-600); }
.nav-back {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-back::before { content: '←'; }
.nav-back:hover { color: var(--green-600); }

/* ── BURGER BUTTON ── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.burger:hover { background: var(--green-100); }
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--green-600);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; width: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  top: 60px; left: 0; right: 0;
  z-index: 98;
  background: #f5fcf4;
  border-bottom: 1px solid var(--green-200);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.mobile-menu.open { max-height: 400px; }
.mobile-menu ul {
  list-style: none;
  padding: 0.5rem 1.5rem 1.5rem;
}
.mobile-menu ul li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--text-mid);
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--green-100);
  transition: color 0.2s, gap 0.2s;
}
.mobile-menu ul li:last-child a { border-bottom: none; }
.mobile-menu ul li a::before {
  content: '→';
  color: var(--green-400);
  font-size: 0.9rem;
  transition: color 0.2s, transform 0.2s;
}
.mobile-menu ul li a:hover { color: var(--green-600); }
.mobile-menu ul li a:hover::before { color: var(--green-600); transform: translateX(3px); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 4rem;
  background: linear-gradient(160deg, var(--white) 0%, var(--green-100) 50%, var(--green-200) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-200) 0%, transparent 70%);
  opacity: 0.6;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-300) 0%, transparent 70%);
  opacity: 0.35;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-600);
  border: 1px solid var(--green-300);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-dark);
  letter-spacing: -1.5px;
  margin-bottom: 1.2rem;
}
.hero h1 span { color: var(--green-500); }
.hero h1 span em {
  font-style: normal;
  color: var(--green-600);
  text-decoration: underline;
  text-decoration-color: var(--green-400);
  text-underline-offset: 4px;
  text-decoration-thickness: 3px;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* ── BUTTONS ── */
.btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(90,170,88,0.25); }
.btn-primary { background: var(--green-500); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--green-600);
  border: 2px solid var(--green-400);
}

/* ── SECTIONS ── */
section { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-500);
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 580px;
}

/* ── ÜBER MICH ── */
#ueber { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}
.about-visual { position: relative; }
.about-card {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
}
.about-card::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  font-size: 6rem;
  color: var(--green-200);
  font-family: Georgia, serif;
  line-height: 1;
}
.about-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.65;
  padding-top: 1.5rem;
}
.about-decoration {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--green-200);
  opacity: 0.5;
  z-index: 0;
}
.about-text p { color: var(--text-mid); margin-bottom: 1rem; font-size: 1.02rem; }

/* ── TAGS ── */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tag {
  background: var(--green-100);
  color: var(--green-600);
  border: 1px solid var(--green-200);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── FOKUS CARDS ── */
#fokus { background: var(--green-50); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--green-200);
  border-radius: 20px;
  padding: 2rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(90,170,88,0.12);
  border-color: var(--green-400);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}
.card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; color: var(--text-light); }

/* ── TECH ── */
#tech { background: var(--white); }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.tech-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: background 0.2s, border-color 0.2s;
}
.tech-item:hover { background: var(--green-100); border-color: var(--green-400); }
.tech-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green-400);
  flex-shrink: 0;
}

/* ── HOMELAB ── */
#homelab { background: linear-gradient(135deg, var(--green-100) 0%, var(--green-200) 100%); }
.homelab-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}
.homelab-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.homelab-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  color: var(--text-mid);
  font-weight: 500;
}
.homelab-list li::before { content: '→'; color: var(--green-500); font-weight: 700; flex-shrink: 0; }
.homelab-mindset {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 24px;
  padding: 2.5rem;
}
.homelab-mindset h3 { font-size: 1.4rem; font-weight: 800; color: var(--text-dark); margin-bottom: 1rem; }
.homelab-mindset p { color: var(--text-mid); font-size: 1rem; }

/* ── KONTAKT ── */
#kontakt { background: var(--white); text-align: center; }
.contact-box {
  max-width: 600px;
  margin: 3rem auto 0;
  background: linear-gradient(135deg, var(--green-50), var(--green-100));
  border: 1px solid var(--green-200);
  border-radius: 28px;
  padding: 3rem 2.5rem;
}
.contact-box p { color: var(--text-light); margin-bottom: 2rem; font-size: 1.05rem; }

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 2rem;
  background: var(--green-50);
  border-top: 1px solid var(--green-200);
  color: var(--text-light);
  font-size: 0.85rem;
}
footer a { color: var(--text-light); text-decoration: none; }
footer a:hover { color: var(--green-600); }

/* ── UNTERSEITEN (Impressum / Datenschutz) ── */
main {
  flex: 1;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.page-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-500);
  margin-bottom: 0.5rem;
}
main h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
}
.subpage .card {
  padding: 2rem 2.2rem;
  margin-bottom: 1.5rem;
  transition: none;
}
.subpage .card:hover { transform: none; box-shadow: none; border-color: var(--green-200); }
.subpage .card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.subpage .card p,
.subpage .card address {
  font-style: normal;
  color: var(--text-mid);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}
.subpage .card p:last-child { margin-bottom: 0; }
.subpage .card a { color: var(--green-600); text-decoration: none; }
.subpage .card a:hover { text-decoration: underline; }
.subpage .card ul {
  margin: 0.5rem 0 0.8rem 1.2rem;
  color: var(--text-mid);
  font-size: 0.97rem;
}
.subpage .card ul li { margin-bottom: 0.3rem; }
.highlight {
  background: var(--green-50);
  border-left: 3px solid var(--green-400);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.4rem;
  color: var(--text-mid);
  font-size: 0.92rem;
  margin-top: 1rem;
}
.note {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .about-grid,
  .homelab-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: 2.6rem; }
  .nav-links { display: none; }
  .burger { display: flex; }
}
