:root{
  --bg: #ffffff;
  --soft: rgba(55, 53, 47, 0.03);
  --softHover: rgba(55, 53, 47, 0.06);
  --primary: rgba(55, 53, 47, 0.9);
  --primaryHover: rgba(55, 53, 47, 0.82);
  --radius: 12px;
  --max-width: var(--max, 900px);
  --border: rgba(55, 53, 47, 0.12);

}

/* nutzt deine index.html */
.container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 16px 56px;
}
body {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display",
    "Segoe UI", Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.55;
}
/* Cover */
.cover{
  width: 100%;
  height: min(30vh, 260px);
  border-radius: var(--radius);
  overflow: hidden;
  background: #eee;
  margin: 8px 0 18px;
}
.cover img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center 88.02%;
  display:block;
}

/* helpers */
.muted{ color: var(--muted); }
.note{ font-style: italic; color: var(--muted); }

/* Link list */
.link-list{
  margin: 12px 0 18px;
  padding: 0;
  list-style: none;
  border-left: 3px solid rgba(55,53,47,0.09);
  padding-left: 14px;
}
.link-list li{ margin: 8px 0; }

/* Grid + cards */
.grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 16px 0 6px;
}
@media (min-width: 720px){
  .grid{ grid-template-columns: repeat(3, 1fr); }
}
.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}

/* CTA buttons */
.cta-row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 4px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(55,53,47,0.16);
  background: var(--soft);
  color: rgba(55,53,47,0.88);
  text-decoration:none;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 650;
  flex: 1 1 240px;
  min-height: 42px;
}
.btn:hover{ background: var(--softHover); }
.btn.primary{
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn.primary:hover{ background: var(--primaryHover); }

/* Bookmark preview */
a.bookmark{
  display: flex;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  margin: 12px 0 6px;
  background: #fff;
  align-items: stretch; /* erlaubt Bild = volle Höhe */

}

.bookmark-image{
  width: 34%;
  min-width: 160px;

  /* das macht das echte Cropping */
  height: auto;      /* Bild darf sich strecken */
  object-fit: cover;

  /* hier steuerst du den Bildausschnitt */
  object-position: center 45%;

  display: block;
}
.bookmark-body{
  padding: 12px 14px;
  flex: 1 1 auto;
  min-width: 0;
  display:flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.bookmark-title{
  font-weight: 700;
  margin:0;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.bookmark-desc{
  margin:0;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bookmark-href{
  font-size: 0.85rem;
  color: var(--muted);
  display:flex;
  align-items:center;
  gap: 8px;
  word-break: break-word;
}
.bookmark-icon{
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex: 0 0 auto;
}

@media (max-width: 640px){
  a.bookmark{
    flex-direction: column;
    min-height: 0;
  }
  .bookmark-image{
    width: 100%;
    min-width: 0;
    height: 180px;       /* hier bewusst fix, damit cover greift */
    object-fit: cover;
    object-position: center 45%;
  }
}

/* Footer wie in index.html */
footer{
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid rgba(55,53,47,0.09);
  color: var(--muted);
  font-size: 0.95rem;
}
/* =========================
   Legal pages (Impressum / Datenschutz)
   Scope: body.page-legal
========================= */

html { -webkit-print-color-adjust: exact; }

/* typographic defaults only for legal pages */
body.page-legal{
  line-height: 1.6;
}

body.page-legal main{
  max-width: var(--max, 900px);
  margin: 2.5rem auto;
  padding: 0 1.25rem;
}

/* if a legal page does NOT use .container, this ensures it still looks good */
body.page-legal header{
  margin-bottom: 3rem;
}

/* headings spacing like in your legal CSS */
body.page-legal h1,
body.page-legal h2{
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}

body.page-legal h1{
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

body.page-legal h2{
  font-size: 1.5rem;
  margin: 3rem 0 0.75rem;
}

body.page-legal p{
  margin: 0.75rem 0;
}

body.page-legal ul{
  margin: 0.75rem 0 0.75rem 1.25rem;
  padding: 0;
}

body.page-legal li{
  margin: 0.35rem 0;
}

body.page-legal strong{
  font-weight: 600;
}

body.page-legal a{
  color: inherit;
  text-decoration: underline;
}

/* divider used between EN/DE sections */
body.page-legal hr{
  border: none;
  border-bottom: 1px solid var(--border);
  margin: 3rem 0;
}

/* your legal pages footer margin (doesn't override landingpage footer look) */
body.page-legal footer{
  margin-top: 3rem;
}

/* print */
@media print{
  body.page-legal{ font-size: 11pt; }
  body.page-legal main{ margin: 0; }
}