/* ============================================
   TECKONOLOGIA — Website Stylesheet
   Dunkel/Hell via html[data-theme], zeitgesteuert
   ============================================ */

:root {
  --gold: #FFD700;
  --blue: #3a6ea5;
  --wine: #722f37;
  --green: #98c379;
  --radius: 28px;
  --radius-sm: 14px;
  --maxw: 1180px;
  --transition: all 0.25s ease;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"] {
  --bg: #232b2e;
  --bg2: #2d373a;
  --bg3: #343e42;
  --card: #2d373a;
  --text: #d4d4d4;
  --text2: #9aa3a8;
  --border: #3c464a;
  --accent: #FFD700;
  --accent-text: #232b2e;
  --header-bg: rgba(35, 43, 46, 0.88);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  --logo-bg: #232b2e;
  --logo-ink: #ffffff;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f3f4f6;
  --bg2: #ffffff;
  --bg3: #e9ebee;
  --card: #ffffff;
  --text: #21282d;
  --text2: #5d6870;
  --border: #d8dde2;
  --accent: #8a6d00;
  --accent-text: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.88);
  --shadow: 0 8px 28px rgba(20, 30, 40, 0.10);
  --logo-bg: #f3f4f6;
  --logo-ink: #000000;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }

a { color: inherit; }

/* ============================================
   LOGO (aus der TECKONOLOGIA App, skalierbar)
   ============================================ */
.app-logo {
  --s: 200px;
  position: relative;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  box-shadow: 0 0 calc(var(--s) * 0.05) calc(var(--s) * 0.035) var(--gold);
  display: flex;
  flex-direction: column;
  flex: none;
  background: transparent;
}

.app-logo .l-top,
.app-logo .l-bottom {
  width: 100%;
  height: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--logo-ink);
  font-size: calc(var(--s) * 0.168);
  font-weight: 700;
  letter-spacing: calc(var(--s) * 0.012);
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.app-logo .l-top {
  border-top-left-radius: calc(var(--s) * 0.53);
  border-top-right-radius: calc(var(--s) * 0.53);
  box-shadow: inset 0 0 calc(var(--s) * 0.13) calc(var(--s) * 0.04) var(--blue);
}

.app-logo .l-bottom {
  border-bottom-left-radius: calc(var(--s) * 0.53);
  border-bottom-right-radius: calc(var(--s) * 0.53);
  box-shadow: inset 0 0 calc(var(--s) * 0.13) calc(var(--s) * 0.04) var(--wine);
}

.app-logo .l-middle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(var(--s) * 1.1);
  height: calc(var(--s) * 0.158);
  border-radius: 50%;
  background: var(--logo-bg);
  color: var(--logo-ink);
  font-size: calc(var(--s) * 0.084);
  font-weight: 700;
  text-align: center;
  line-height: calc(var(--s) * 0.184);
  text-transform: uppercase;
  box-shadow: 0 2px 6px var(--green), inset 0 2px 6px var(--green);
  z-index: 2;
  white-space: nowrap;
}

.app-logo--hero { --s: min(300px, 68vw); margin: 0 auto; }
.app-logo--sm { --s: 38px; }

.app-logo--sm .l-top,
.app-logo--sm .l-bottom { text-shadow: none; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  color: var(--text2);
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav a:hover { background: var(--bg3); color: var(--accent); }
.nav a.active { color: var(--accent); background: var(--bg3); }

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  flex: none;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active { background: var(--accent); color: var(--accent-text); }

.menu-btn {
  display: none;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 10px;
  margin-left: auto;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 84px 0 72px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero .app-logo--hero { margin-bottom: 44px; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text2);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.page-hero {
  padding: 64px 0 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 14px; }

.page-hero p {
  color: var(--text2);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 9px 20px; font-size: 14px; }

/* Platzhalter-Links (Shop/Reseller, URLs folgen) */
.btn.ph {
  border-style: dashed;
  border-color: var(--border);
  background: var(--bg3);
  color: var(--text2);
  cursor: default;
}

.btn.ph:hover { transform: none; box-shadow: none; }

.ph-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: var(--border);
  color: var(--text2);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Klickbarer Platzhalter-Link (echtes Ziel vorhanden) */
.btn.ph.is-live { cursor: pointer; }

/* Button über volle Breite mit zentrierter Schrift */
.btn-block { width: 100%; justify-content: center; }

/* Download-Auswahlmenü (Builds pro Betriebssystem) */
.dl-wrap { position: relative; display: flex; width: 100%; }
.btn.ph.dl-btn {
  font-family: inherit;
  width: 100%;
  justify-content: center;
  border: 2px dotted var(--accent-text);
  background: var(--accent);
  color: var(--accent-text);
}
.dl-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 30;
  min-width: 230px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 6px;
}
.dl-menu[hidden] { display: none; }
.dl-item.dl-off { display: none; }
.dl-item {
  display: block;
  padding: 9px 14px;
  border-radius: 9px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}
.dl-item:hover { background: var(--bg3); color: var(--accent); }

/* Windows-Zeile: MSI-Standardlink + kleine exe/setup-Kurzlinks daneben */
.dl-row { display: flex; align-items: stretch; gap: 4px; }
.dl-row .dl-item { flex: 1 1 auto; }
.dl-mini {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.dl-mini:hover { background: var(--bg3); color: var(--accent); border-color: var(--accent); }
/* dl-wrap innerhalb der store-row nicht auf 100% Breite ziehen */
.store-row .dl-wrap { width: auto; }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 72px 0; }
.section.alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; margin-bottom: 48px; }

