/* ==========================================================================
   Temia.de – modernes Theme (2026)
   Drop-in-Ersatz für das alte style.css: alle bestehenden Seiten behalten
   ihre Markup-Struktur (.frame / .left-column / .main / .content-box).
   ========================================================================== */

:root {
  --accent: #6b9f12;
  --accent-dark: #567f0f;
  --accent-soft: #eef6e1;
  --text: #1f2a24;
  --text-muted: #5b6761;
  --bg: #f3f5f4;
  --card: #ffffff;
  --line: #e3e8e5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 8px 24px rgba(20, 30, 25, .06);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html, body { height: auto; min-width: 0; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--accent-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

p { margin: 0 0 1em; }

.clear { clear: both; }
.wrapper { overflow: hidden; }
.fleft { float: left; }
.fright { float: right; }
.aligncenter { text-align: center; }

/* --------------------------------------------------------------------------
   Seitenrahmen
   -------------------------------------------------------------------------- */

.frame {
  position: static;
  left: auto;
  margin: 0 auto;
  width: auto;
  max-width: 1280px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 16px 40px;
}

.left-column {
  float: none;
  width: 280px;
  flex: 0 0 280px;
  margin: 0;
  position: sticky;
  top: 16px;
}

.main {
  float: none;
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.content-box {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px 8px;
}

.container_24 { width: auto; margin: 0; }
.container_24 > header { display: block; }

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */

.col-1.logo { margin: 0 0 16px; }
.col-1.logo header { display: block; }
.col-1.logo h1 { margin: 0; padding: 0; }

.left-column h1 a {
  display: block;
  width: 184px;
  height: 80px;
  text-indent: -5000px;
  overflow: hidden;
  background: url(../../images/logo.png) 0 0 / contain no-repeat;
  border-radius: 10px;
}

/* --------------------------------------------------------------------------
   Programm-Navigation (Sidebar)
   -------------------------------------------------------------------------- */

.col-1.spacing-1 { margin: 0; padding: 0; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font: 600 15px/1 var(--font);
  cursor: pointer;
}
.nav-toggle::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.site-nav {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
}

.site-nav__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 12px 10px;
}

.sf-menu { list-style: none; margin: 0; padding: 0; }

.sf-menu li {
  position: relative;
  margin: 0 0 2px;
  border-radius: 10px;
  background-size: 26px 26px !important;
  background-position: 12px 50% !important;
  background-repeat: no-repeat !important;
}

.sf-menu li a {
  display: block;
  padding: 9px 12px 9px 48px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
  border-radius: 10px;
}

.sf-menu li a:hover { background: var(--accent-soft); color: var(--accent-dark); }

.sf-menu li.current { background-color: var(--accent-soft) !important; }
.sf-menu li.current a { color: var(--accent-dark); font-weight: 600; }

.sf-menu li.is-free a::after {
  content: "kostenlos";
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Kopfzeile im Inhalt: Hauptmenü und Sprachwahl
   -------------------------------------------------------------------------- */

.site-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 0 0 16px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--line);
}

.top-menu { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.top-menu li { margin: 0; padding: 0; }
.top-menu li a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.top-menu li a:hover, .top-menu li a.is-active { background: var(--accent-soft); color: var(--accent-dark); }

.lang-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.lang-switch__label { font-size: 12px; color: var(--text-muted); margin-right: 6px; }
.lang-switch a {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-muted);
  text-decoration: none;
}
.lang-switch a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.lang-switch a.is-active { background: var(--accent); color: #fff; }

/* --------------------------------------------------------------------------
   Typografie im Inhalt
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 { color: var(--text); margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; padding: 0; margin: 1.6em 0 .5em; position: relative; padding-left: 14px; }
h2::before {
  content: "";
  position: absolute;
  left: 0; top: .2em; bottom: .2em;
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
}
h3 { font-size: 1.1rem; padding: 0; margin: 1.4em 0 .4em; }

ul, ol { padding-left: 1.3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

table { border-collapse: collapse; }
td, th { padding: 6px 10px; vertical-align: top; }

/* --------------------------------------------------------------------------
   Programmseite: Infoblock, Screenshots, Beschreibung
   -------------------------------------------------------------------------- */

/* Infoblock: 3D-Box links, Text rechts (im Markup per inline float) */
.container_24 > header > div:first-of-type > div:first-child:has(> div[style*="float:left"]) {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
  padding: 0 0 8px;
}
.container_24 > header > div:first-of-type > div:first-child > div[style*="float:left"] {
  float: none !important;
}
.container_24 > header > div:first-of-type > div:first-child > div[style*="width:360px"] {
  width: auto !important;
  flex: 1 1 320px;
  padding-left: 0 !important;
  font-size: 15px;
  line-height: 1.7;
}
.container_24 > header > div:first-of-type > div:first-child > div[style*="width:360px"] > b:first-child {
  display: block;
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 6px;
}
.container_24 > header a[data-lightbox] img[src*="3DBox"] {
  width: 220px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: #fff;
}

/* Screenshot-Galerie */
a[data-lightbox] img:not([src*="3DBox"]) {
  width: 160px;
  margin: 0 10px 10px 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: transform .15s ease, box-shadow .15s ease;
}
a[data-lightbox]:hover img:not([src*="3DBox"]) {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   Formulare und Buttons
   -------------------------------------------------------------------------- */

input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input:not([type]), select, textarea {
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid #c9d2cd;
  border-radius: 10px;
  padding: 9px 12px;
  max-width: 100%;
}
input:not([type]):focus, input[type="text"]:focus, input[type="email"]:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
textarea { min-height: 120px; }

input[type="submit"], input[type="button"], button, .btn {
  display: inline-block;
  font: 600 15px/1.2 var(--font);
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  padding: 11px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, transform .1s ease;
}
input[type="submit"]:hover, input[type="button"]:hover, button:hover, .btn:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--accent-dark); border: 2px solid var(--accent); padding: 9px 18px; }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }

