/* Gemeinsame Gestaltung der Projektseiten Tesla-Dashboard und DaheimLader auf ruthner.at
   (Farben und Schriften wie die übrigen ruthner.at-Unterseiten; Einblendungen nur per CSS, Inhalt ist immer sichtbar) */
:root {
  --ink: #0c0e0b; --ink-2: #141712; --ink-3: #1c2019; --line: rgba(255,255,255,.09);
  --text: #ece8dc; --muted: #a6a693; --gold: #d9b45a; --gold-2: #ecd28f; --moss: #7fb069;
  --accent: #19d3a2; --accent-2: #3ec6ff;
  --serif: "Fraunces", Georgia, serif; --sans: "Manrope", system-ui, sans-serif;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--gold-2); }
img { max-width: 100%; display: block; }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.glow { position: fixed; inset: -20% -10% auto; height: 80vh; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(25,211,162,.13), transparent 60%), radial-gradient(ellipse at 80% 10%, rgba(62,198,255,.10), transparent 55%); }

.nav { position: sticky; top: 60px; z-index: 40;   /* unter der gemeinsamen ruthner.at-Leiste (tool-nav, 60 px) */
   display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem clamp(1rem, 4vw, 3rem); background: rgba(12,14,11,.78); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.brand img { width: 32px; height: 32px; }
.brand em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--gold-2); }
.nav-links { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .92rem; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-cta { color: var(--ink) !important; background: var(--gold); padding: .35rem .9rem; border-radius: 999px; font-weight: 700; }

main, .hero { position: relative; z-index: 1; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.hero { padding: clamp(3rem, 9vw, 7rem) 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--moss); font-weight: 700; margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .8rem; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h1 em, h2 em { font-style: italic; color: var(--gold-2); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
.lede { font-size: 1.15rem; color: #d6d2c4; max-width: 38rem; }
.hero-logo { width: min(320px, 70vw); justify-self: center; filter: drop-shadow(0 30px 60px rgba(25,211,162,.25)); animation: schweben 7s ease-in-out infinite; }
@keyframes schweben { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
.actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.3rem; border-radius: 999px; text-decoration: none; font-weight: 700; }
.btn-primary { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1b1709; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.meta { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.6rem; }
.chip { font-size: .8rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .75rem; }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--line); }
.eyebrow { display: block; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .7rem; font-weight: 700; }
.sub { color: var(--muted); max-width: 46rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; margin-top: 2rem; }
.card { background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; color: #cbc7b9; font-size: .96rem; }
.card .nr { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.1rem; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.shot { margin: 0; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shot a { display: block; }
.shot img { width: 100%; height: auto; transition: transform .5s ease; }
.shot a:hover img { transform: scale(1.02); }
.shot figcaption { padding: .9rem 1.1rem 1.1rem; font-size: .92rem; color: #cbc7b9; }
.shot figcaption b { color: var(--text); display: block; font-size: 1rem; margin-bottom: .15rem; }
.shot.gross { grid-column: 1 / -1; }
.shot.hoch img { max-height: 760px; object-fit: contain; background: #0a0a14; }
.hinweis-klein { font-size: .85rem; color: var(--muted); margin-top: 1rem; }

ol.schritte { counter-reset: s; list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
ol.schritte li { counter-increment: s; position: relative; padding: 1rem 1.2rem 1rem 4rem; background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; }
ol.schritte li::before { content: counter(s); position: absolute; left: 1.1rem; top: 1rem; width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center; background: rgba(217,180,90,.15); color: var(--gold-2); font-weight: 800; }
pre { background: #070806; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; overflow-x: auto; font-size: .9rem; line-height: 1.55; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; }
:not(pre) > code { background: rgba(255,255,255,.07); padding: .1rem .35rem; border-radius: 5px; }
table { width: 100%; border-collapse: collapse; margin-top: 1.2rem; font-size: .94rem; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--gold); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.tabelle { overflow-x: auto; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 2rem; }
.verbindung { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: .8rem; align-items: center; margin-top: 2rem; text-align: center; }
.verbindung .knoten { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.verbindung .knoten img { width: 56px; margin: 0 auto .5rem; }
.verbindung .knoten small { color: var(--muted); display: block; }
.verbindung .pfeil { color: var(--accent); font-size: 1.6rem; position: relative; }
.verbindung .pfeil::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent); animation: fluss 2.4s linear infinite; }
@keyframes fluss { from { transform: translate(-200%, -50%); opacity: 0 } 20% { opacity: 1 } 80% { opacity: 1 } to { transform: translate(100%, -50%); opacity: 0 } }
footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* sanftes Einblenden beim Laden – nur Bewegung, nie unsichtbar */
@keyframes rein { from { transform: translateY(14px) } to { transform: none } }
.hero-grid > *, .section .wrap > * { animation: rein .8s ease both; }
@media (prefers-reduced-motion: reduce) { *, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 860px) {
  .hero-grid, .duo { grid-template-columns: 1fr; }
  .hero-logo { order: -1; width: 200px; }
  .verbindung { grid-template-columns: 1fr; }
  .verbindung .pfeil { transform: rotate(90deg); }
  .nav-links a:not(.nav-cta) { display: none; }
  .shots { grid-template-columns: 1fr; }
}
