/*
 * See-IT-Service 4.6.0 – gezielte Ergänzungen zum vorhandenen Design.
 * Keine Regel verändert Header, Hauptnavigation oder Footer.
 */

/* Sicherer Rahmen für im Admin-Editor gepflegte Speziallayouts. */
.seeit-editor-scope,
.seeit-editor-layout,
.seeit-appointment-embed {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.seeit-editor-scope *,
.seeit-editor-layout *,
.seeit-appointment-embed * {
  box-sizing: border-box;
}

.seeit-editor-scope img,
.seeit-editor-layout img,
.seeit-appointment-embed img {
  max-width: 100%;
  height: auto;
}

.seeit-editor-scope iframe,
.seeit-editor-layout iframe,
.seeit-appointment-embed iframe,
.seeit-trusted-embed {
  display: block;
  width: 100% !important;
  max-width: 100%;
  border: 0;
  background: #fff;
}

.seeit-appointment-embed {
  position: relative;
  overflow: visible;
  margin: 28px 0 18px;
  padding: clamp(14px, 2.4vw, 28px);
  border: 1px solid #dbe5ec;
  border-top: 5px solid #0674ad;
  background: #fff;
  box-shadow: 0 16px 38px rgba(3, 40, 73, .10);
}

.seeit-appointment-embed .seeit-etermin-embed,
.seeit-etermin-embed {
  min-height: 860px;
}

/* Hochwertige, kompakte Bereiche für Aktuelles und Werkstattfälle. */
.seeit-showcase {
  --seeit-showcase-navy: #082b50;
  --seeit-showcase-blue: #0874ad;
  --seeit-showcase-cyan: #0a96ae;
  --seeit-showcase-orange: #f39a16;
  --seeit-showcase-text: #263947;
  --seeit-showcase-muted: #647681;
  --seeit-showcase-line: #dbe5ea;
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 6vw, 86px) 0;
  background:
    radial-gradient(circle at 92% 0, rgba(8,116,173,.12), transparent 34%),
    linear-gradient(180deg, #f8fafb 0%, #fff 100%);
}

.seeit-showcase--home {
  padding-top: clamp(46px, 5.5vw, 76px);
  padding-bottom: clamp(52px, 6vw, 84px);
}

.seeit-showcase .container {
  box-sizing: border-box;
  padding-right: clamp(18px, 3vw, 42px);
  padding-left: clamp(18px, 3vw, 42px);
}

.seeit-showcase-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  margin-bottom: clamp(26px, 3.4vw, 44px);
}

.seeit-showcase-copy {
  max-width: 830px;
}

.seeit-showcase-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--seeit-showcase-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.seeit-showcase-kicker::before {
  width: 34px;
  height: 3px;
  background: var(--seeit-showcase-orange);
  content: "";
}

.seeit-showcase h1,
.seeit-showcase h2 {
  margin: 0;
  color: var(--seeit-showcase-navy);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.seeit-showcase h1 {
  font-size: clamp(38px, 4.5vw, 62px);
}

.seeit-showcase h2 {
  font-size: clamp(32px, 3.6vw, 50px);
}

.seeit-showcase-intro {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--seeit-showcase-muted);
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.68;
}

.seeit-showcase-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 48px;
  padding: 11px 19px;
  border: 1px solid var(--seeit-showcase-blue);
  color: var(--seeit-showcase-blue);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.seeit-showcase-more:hover,
.seeit-showcase-more:focus {
  color: #fff;
  background: var(--seeit-showcase-blue);
  transform: translateY(-1px);
}

.seeit-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.2vw, 30px);
}