form { margin: 0; }

/* Alte Formulare mit inline-Floats (Kontakt, Support, Kauf): Beschriftung über dem Feld */
form div[style*="float:left"] {
  float: none !important;
  width: auto !important;
  text-align: left !important;
  padding-left: 0 !important;
  padding-top: 0 !important;
}
form div[style*="float:left"][style*="text-align:right"] {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
form div[style*="padding:10px"] { padding: 0 0 14px !important; margin: 0 !important; }
form input[style*="width"], form select, form textarea { width: 100% !important; max-width: 520px; }

/* --------------------------------------------------------------------------
   Startseite
   -------------------------------------------------------------------------- */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 40px;
  padding: 28px 32px;
  margin: 0 0 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f1f7e6 0%, #e7f1d6 60%, #dfeccb 100%);
}
.hero__text { flex: 1 1 360px; }
.hero__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); margin: 0 0 8px; }
.hero__title { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; margin: 0 0 12px; }
.hero__lead { font-size: 1.05rem; color: var(--text-muted); margin: 0 0 20px; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visual { flex: 0 1 260px; display: flex; justify-content: center; }
.hero__visual img { width: 220px; border-radius: 14px; box-shadow: var(--shadow); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.feature-grid li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  color: var(--text-muted);
}
.feature-grid b { display: block; color: var(--text); margin-bottom: 2px; font-size: 15px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 14px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 14px; font-weight: 600; text-decoration: none; }

.prog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cfe0b4; }
.card__icon { width: 36px; height: 36px; }
.card__title { font-size: 15px; font-weight: 700; margin: 0; }
.card__title a { color: var(--text); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__text { font-size: 13.5px; color: var(--text-muted); margin: 0; }
.card__badge {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 20px 24px;
  margin: 0 0 32px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid #d6e6b9;
}
.callout__icon { width: 56px; height: 56px; border-radius: 12px; }
.callout__text { flex: 1 1 320px; }
.callout__text h2 { margin: 0 0 4px; padding: 0; }
.callout__text h2::before { display: none; }
.callout__text p { margin: 0; color: var(--text-muted); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}
.service-grid .card { gap: 6px; }
.service-grid .card p { margin: 0; font-size: 14px; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Fußzeile
   -------------------------------------------------------------------------- */

.site-footer {
  margin: 32px -28px 0;
  padding: 24px 28px 20px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  background: #fafbfa;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px 24px;
  margin: 0 0 16px;
}
.site-footer h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 4px; font-size: 14px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent-dark); }
.text-bot { font-size: 13px; color: var(--text-muted); padding-top: 12px; border-top: 1px solid var(--line); }
.text-bot a { color: var(--text-muted); text-decoration: none; }
.text-bot a:hover { color: var(--accent-dark); }

/* Alte Hilfsklassen, die in einzelnen Seiten noch vorkommen */
.grid_24 { width: auto; margin: 0; }
article { display: block; }
.title, .title1, .title2 { margin: 0; padding: 0; }

/* --------------------------------------------------------------------------
   Mobil
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .frame { flex-direction: column; gap: 16px; padding: 12px 12px 32px; }

  .left-column {
    width: 100%;
    flex: none;
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .col-1.logo { margin: 0; }
  .left-column h1 a { width: 150px; height: 65px; }

  .col-1.spacing-1 { display: contents; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; order: 10; }
  .site-nav.is-open { display: block; }

  .content-box { padding: 18px 16px 4px; border-radius: 12px; }
  .site-footer { margin: 24px -16px 0; padding: 20px 16px 16px; }
  .hero { padding: 20px; }
  .hero__visual { display: none; }

  .container_24 > header a[data-lightbox] img[src*="3DBox"] { width: 170px; }
  a[data-lightbox] img:not([src*="3DBox"]) { width: calc(50% - 10px); }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .top-menu li a { padding: 7px 10px; font-size: 14px; }
  .site-topbar { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Sprachunabhaengiges Badge in der Navigation (Text aus data-badge) */
.sf-menu li a[data-badge]::after {
  content: attr(data-badge);
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}
