/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––
  Tino Engelland — 2025 Modern Minimal Theme
  Clean, balanced, adaptive
–––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: Inter, 'Instrument Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
  letter-spacing: 0;
}


:root {
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --surface: #f8fafc;
  --accent: #4f46e5;
  --accent-2: #6366f1;
  --radius: 16px;
  --shadow-sm: 0 6px 18px rgba(2,6,23,.08);
  --shadow: 0 14px 38px rgba(2,6,23,.12);
  --maxw: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --fg: #e5e7eb;
    --muted: #9ca3af;
    --border: #1f2937;
    --surface: #0f172a;
    --shadow-sm: 0 10px 24px rgba(0,0,0,.4);
    --shadow: 0 20px 60px rgba(0,0,0,.55);
  }
}
body.dark {
  --bg: #0b1020;
  --fg: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;
  --surface: #0f172a;
  --shadow-sm: 0 10px 24px rgba(0,0,0,.4);
  --shadow: 0 20px 60px rgba(0,0,0,.55);
}

/* Layout Containers */
.container { width: min(var(--maxw), 92%); margin-inline: auto; }
section { padding: 72px 0; }
section header h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 900; margin-bottom: 6px; }
section header p { color: var(--muted); }

/* Navigation */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; position: sticky; top: 0; z-index: 20;
}
.glass {
  padding: 20px;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,232,240,0.6);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: inherit; text-decoration: none; }
.nav nav { display: flex; gap: 18px; }
.nav nav a { color: var(--muted); font-weight: 600; text-decoration: none; transition: color .2s; }
.nav nav a:hover { color: var(--accent); }
.pill { border: 1px solid var(--border); padding: 8px 14px; border-radius: 999px; }
.icon-btn { border: 1px solid var(--border); background: var(--bg); border-radius: 12px; padding: 8px 10px; cursor: pointer; transition: all .2s; }
.icon-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* Hero */
.hero { position: relative; padding: clamp(48px, 6vw, 96px) 0; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding: 30px; }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; font-weight: 800; color: var(--accent); }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.05; font-weight: 900; }
.accent { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.tagline { margin-top: 12px; color: var(--muted); font-weight: 500; max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { padding: 12px 18px; border-radius: 12px; font-weight: 700; border: 1px solid var(--accent); background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); transition: all .25s ease; }
.btn:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; list-style: none; }
.chips li { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; color: var(--muted); font-weight: 600; }
.hero-frame { padding: 10px; border-radius: 22px; background: linear-gradient(145deg,#fff,#eef2ff); box-shadow: var(--shadow); }
.hero-media img { width: 100%; border-radius: 16px; aspect-ratio: 4/5; object-fit: cover; }

/* Features (Leistungen) */
.grid { display: grid; gap: 20px; margin-top: 10px; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); }
.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tile h3 { font-size: 18px; margin-bottom: 6px; font-weight: 700; }
.tile p { color: var(--muted); margin-bottom: 8px; }
.bullets { margin-top: 8px; padding-left: 20px; color: var(--muted); }

/* Projects */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); }
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.thumb { width: 100%; height: 180px; object-fit: scale-down; padding: 20px; }
.card-body { padding: 16px; }
.card h3 { font-size: 18px; margin-bottom: 6px; font-weight: 700; }
.card p { color: var(--muted); }
.arrow { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--accent); }

/* Contact */
.contact .contact-box { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; margin-top: 24px; }
.contact .contact-lines {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; background: var(--surface); box-shadow: var(--shadow-sm);
}
.contact form {
  display: grid; gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
label span { display: block; font-weight: 700; margin-bottom: 6px; }
input, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--fg);
  transition: border-color .2s;
}
input:focus, textarea:focus { border-color: var(--accent-2); outline: none; }

/* Footer */
.footer { display: flex; justify-content: space-between; align-items: center; padding: 28px 0; border-top: 1px solid var(--border); color: var(--muted); flex-wrap: wrap; }
.footer-links a { color: inherit; margin-left: 14px; }

/* Utilities */
.to-top {
  position: fixed; right: 18px; bottom: 18px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  border-radius: 999px;
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
}
.to-top[hidden] { display: none; }
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in { opacity: 1; transform: translateY(0); transition: all .6s ease; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .contact .contact-box { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  header { margin-left: unset; margin-right: unset; display: flex; }
  .btn, .btn.ghost { width: 100%; text-align: center; }
  .nav { gap: 15px; flex-wrap: wrap; margin: 0; width: 100%;}
}

    @media (prefers-color-scheme: dark) {
      body { ; background: #0b1020; color: #e5e7eb; }
      .glass { background: rgba(15,23,42,.6); }
      .chips li { background: #0f172a; border-color: #1f2937; }
      .hero { background: linear-gradient(135deg, rgba(24,32,64,.6), rgba(11,16,32,.4)); }
      .hero-frame { background: linear-gradient(145deg, #0f172a, #111827); }
          body.dark .glass { background: rgba(15,23,42,.6);}
    }