/*
 Theme Name:   Classica Press Child
 Template:     classica-press
 Description:  Child Theme für Teutarya Chronik
 Version:      1.0.0
 Text Domain:  classica-press-child
*/

/* MD START*/
.single-post .post-thumbnail { display: none; }

.comments-link,
.comment-respond,
#respond,
.meta-login,
.login-link {
  display: none !important;
}
/* ENDE */

/* === Gemeinsame Stellschraube === */
.timeline {

  --left-gutter: 56px;
  position: relative;
  padding-left: var(--left-gutter);
}

/* Vertikale Linie: erzwinge Position */
.timeline::before,
.timeline:before {
  content: "";
  position: absolute;
  left: var(--line-x) !important;  /* falls Theme was überschreibt */
  top: 0; bottom: 0;
  width: 2px;
  background: #ddd;
  z-index: 1;
}

/* Epochen-Banner: im Flow, linksbündig an der Linie */
.timeline-epoch {
  margin: 28px 0 18px;
}

.timeline-epoch .epoch-label {
  /* KEIN position:absolute; KEIN left:… */
  display: inline-block;
  /* Abstand von der linken Kante bis an die Linie + 4px Luft */
  margin-left: 28px; /* ggf. auf deinen Linienwert anpassen */
  transform: none;   /* sicherheitshalber */
  white-space: normal;  /* darf umbrechen */
  max-width: 70%;       /* lange Titel umbrechen statt überzulaufen */
  text-align: left;

  background: #f5efe4;       /* Pergament */
  border: 1px solid #e3dacb;
  padding: 6px 10px;
  border-radius: 8px;
  font-family: "Cinzel", serif;
  font-weight: 700;
  color: #5b0c0c;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}


/* Item */
.timeline-item { position: relative; margin: 0 0 28px; }

/* Dot: zentriert auf der Linie, unabhängig von Größe */
.timeline-item .dot {
  position: absolute;
  left: var(--line-x);
  top: 22px;
  transform: translateX(-50%);      /* Mittelpunkt auf Linie */
  width: 14px; height: 14px;
  background: #7a0c0c;
  border: 3px solid #fff; border-radius: 50%;
  z-index: 2; box-shadow: 0 0 0 2px #7a0c0c22;
}

/* Card stets rechts neben Linie und über Banner */
.timeline-item .card {
  position: relative; z-index: 3;
  margin-left: var(--left-gutter);
  background: #fff; border: 1px solid #eee;
  padding: 14px 16px; border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* Meta/Typo (optional) */
.timeline-item .meta { font-size:.9rem; color:#555; margin-bottom:4px; display:flex; gap:6px; align-items:baseline; flex-wrap:wrap; }
.timeline-item .meta .year { font-family:"Cinzel",serif; font-weight:700; color:#7a0c0c; }

/* Responsive Feinschliff */
@media (max-width: 680px) {
  .timeline { --line-x: 22px; --left-gutter: 48px; }
  .timeline-epoch .epoch-label { font-size:.95rem; }
}

/* 2-Spalten-Layout mit Grid-Areas */
.timeline-item .card {
  display: grid;
  grid-template-columns: 250px 1fr;             /* links Bild, rechts Text */
  grid-template-areas:
    "thumb meta"
    "thumb title"
    "thumb excerpt";
  gap: 5px 16px;
  align-items: start;
  margin-left: var(--left-gutter, 56px);
  background: #fff;
  border: 1px solid #eee;
  padding: 14px 16px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* Bild links – funktioniert mit <a class="thumb-link"><img ...> oder nur <img> */
.timeline-item .card .thumb-link,
.timeline-item .card .timeline-thumb {
  grid-area: thumb;
  display: block;
  width: 100%;
  height: 140px;             /* einheitliche Höhe */
  object-fit: cover;
  border-radius: 6px;
}

/* Rechte Spalte: Meta, Titel, Auszug */
.timeline-item .card .meta   { grid-area: meta;   margin: 0 0 4px; font-size: .9rem; color: #555; display:flex; gap:6px; flex-wrap:wrap; align-items:baseline; }
.timeline-item .card .title  {
	grid-area: title;

	
	 margin: 0 0 4px 0;   /* sehr knapper Abstand */
  font-size: 1.1rem;   /* optional etwas kleiner */
  line-height: 1.2;    /* kompakter */
	
	}
.timeline-item .card .excerpt{
	grid-area: excerpt;
	color:#444;

	 margin: 0;           /* gar kein Extra-Abstand */
  font-size: .9rem;    /* etwas kleinerer Text */
  line-height: 1.35;   /* engerer Zeilenabstand */
	}

/* Mobile: untereinander stapeln */
@media (max-width: 600px) {
  .timeline-item .card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "thumb"
      "meta"
      "title"
      "excerpt";
  }
  .timeline-item .card .timeline-thumb,
  .timeline-item .card .thumb-link { height: auto; }
}

/*Loader per CSS abschalten (Quick & Dirty)*/
#preloader, #loader, #load {
  display: none !important;
  visibility: hidden !important;
}