/* ════════════════════════════════════════
   TRAST DIGITAL — MAIN CSS v2.0
   Pixel-perfect trast.de clone
   Mobile + Tablet + Desktop responsive
════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body.trast-body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #fff;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════ */
.t-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e5e5e5;
}
.t-nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.t-logo { display: flex; align-items: center; }
.t-logo img { height: 28px; width: auto; }

.t-nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
}
.t-nav-links li a {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #3a3aaa;
  padding: 5px 10px;
  border-radius: 2px;
  text-transform: lowercase;
  letter-spacing: 0.3px;
  transition: background 0.2s;
  white-space: nowrap;
}
.t-nav-links li a:hover { background: #2a2a8a; }
.t-nav-links li a.t-nav-kontakt { background: #1a1a3a; }

/* Hamburger */
.t-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.t-burger span {
  display: block;
  width: 22px; height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: 0.25s;
}
.t-burger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.t-burger.open span:nth-child(2) { opacity: 0; }
.t-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Mobile dropdown menu */
.t-mob-menu {
  display: none;
  position: fixed;
  top: 52px; left: 0; right: 0;
  background: #fff;
  border-bottom: 2px solid #e5e5e1;
  z-index: 9998;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.t-mob-menu.open { display: flex; }
.t-mob-menu a {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  padding: 14px 24px;
  border-bottom: 1px solid #f0f0ec;
  text-transform: lowercase;
  transition: 0.15s;
}
.t-mob-menu a:hover { color: #3a3aaa; padding-left: 32px; }
.t-mob-menu a:last-child { border-bottom: none; }

/* ════════════════════════════════════════
   PAGE WRAPPER — pushes content below nav
════════════════════════════════════════ */
.t-wrap { margin-top: 52px; }

/* ════════════════════════════════════════
   HERO SECTION — Home page
   Left: purple-blue gradient + red blob
   Right: blue-tinted team photo
════════════════════════════════════════ */
.t-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
}

.t-hero-left {
  background: linear-gradient(135deg, #4a00c8 0%, #2a44ff 55%, #1a22cc 100%);
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 80px) clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
/* Red glow blob top-right */
.t-hero-left::before {
  content: '';
  position: absolute;
  top: -70px; right: -50px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(220,60,20,0.78) 0%, rgba(220,60,20,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.t-hero-h1 {
  font-size: clamp(17px, 2.8vw, 31px);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

/* Emotion ball */
.t-eball {
  position: absolute;
  bottom: 18px; left: 20px;
  width: 38px; height: 38px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 14px rgba(0,0,0,0.22);
  transition: 0.2s;
}
.t-eball svg { width: 19px; height: 19px; }
.t-eball:hover { transform: scale(1.1); }

.t-hero-right {
  background: #d8d8d4;
  overflow: hidden;
  position: relative;
  min-height: 300px;
}
.t-hero-right img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0) brightness(0.88);
  display: block;
}
/* Blue color overlay */
.t-hero-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 52, 220, 0.44);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ════════════════════════════════════════
   INNER PAGE HERO (all pages except home)
════════════════════════════════════════ */
.t-inner-hero {
  background: linear-gradient(135deg, #4a00c8 0%, #2a44ff 55%, #1a22cc 100%);
  min-height: 210px;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 64px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.t-inner-hero::before {
  content: '';
  position: absolute;
  top: -50px; right: 50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(220,60,20,0.72) 0%, transparent 70%);
  border-radius: 50%;
}
.t-inner-hero h1 {
  font-size: clamp(17px, 3.2vw, 38px);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  line-height: 1.3;
  max-width: 840px;
  position: relative;
  z-index: 1;
}

/* ════════════════════════════════════════
   ALTERNATING 2-COLUMN BLOCKS
   Exact trast.de checkerboard layout
════════════════════════════════════════ */
.t-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 290px;
}

/* Image cell */
.t-img {
  overflow: hidden;
  background: #c8c8c4;
  position: relative;
  min-height: 290px;
}
.t-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Gray placeholder (no image) */
.t-img-gray { background: #c4c4c0; }
.t-img-gray::after { display: none !important; }

/* Green tint overlay */
.t-img-green img { filter: saturate(0) brightness(0.82); }
.t-img-green::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0, 145, 60, 0.52);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Blue tint overlay */
.t-img-blue img { filter: saturate(0) brightness(0.82); }
.t-img-blue::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(20, 56, 220, 0.46);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Text cell */
.t-txt {
  background: #e8e8e4;
  padding: clamp(28px, 4vw, 56px) clamp(24px, 3.5vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.t-txt-white { background: #fff; }

.t-txt p {
  font-size: clamp(12px, 1.15vw, 14px);
  color: #555;
  line-height: 1.78;
}
.t-txt p strong { color: #1a1a1a; font-weight: 700; }

/* ════════════════════════════════════════
   INNER CONTENT (text sections)
════════════════════════════════════════ */
.t-content {
  padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 64px);
}
.t-content p {
  font-size: clamp(13px, 1.3vw, 15px);
  color: #555;
  line-height: 1.82;
  max-width: 740px;
  margin-bottom: 16px;
}
.t-content p:last-child { margin-bottom: 0; }
.t-content p strong { color: #1a1a1a; font-weight: 700; }

/* ════════════════════════════════════════
   WARUM PILLARS
════════════════════════════════════════ */
.t-pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: #e2e2de;
  border: 1px solid #e2e2de;
  margin: 0 clamp(24px, 4vw, 64px) clamp(32px, 4vw, 64px);
}
.t-pillar {
  background: #fff;
  padding: clamp(24px, 3vw, 42px) clamp(18px, 2.5vw, 32px);
  transition: background 0.2s;
}
.t-pillar:hover { background: #f2f2ee; }
.t-pillar-word {
  font-size: clamp(20px, 2.8vw, 34px);
  font-weight: 700;
  color: #3a3aaa;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.t-pillar-def { font-size: 13px; color: #666; line-height: 1.65; }

/* ════════════════════════════════════════
   NEIN PAGE
════════════════════════════════════════ */
.t-nein {
  padding: 0 clamp(24px, 4vw, 64px) clamp(40px, 5vw, 64px);
}
.t-nein-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: clamp(18px, 2.5vw, 30px) 0;
  border-bottom: 1px solid #e5e5e1;
}
.t-nein-item:first-child { border-top: 1px solid #e5e5e1; }
.t-nein-marker {
  font-size: clamp(14px, 1.8vw, 22px);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  flex-shrink: 0;
  min-width: 100px;
}
.t-nein-marker em { color: #3a3aaa; font-style: normal; }
.t-nein-text {
  font-size: clamp(15px, 2.2vw, 26px);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
}

/* ════════════════════════════════════════
   TEAM (Wer sind wir page)
════════════════════════════════════════ */
.t-team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 64px) 0;
  gap: 1px;
  background: #e2e2de;
}
.t-member { background: #fff; overflow: hidden; }
.t-member-photo {
  aspect-ratio: 4 / 3;
  background: #c8c8c4;
  position: relative;
  overflow: hidden;
}
.t-member-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0) brightness(0.82);
}
.t-member-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(20, 50, 220, 0.42);
  mix-blend-mode: multiply;
}
.t-member-info { padding: clamp(20px, 3vw, 36px); }
.t-member-name { font-size: clamp(17px, 2vw, 25px); font-weight: 700; margin-bottom: 4px; }
.t-member-role {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: #3a3aaa; margin-bottom: 14px;
}
.t-member-bio { font-size: 13px; color: #555; line-height: 1.72; margin-bottom: 16px; }
.t-member-contact { font-size: 13px; color: #555; line-height: 2; }
.t-member-contact a { color: #3a3aaa; font-weight: 600; }

/* ════════════════════════════════════════
   TESTIMONIALS (Wie nutzt das page)
════════════════════════════════════════ */
.t-testimonials {
  padding: 0 clamp(24px, 4vw, 64px) clamp(40px, 5vw, 64px);
}
.t-testimonial {
  padding: clamp(20px, 3vw, 36px) 0;
  border-bottom: 1px solid #e5e5e1;
}
.t-testimonial:first-child { border-top: 1px solid #e5e5e1; }
.t-testimonial blockquote {
  font-size: clamp(13px, 1.3vw, 15px);
  color: #555; line-height: 1.82;
  font-style: italic; margin-bottom: 12px;
  border-left: 3px solid #3a3aaa;
  padding-left: 18px;
}
.t-testimonial cite {
  font-size: 13px; font-weight: 700;
  color: #1a1a1a; font-style: normal;
  display: block; padding-left: 21px;
}
.t-testimonial cite span { color: #888; font-weight: 400; }

/* ════════════════════════════════════════
   SERVICE LIST (Was machen wir)
════════════════════════════════════════ */
.t-services {
  list-style: none;
  padding: 0 clamp(24px, 4vw, 64px) clamp(36px, 5vw, 56px);
}
.t-services li {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #e5e5e1;
  font-size: 15px; font-weight: 600; color: #1a1a1a;
}
.t-services li:first-child { border-top: 1px solid #e5e5e1; }
.t-services li::before { content: '—'; color: #3a3aaa; font-weight: 700; }

/* ════════════════════════════════════════
   PARTNER TAGS (Was machen wir)
════════════════════════════════════════ */
.t-partners {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 clamp(24px, 4vw, 64px) clamp(40px, 5vw, 64px);
}
.t-partner {
  border: 1px solid #ccc;
  padding: 7px 14px; border-radius: 2px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: #444; transition: 0.2s;
}
.t-partner a { color: inherit; }
.t-partner:hover { border-color: #3a3aaa; color: #3a3aaa; }

/* ════════════════════════════════════════
   CONTACT (Kontakt page)
════════════════════════════════════════ */
.t-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.t-contact-options { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.t-contact-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border: 1px solid #d5d5d1; border-radius: 2px;
  background: #fff; font-size: 14px; color: #333;
  transition: 0.2s;
}
.t-contact-opt:hover { border-color: #3a3aaa; color: #3a3aaa; padding-left: 24px; }
.t-contact-opt::before { content: '→'; color: #3a3aaa; font-weight: 700; flex-shrink: 0; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.t-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f5f5f2;
  border-top: 1px solid #e0e0dc;
}
.t-footer-col { padding: clamp(28px, 4vw, 52px) clamp(24px, 3.5vw, 52px); }
.t-footer-title {
  font-size: 13px; font-weight: 700;
  color: #1a1a1a; margin-bottom: 14px;
  text-transform: lowercase;
}
.t-footer-addr { font-size: 13px; color: #666; line-height: 2.1; }
.t-footer-addr a { color: #3a3aaa; }
.t-footer-links { display: flex; flex-direction: column; gap: 8px; }
.t-footer-link a {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #555;
  padding: 10px 14px;
  border: 1px solid #d5d5d1; border-radius: 2px;
  background: #fff; transition: 0.2s;
}
.t-footer-link a:hover { border-color: #3a3aaa; color: #3a3aaa; padding-left: 20px; }
.t-footer-link a::before { content: '→'; font-size: 12px; color: #3a3aaa; flex-shrink: 0; }

.t-footer-bar {
  background: #1a1a1a;
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  padding: 14px clamp(24px, 3.5vw, 52px);
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.t-footer-bar a { color: rgba(255,255,255,0.45); transition: 0.2s; }
.t-footer-bar a:hover { color: #fff; }

/* ════════════════════════════════════════
   BACK TO TOP
════════════════════════════════════════ */
.t-btt {
  position: fixed; bottom: 22px; right: 22px;
  width: 42px; height: 42px;
  background: #3a3aaa; color: #fff;
  border: none; border-radius: 50%;
  cursor: pointer; font-size: 17px;
  opacity: 0; transition: 0.25s; z-index: 999;
  display: flex; align-items: center; justify-content: center;
}
.t-btt.show { opacity: 1; }
.t-btt:hover { background: #2a2a8a; transform: translateY(-2px); }

/* ════════════════════════════════════════
   RESPONSIVE — TABLET (≤1024px)
════════════════════════════════════════ */
@media (max-width: 1024px) {
  .t-pillars { grid-template-columns: repeat(3, 1fr); }
  .t-team { grid-template-columns: 1fr 1fr; }
  .t-contact-grid { grid-template-columns: 1fr; }
  .t-footer { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════
   RESPONSIVE — MOBILE (≤767px)
════════════════════════════════════════ */
@media (max-width: 767px) {
  /* Show burger, hide desktop links */
  .t-nav-links { display: none; }
  .t-burger { display: flex; }

  /* Hero stacks vertically */
  .t-hero { grid-template-columns: 1fr; }
  .t-hero-left { min-height: 300px; }
  .t-hero-right { min-height: 260px; }

  /* All blocks stack */
  .t-block { grid-template-columns: 1fr; }
  .t-img { min-height: 230px; }

  /* Block text-first: swap order on mobile */
  .t-block-tf .t-txt { order: 1; }
  .t-block-tf .t-img { order: 2; }

  /* Pillars 2-col on mobile */
  .t-pillars {
    grid-template-columns: 1fr 1fr;
    margin-left: 16px; margin-right: 16px;
  }

  /* Team single col */
  .t-team { grid-template-columns: 1fr; }

  /* Footer single col */
  .t-footer { grid-template-columns: 1fr; }
  .t-footer-bar { flex-direction: column; text-align: center; }

  /* Nein items */
  .t-nein-item { flex-direction: column; gap: 6px; }
  .t-nein-marker { min-width: auto; }
}

@media (max-width: 480px) {
  .t-pillars { grid-template-columns: 1fr; }
  .t-nav-in { padding: 0 16px; }
}