.seeit-entry-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--seeit-showcase-line, #dbe5ea);
  border-top: 5px solid var(--seeit-showcase-blue, #0874ad);
  background: #fff;
  box-shadow: 0 15px 38px rgba(8,43,80,.10);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.seeit-entry-card:nth-child(3n+2) {
  border-top-color: var(--seeit-showcase-orange, #f39a16);
}

.seeit-entry-card:nth-child(3n+3) {
  border-top-color: var(--seeit-showcase-cyan, #0a96ae);
}

.seeit-entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 21px 48px rgba(8,43,80,.16);
}

.seeit-entry-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eaf0f4;
}

.seeit-entry-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.seeit-entry-card:hover .seeit-entry-media img {
  transform: scale(1.035);
}

.seeit-entry-type {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(8,43,80,.93);
  box-shadow: 0 7px 18px rgba(0,0,0,.18);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.seeit-entry-body {
  display: flex;
  min-height: 236px;
  flex: 1;
  flex-direction: column;
  padding: clamp(20px, 2vw, 27px);
}

.seeit-entry-meta {
  display: flex;
  min-height: 18px;
  flex-wrap: wrap;
  gap: 5px 13px;
  margin-bottom: 10px;
  color: var(--seeit-showcase-muted, #647681);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.seeit-entry-meta span:not(:first-child)::before {
  margin-right: 10px;
  color: #a8b7c0;
  content: "•";
}

.seeit-entry-card h3 {
  margin: 0 0 12px;
  color: var(--seeit-showcase-navy, #082b50);
  font-size: clamp(20px, 1.8vw, 25px);
  font-weight: 450;
  line-height: 1.28;
}

.seeit-entry-card h3 a {
  color: inherit;
  text-decoration: none;
}

.seeit-entry-card h3 a:hover,
.seeit-entry-card h3 a:focus {
  color: var(--seeit-showcase-blue, #0874ad);
}

.seeit-entry-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 18px;
  color: var(--seeit-showcase-text, #263947);
  font-size: 14px;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.seeit-entry-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: var(--seeit-showcase-blue, #0874ad);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .02em;
  text-decoration: none;
}

.seeit-entry-link span {
  color: var(--seeit-showcase-orange, #f39a16);
  font-size: 18px;
  transition: transform .18s ease;
}

.seeit-entry-link:hover span,
.seeit-entry-link:focus span {
  transform: translateX(4px);
}

.seeit-showcase-empty {
  padding: 28px;
  border-left: 5px solid var(--seeit-showcase-blue);
  color: var(--seeit-showcase-text);
  background: #fff;
  box-shadow: 0 12px 30px rgba(8,43,80,.08);
}

/* Fixdesk-Auftragsintegration: keine abgeschnittenen oder überlagerten Felder. */
.seeit-fixdesk-shell {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 640px;
  overflow: visible;
  margin: 18px 0 30px;
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid #d8e3ea;
  border-top: 5px solid #0874ad;
  background: #fff;
  box-shadow: 0 16px 40px rgba(8,43,80,.10);
  box-sizing: border-box;
}

.seeit-fixdesk-shell *,
#fixdeskform,
#fixdeskform * {
  box-sizing: border-box;
}

#fixdeskform {
  width: 100%;
  min-width: 0;
  min-height: 560px;
  overflow: visible;
}

.seeit-fixdesk-loading {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 24px;
  color: #506676;
  background: #f7fafb;
  text-align: center;
}

.seeit-fixdesk-fallback {
  margin: 18px 0 0;
  color: #5f7280;
  font-size: 13px;
  line-height: 1.55;
}

.seeit-fixdesk-fallback a {
  color: #0874ad;
  font-weight: 800;
}

@media (max-width: 1050px) {
  .seeit-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seeit-entry-card:nth-child(3n+2),
  .seeit-entry-card:nth-child(3n+3) {
    border-top-color: var(--seeit-showcase-blue, #0874ad);
  }

  .seeit-entry-card:nth-child(even) {
    border-top-color: var(--seeit-showcase-orange, #f39a16);
  }
}

@media (max-width: 760px) {
  .seeit-showcase-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
  }

  .seeit-showcase-more {
    justify-self: start;
  }

  .seeit-entry-grid {
    grid-template-columns: 1fr;
  }

  .seeit-entry-card,
  .seeit-entry-card:nth-child(even) {
    border-top-color: var(--seeit-showcase-blue, #0874ad);
  }

  .seeit-entry-body {
    min-height: 0;
  }

  .seeit-appointment-embed .seeit-etermin-embed,
  .seeit-etermin-embed {
    min-height: 760px;
  }

  .seeit-fixdesk-shell {
    min-height: 540px;
    padding: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seeit-entry-card,
  .seeit-entry-media img,
  .seeit-entry-link span,
  .seeit-showcase-more {
    transition: none;
  }
}

/* Editor-Spezialseiten: vorhandene CMS-Layouts unverfälscht, aber ohne Überlauf. */
.seeit-editorial-cms-page,
.seeit-editorial-cms-section,
.seeit-editorial-cms-content,
.seeit-editor-layout {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.seeit-editorial-cms-section {
  overflow: clip;
  padding: 0 0 clamp(42px, 5vw, 76px);
  background: #fff;
}

.seeit-editorial-cms-section > .container {
  min-width: 0;
  max-width: 1440px;
  padding-right: clamp(12px, 2vw, 30px);
  padding-left: clamp(12px, 2vw, 30px);
  box-sizing: border-box;
}

.seeit-editorial-cms-content > .seeit-editor-scope,
.seeit-editor-layout > .seeit-editor-scope {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: clip;
}

.seeit-editorial-empty {
  margin: 34px 0;
  padding: clamp(28px, 4vw, 50px);
  border-left: 6px solid #0874ad;
  background: #f4f8fa;
  color: #263947;
}

.seeit-editorial-empty h1 {
  margin-top: 0;
  color: #082b50;
}

/* Externe Originalfunktionen: Fixdesk und eTermin bleiben voll nutzbar. */
.seeit-order-page,
.seeit-external-service-section,
.seeit-external-service-frame,
.seeit-order-intro-section,
.seeit-order-intro {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.seeit-order-intro-section {
  padding: clamp(30px, 4vw, 56px) 0 10px;
  background: #fff;
}

.seeit-order-intro {
  max-width: 980px;
  margin: 0 auto;
  color: #314857;
  font-size: 16px;
  line-height: 1.72;
}

.seeit-external-service-section {
  overflow: visible;
  padding: clamp(38px, 5vw, 72px) 0 clamp(54px, 6vw, 90px);
  background:
    radial-gradient(circle at 92% 0, rgba(8,116,173,.10), transparent 35%),
    linear-gradient(180deg, #f6f9fb 0%, #fff 100%);
}

.seeit-external-service-heading {
  max-width: 850px;
  margin: 0 0 28px;
}

.seeit-external-service-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  color: #0874ad;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.seeit-external-service-heading > span::before {
  width: 31px;
  height: 3px;
  background: #f39a16;
  content: "";
}

.seeit-external-service-heading h2 {
  margin: 0;
  color: #082b50;
  font-size: clamp(30px, 3vw, 45px);
  font-weight: 300;
  line-height: 1.18;
}

.seeit-external-service-heading p {
  max-width: 760px;
  margin: 13px 0 0;
  color: #5e7281;
  font-size: 16px;
  line-height: 1.65;
}

.seeit-external-service-frame {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.seeit-external-service-frame--fixdesk .seeit-fixdesk-shell {
  margin: 0;
}

/* Startseite: die drei Werkstattfälle kompakt statt übergroß. */
.seeit-showcase--home .seeit-showcase-head {
  margin-bottom: clamp(22px, 2.7vw, 34px);
}

.seeit-entry-grid--home {
  gap: clamp(17px, 1.8vw, 24px);
}

.seeit-entry-grid--home .seeit-entry-media {
  aspect-ratio: 16 / 8.8;
}

.seeit-entry-grid--home .seeit-entry-body {
  min-height: 205px;
  padding: clamp(17px, 1.6vw, 22px);
}

.seeit-entry-grid--home .seeit-entry-card h3 {
  margin-bottom: 9px;
  font-size: clamp(18px, 1.5vw, 22px);
}

.seeit-entry-grid--home .seeit-entry-card p {
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
}

/* Aktuelles nutzt wieder die ursprünglichen Blog-Klassen. Nur robuste Abstände. */
.seeit-news-overview {
  overflow: clip;
}

.seeit-news-overview .teaser-item,
.seeit-news-overview .content-wrapper,
.seeit-news-overview .bg-img {
  min-width: 0;
}

.seeit-news-overview .bg-img {
  display: block;
  height: 130px;
  opacity: 1;
  overflow: hidden;
}

.seeit-news-overview .bg-img img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  visibility: visible !important;
  object-fit: cover;
}

/* Mitarbeiter-CMS: Editor-Raster darf nicht durch Legacy-Tabellenregeln zerlegt werden. */
.seeit-editor-layout {
  overflow: clip;
}

.seeit-editor-layout > .seeit-editor-scope {
  display: block;
}

@media (max-width: 760px) {
  .seeit-editorial-cms-section > .container {
    padding-right: 8px;
    padding-left: 8px;
  }

  .seeit-external-service-section {
    padding-top: 34px;
  }

  .seeit-order-intro {
    padding-right: 2px;
    padding-left: 2px;
  }
}
