/* hdg Tresore – modernisierte Optik, Layout wie bisher (3 Spalten) */
:root {
  --green: #006600;
  --green-dark: #004d00;
  --ink: #1f2933;
  --muted: #7b8794;
  --line: #e4e7eb;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff url(../img/bg1.gif) no-repeat right 640px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }
a:focus-visible { outline: 3px solid #7fbf7f; outline-offset: 2px; border-radius: 3px; }
img { border: 0; }

/* unsichtbarer Keyword-Text wie bisher */
.kl { font-size: 1pt; color: #fefefe; line-height: 1; }

/* ---------- Drei-Spalten-Layout wie das Original ---------- */
.page {
  display: grid;
  grid-template-columns: 280px minmax(0, 700px) 405px;
  justify-content: space-between;
  gap: 0 24px;
  padding: 18px 22px 0;
  max-width: 1500px;
  margin: 0 auto;
}

/* Linke Spalte */
.nav-images { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 0 0 0 8px; }
.nav-images a { display: block; line-height: 0; }
.nav-images img { transition: opacity .2s, transform .2s; }
.nav-images a:hover img { opacity: .65; transform: translateX(3px); }

.nav-links { margin: 36px 0 0; padding: 0 0 0 8px; list-style: none; display: grid; gap: 2px; }
.nav-links a {
  display: inline-block; padding: 3px 0; text-decoration: none; font-size: 1rem;
  border-bottom: 1px solid transparent; transition: color .15s, border-color .15s;
}
.nav-links a:hover { color: var(--green); border-bottom-color: var(--green); }
.preisliste { display: inline-block; margin: 32px 0 0 4px; line-height: 0; transition: transform .2s; }
.preisliste:hover { transform: scale(1.04); }

/* Mitte: Produktkacheln */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-content: start; }
.tile {
  display: flex; flex-direction: column; background: #fff; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 30, 20, .05);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15, 30, 20, .14); border-color: #cfd5da; color: var(--ink); }
.tile .pic { flex: 1; display: flex; align-items: center; justify-content: center; padding: 14px 10px 12px; min-height: 160px; }
.tile .pic img { height: 125px; width: auto; max-width: 100%; object-fit: contain; transition: transform .3s; }
.tile:hover .pic img { transform: scale(1.06); }
.tile .label {
  padding: 8px 12px; text-align: center; font-size: .9rem; font-weight: 600; letter-spacing: .01em; line-height: 1.3;
  display: flex; align-items: center; justify-content: center; min-height: 52px;
}

/* Rechte Spalte */
.logos { display: flex; line-height: 0; }
.logos img { height: 80px; width: auto; }
.contact { margin: 18px 0 0 150px; width: 250px; font-size: 1rem; }
.contact p { margin: 0 0 1rem; }
.contact .city { font-weight: 600; }
.contact a { color: var(--green); }
.contact a:hover { color: var(--green-dark); }
.contact .key { display: inline-block; margin-top: 4px; line-height: 0; }
.contact .key img { border-radius: 6px; transition: transform .2s; }
.contact .key:hover img { transform: scale(1.04); }

/* Fuß */
.footer { text-align: center; padding: 18px 16px 24px; }
.footer .quote { max-width: 100%; height: auto; }
.footer small { display: block; margin-top: 18px; font-size: .78rem; line-height: 1.7; color: var(--muted); }
.footer small a { color: #5f6b77; }
.footer small a:hover { color: var(--green); }
.legal-links { margin-top: 18px; font-size: .88rem; display: flex; justify-content: center; gap: 22px; }
.legal-links a { color: #52606d; text-decoration: none; }
.legal-links a:hover { color: var(--green); text-decoration: underline; }

/* ---------- Unterseiten (grün wie bisher, ruhiger) ---------- */
body.sub { background: #088000; color: #fff; padding: 28px 24px 40px; }
body.sub a { color: #fff; }
body.sub a:hover { color: #d8f5d0; }
body.sub h1 { text-align: center; font-weight: 600; letter-spacing: .01em; margin: 0 0 1.6rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
body.sub .list { max-width: 720px; margin: 0 auto; }
body.sub .list a { display: inline-block; padding: 2px 0; text-underline-offset: 3px; }
body.sub .list .gap { height: 1.4rem; }

body.sub .tbl-wrap { overflow-x: auto; max-width: 1200px; margin: 0 auto; }
body.sub table.used { width: 100%; border-collapse: collapse; background: rgba(0, 0, 0, .12); border-radius: 10px; overflow: hidden; }
body.sub table.used th, body.sub table.used td { padding: 12px 10px; text-align: center; border: 1px solid rgba(255, 255, 255, .55); vertical-align: middle; }
body.sub table.used th { background: rgba(0, 0, 0, .22); font-weight: 600; font-size: .92rem; }
body.sub table.used td { font-size: .95rem; }
body.sub table.used img { margin: 0 auto; max-width: 110px; height: auto; }

body.sub .dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; max-width: 980px; margin: 0 auto; }
body.sub .dl a {
  display: flex; align-items: flex-end; justify-content: center; padding: 10px; background: rgba(255, 255, 255, .08);
  border-radius: 10px; transition: transform .2s, background .2s;
}
body.sub .dl a:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .16); }
body.sub .dl img { max-width: 100%; height: auto; }

/* Impressum / Datenschutz: Inhalt unverändert, nur lesbarer */
body.legal { max-width: 860px; margin: 0 auto; padding: 32px 22px 56px; background: #fff; }
body.legal h1, body.legal h2, body.legal h3 { line-height: 1.25; color: #14202b; }
body.legal h1 { font-size: 2rem; }
body.legal h2 { font-size: 1.7rem; }
body.legal h3 { font-size: 1.1rem; margin-top: 1.8rem; }
body.legal p { max-width: 75ch; }

/* ---------- Responsiv ---------- */
@media (max-width: 1180px) {
  .page { grid-template-columns: 250px minmax(0, 1fr); }
  .col-right { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start; margin-top: 24px; }
  .contact { margin: 0; }
  body { background-position: right bottom; }
}
@media (max-width: 760px) {
  body { background-image: none; }
  .page { grid-template-columns: 1fr; padding: 14px; }
  .nav-images { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; padding: 0; }
  .nav-links { padding: 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile .pic { min-height: 130px; padding: 10px 6px; }
  .tile .pic img { height: 100px; }
  .tile .label { font-size: .8rem; padding: 6px 8px; }
  .logos img { height: 56px; }
  .contact { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