.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }

.section-head p {
  color: var(--text2);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================
   CARDS / GRIDS
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }

.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--text2); font-size: 0.97rem; flex: 1; }

.card .card-link {
  margin-top: 20px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
}

.card .card-link:hover { text-decoration: underline; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

/* ============================================
   OBJEKTTYPEN (KOTO 3D)
   ============================================ */
.objcat { margin-bottom: 44px; }

.objcat-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.objgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.obj {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: var(--transition);
}

.obj:hover { border-color: var(--accent); }

.obj h4 { font-size: 1rem; margin-bottom: 5px; }
.obj p { color: var(--text2); font-size: 0.88rem; line-height: 1.55; }

.obj-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.obj-head h4 { margin-bottom: 0; }

.obj-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  flex: none;
  color: var(--accent);
}

.obj-icon svg { width: 100%; height: 100%; }

/* ============================================
   VERSIONEN (KOTO 3D)
   ============================================ */
.vergrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.ver {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.ver:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }

.ver-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 8px;
}

.ver h3 { font-size: 1.3rem; margin-bottom: 14px; }

.ver ul { list-style: none; margin-bottom: 22px; flex: 1; }

.ver ul li {
  color: var(--text2);
  font-size: 0.94rem;
  padding: 5px 0 5px 22px;
  position: relative;
}

.ver ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.ver-links { display: flex; flex-wrap: wrap; gap: 10px; }

.ver-price { font-size: 0.95rem; font-weight: 700; color: var(--text); margin: -8px 0 14px; }

.ver-wip {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text2);
  background: var(--bg3);
  border: 1px dashed var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.ver-io {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.88rem;
  color: var(--text2);
}

.ver-io strong {
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-right: 8px;
}

.ver-note {
  margin-top: 36px;
  text-align: center;
  color: var(--text2);
  font-size: 0.95rem;
  background: var(--bg3);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 22px;
}

/* ============================================
   FEATURE LIST (Slicer / SayTerm)
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.platform-pill {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text2);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

/* ============================================
   TEXT-SEITEN (Reseller / Impressum)
   ============================================ */
.prose { max-width: 760px; margin: 0 auto; }

.prose h2 { font-size: 1.45rem; margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 26px 0 10px; }
.prose p { color: var(--text2); margin-bottom: 14px; }

.prose ul { list-style: none; margin-bottom: 16px; }

.prose ul li {
  color: var(--text2);
  padding: 4px 0 4px 24px;
  position: relative;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.prose a:not(.btn) { color: var(--accent); }

/* Platzhalter-Markierung (Impressum) */
.ph-text {
  background: rgba(255, 215, 0, 0.18);
  border: 1px dashed var(--accent);
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.ph-note {
  background: rgba(255, 215, 0, 0.10);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 0.92rem;
  color: var(--text2);
  margin-bottom: 32px;
}

.mail-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

/* ============================================
   TEASER STRIP
   ============================================ */
.teaser {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.teaser h3 { font-size: 1.35rem; margin-bottom: 6px; }
.teaser p { color: var(--text2); max-width: 560px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}

.footer-grid h4 {
  color: var(--accent);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 8px; }

.footer-grid a {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.94rem;
  transition: var(--transition);
}

.footer-grid a:hover { color: var(--accent); }

.footer-grid p { color: var(--text2); font-size: 0.94rem; }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text2);
  font-size: 0.88rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 860px) {
  .menu-btn { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg2);
    flex-direction: column;
    padding: 14px 22px 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }

  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; }

  .lang-switch { margin-left: 0; }
  .brand-name { display: none; }

  .section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .teaser { padding: 30px 26px; }
}
