/* === STARTSEITE - ABSCHNITTE === */

/* Hero */
.tt-hero {
  text-align: center;
  padding: 8rem 1rem 6rem;
  background: linear-gradient(180deg, var(--tt-bg) 0%, rgba(0,0,0,0.03) 100%);
}
.tt-hero h1 {
  font-size: 3rem;
  margin-bottom: .5rem;
  color: var(--tt-text);
}
.tt-hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--tt-text);
}

/* Kachel-Grid */
.tt-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 2rem;
  padding: 4rem 1rem;
  text-align: center;
}
.tt-kachel {
  background: var(--tt-bg);
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  padding: 2rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tt-kachel:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* Bloglist + Projekte */
.tt-bloglist, .tt-projects {
  padding: 4rem 1rem;
}

/* Allgemein */
.tt-section {
  margin-bottom: 4rem;
}

body.dark-mode .tt-kachel {
  background: #1c1c1c;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* === Blog Cards Fix (v1.6) === */
.tt-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tt-card-modern {
  display: flex;
  flex-direction: column;
  background: var(--tt-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.tt-card-modern:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

.tt-card-img {
  display: block;
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.tt-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tt-card-title a {
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--tt-text);
}

.tt-card-excerpt {
  flex: 1;
  margin: 1rem 0 1.5rem;
  color: var(--tt-text);
  line-height: 1.6;
}

.tt-card-button {
  align-self: flex-start;
  background-color: var(--tt-accent, #0078ff);
  color: #fff !important;
  border-radius: 6px;
  padding: 0.5rem 1.2rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .25s ease;
}

.tt-card-button:hover {
  background-color: #005fcc;
}

body.dark-mode .tt-card-modern {
  background: #1b1b1b;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

/* === Projekt-Teaser-Sektion === */
.tt-projekt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tt-projekt-card {
  background: var(--tt-bg, #fff);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tt-projekt-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.tt-projekt-logo {
  text-align: center;
  margin-bottom: 1rem;
}
.tt-projekt-logo img {
  max-width: 100px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.tt-projekt-titel {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.tt-projekt-beschreibung {
  flex: 1;
  color: var(--tt-text, #333);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.tt-projekt-status {
  display: inline-block;
  background: #0078ff;
  color: #fff;
  font-size: 0.85rem;
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.2rem;
}
.tt-projekt-button {
  align-self: flex-start;
  background: var(--tt-accent, #0078ff);
  color: #fff !important;
  border-radius: 6px;
  padding: 0.5rem 1.2rem;
  text-decoration: none;
  font-weight: 500;
  transition: background-color .25s ease;
}
.tt-projekt-button:hover {
  background: #005fcc;
}

/* Dark Mode */
body.dark-mode .tt-projekt-card {
  background: #1b1b1b;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
body.dark-mode .tt-projekt-status {
  background: #33aaff;
}

/* === Projekt-Detailseite === */
.tt-projekt-detail {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.tt-projekt-hero {
  text-align: center;
  margin-bottom: 2rem;
}
.tt-projekt-hero-img {
  width: 100%;
  height: 280px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}
.tt-projekt-titel {
  font-size: 2rem;
  font-weight: 700;
}

.tt-projekt-content {
  background: var(--tt-bg, #fff);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.tt-projekt-text p {
  line-height: 1.7;
  margin-bottom: 1rem;
}
.tt-projekt-status-box {
  margin-top: 2rem;
  padding: 1rem;
  border-left: 4px solid var(--tt-accent, #0078ff);
  background: rgba(0,120,255,0.05);
  border-radius: 8px;
}
.tt-projekt-status-label {
  font-weight: 600;
  margin-right: .5rem;
}
body.dark-mode .tt-projekt-content {
  background: #1a1a1a;
  color: #ddd;
}
body.dark-mode .tt-projekt-status-box {
  border-left-color: #33aaff;
  background: rgba(51,170,255,0.1);
}
