/* Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #fdfdfd;
  color: #2b2b2b;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

/* Smooth fade for dynamic text */
#repair-text, #service-title {
  opacity: 1;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  transform: translateY(0);
}

#repair-text.fade-out, #service-title.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

#repair-text.fade-in, #service-title.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* General fade animations */
.fade-in {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  transform: translateY(0);
}

.fade-out {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  transform: translateY(10px);
}

/* Highlight animation - moved below the section */
.highlight-target {
  position: relative;
}
/* Service highlight animation */
.highlight-target.active {
  box-shadow: 0 4px 0 #ff8b00;
  transition: box-shadow 0.2s ease-in-out;
}
.highlight-target::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ff8b00;
  opacity: 0;
  transform: scaleX(0.7);
  box-shadow: 0 0 15px #ff8b00;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.highlight-target.active::after {
  opacity: 1;
  transform: scaleX(1);
}

@keyframes highlight-pulse {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

/* Service Icons */
.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
  fill: #ff8b00;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Header */
header {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e2e2;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-flex {
  display: grid;
  grid-template-columns: auto 5fr auto;
  align-items: center;
}

.logo {
  height: 48px;
}

nav ul {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: #2b2b2b;
  font-weight: 500;
}

.contact-btn {
  background-color: #ff8b00;
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

/* Header contact info */
.header-contact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  font-size: 0.85rem;
  line-height: 1;
  margin-left: 1rem;
}

.header-contact a {
  background-color: #ff8b00;
  color: #fff !important;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.85rem;
  display: inline-block;
}

.header-contact a:hover {
  background-color: #e67800;
  text-decoration: none;
}

@media (max-width: 768px) {
  .header-contact {
    display: none;
  }
}

/* Hero */
.hero {
  background: url('../assets/img/hero-bg7.png') center 25%/cover no-repeat;
  margin: 2rem auto;
  border-radius: 16px;
  color: white;
  text-align: left;
  overflow: hidden;
  max-width: 1100px;
  padding: 5rem 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero a {
  color: #ff8b00;
  text-decoration: none;
}

.hero a:hover {
  text-decoration: underline;
}

/* Hero primary button override */
.hero .btn-primary {
  color: #fff !important;
  background-color: #ff8b00;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
}

.hero .btn-primary:hover {
  background-color: #e67800;
}

.btn-primary {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #ff8b00;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #e67800;
}

/* Services */
.services {
  padding: 3rem 1rem;
  background-color: #ffffff;
  text-align: left;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.service-card {
  background-color: #f6f6f6;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* PC Repair */
.pc-repair {
  max-width: 1024px;
  margin: 40px auto;
  padding: 36px 36px 28px 36px;
  background: #fff;
  border-radius: 16px;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
  box-shadow: 0 2px 20px 0 rgba(0,0,0,0.06);
}

/* Optional: für Titel/Überschriften im PC-Repair-Block */
.pc-repair h1,
.pc-repair h2 {
  color: #ff9000;
  font-size: 2em;
  margin-bottom: 1em;
  font-weight: bold;
}

.pc-repair h3 {
  color: #ff9000;
  font-size: 1.15em;
  margin-top: 2em;
  margin-bottom: 0.7em;
  font-weight: bold;
}

.pc-repair ul,
.pc-repair ol {
  margin: 0 0 1.3em 0;
  padding-left: 1.1em;
}

.pc-repair li {
  margin-bottom: 0.12em;
  line-height: 1.35;
}

.pc-repair a {
  color: #ff9000;
  text-decoration: none;
  font-weight: 500;
}

.pc-repair a:hover {
  text-decoration: underline;
}

.pc-repair p {
  margin-bottom: 1.2em;
  line-height: 1.6;
}

.pc-repair blockquote {
  margin: 1.2em 0;
  padding: 1em 1.1em 1em 1.2em;
  background: #fafafa;
  border-left: 4px solid #ff9000;
  border-radius: 7px;
  font-style: italic;
  color: #444;
  font-size: 1em;
}

@media (max-width: 900px) {
  .pc-repair {
    max-width: 98vw;
    padding: 16px 4vw;
  }
  .pc-repair ul,
  .pc-repair ol {
    padding-left: 1em;
  }
}


/* Reviews */
.reviews {
  padding: 3rem 1rem;
  background-color: #fff;
  text-align: center;
}

.review-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  transform: translateY(0);
}

.review-list.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.review-list.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.review-card {
  background-color: #f6f6f6;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 280px;
  text-align: left;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.review-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.review-stars {
  color: #ff8b00;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.review-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 3em;
  line-height: 1.5em;
  transition: max-height 0.2s ease;
  margin-bottom: 0.5rem;
}

.review-text.expanded {
  -webkit-line-clamp: unset;
  max-height: none;
  overflow: visible;
}

.read-more {
  color: #ff8b00;
  cursor: pointer;
  font-weight: bold;
  text-decoration: underline;
  display: inline-block;
  margin-top: auto;
  z-index: 1;
  background-color: #f6f6f6;
}
/* Static content formatting */
#static-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #2b2b2b;
  padding: 1rem;
}

#static-text h1,
#static-text h2,
#static-text h3 {
  color: #ff8b00;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

#static-text p {
  margin-bottom: 1rem;
}

#static-text ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

#static-text li {
  margin-bottom: 0.5rem;
  list-style: disc;
}

#static-text a {
  color: #ff8b00;
  text-decoration: none;
  font-weight: 500;
}

#static-text a:hover {
  text-decoration: underline;
}

.referenzen blockquote {
  font-style: italic;
  color: #444;
  background-color: #f6f6f6;
  padding: 1rem 1.25rem;
  border-left: 4px solid #ff8b00;
  margin: 1.5rem 0;
  border-radius: 4px;
}

#static-text.referenzen {
  max-width: 860px;
  margin: 0 auto;
}

.referenzen {
  max-width: 1024px;
  margin: 40px auto;
  padding: 36px 36px 28px 36px;
  background: #fff;
  border-radius: 16px;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
  box-shadow: 0 2px 20px 0 rgba(0,0,0,0.06);
}

.referenzen h2 {
  color: #ff9000;
  font-size: 2em;
  margin-bottom: 1em;
  font-weight: bold;
}

.referenzen h3 {
  margin-top: 2em;
  color: #ff9000;
  font-size: 1.15em;
  margin-bottom: 0.7em;
  font-weight: bold;
}

.liste_ref {
  margin: 0 0 1.3em 0;
  padding-left: 1.1em;
}

.liste_ref li {
  margin-bottom: 0.12em;
  line-height: 1.35;
}

.liste_ref a {
  color: #ff9000;
  text-decoration: none;
  font-weight: 500;
}

.liste_ref a:hover {
  text-decoration: underline;
}

blockquote {
  margin: 1.2em 0;
  padding: 1em 1.1em 1em 1.2em;
  background: #fafafa;
  border-left: 4px solid #ff9000;
  border-radius: 7px;
  font-style: italic;
  color: #444;
  font-size: 1em;
}
.qualifikationen {
  display: flex;
  gap: 18px;
  margin: 1em 0 1.8em 0;
  align-items: center;
}
@media (max-width: 900px) {
  .referenzen {
    max-width: 98vw;
    padding: 16px 4vw;
  }
  .liste_ref {
    padding-left: 1em;
  }
  .qualifikationen {
    flex-direction: column;
    gap: 8px;
  }
}

.legal-container {
  max-width: 1024px;
  margin: 40px auto 0 auto;
  padding: 36px 36px 28px 36px;
  background: #fff;
  border-radius: 16px;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
  box-shadow: 0 2px 20px 0 rgba(0,0,0,0.06);
}

.legal-container h1,
.legal-container h2 {
  color: #ff9000;
  font-size: 2em;
  margin-bottom: 1em;
  font-weight: bold;
}

.legal-container h3 {
  color: #ff9000;
  font-size: 1.15em;
  margin-top: 2em;
  margin-bottom: 0.7em;
  font-weight: bold;
}

.legal-container ul {
  margin: 0 0 1.3em 0;
  padding-left: 1.1em;
}

.legal-container li {
  margin-bottom: 0.12em;
  line-height: 1.35;
}

.legal-container a {
  color: #ff9000;
  text-decoration: none;
  font-weight: 500;
}

.legal-container a:hover {
  text-decoration: underline;
}

.legal-container p {
  margin-bottom: 1.2em;
  line-height: 1.6;
}

.legal-container blockquote {
  margin: 1.2em 0;
  padding: 1em 1.1em 1em 1.2em;
  background: #fafafa;
  border-left: 4px solid #ff9000;
  border-radius: 7px;
  font-style: italic;
  color: #444;
  font-size: 1em;
}

@media (max-width: 900px) {
  .legal-container {
    max-width: 98vw;
    padding: 16px 4vw;
  }
  .legal-container ul {
    padding-left: 1em;
  }
}


.legal-container section {
  margin-bottom: 1.6em;
  padding-bottom: 0.2em;
  border-bottom: 1px solid #f5f5f5;
}
.legal-container section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.legal-container h3 {
  margin-bottom: 0.3em;
  margin-top: 0;
  color: #ff9000;
  font-size: 1.09em;
  font-weight: 600;
}
.legal-container p,
.legal-container ul {
  margin-top: 0.1em;
  margin-bottom: 0.7em;
}
.legal-container ul {
  padding-left: 1.3em;
  margin-top: 0.1em;
}
.legal-container li {
  margin-bottom: 0.09em;
  line-height: 1.4;
}

.agb-list > li {
  margin-bottom: 2.0em;
  padding-bottom: 1.1em;
  border-bottom: 1px solid #eee;
}
.agbh3 {
  color: #ff9000;
  font-size: 1.08em;
  margin-bottom: 0.4em;
  font-weight: 600;
  margin-top: 0.1em;
}
.agb-list ol {
  margin-top: 0.2em;
  margin-bottom: 0.8em;
  padding-left: 1.6em;
}
.agb-list li > ol > li {
  margin-bottom: 0.4em;
  line-height: 1.6;
}
.auszeichung {
  display: block;
  margin-top: 2.2em;
  color: #888;
  font-size: 1em;
  font-style: italic;
  text-align: right;
}

/* Contact */
.contact {
  padding: 3rem 1rem;
  background-color: #d9d9d9;
  text-align: center;
}

/* Footer Layout */
.footer {
  background-color: #2b2b2b;
  color: #fff;
  padding: 2rem 8rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-contact h4 {
  color: #ff8b00;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.footer-contact a {
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-columns {
  display: flex;
  gap: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 180px;
}

.footer-nav {
  flex: 1;
  text-align: center;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: right;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 400;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-copy {
  color: #aaa;
  font-size: 0.8rem;
  text-align: right;
  flex: 1 1 100%;
  margin-top: 1rem;
}


@media (max-width: 900px) {
  .header-flex {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 0 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: flex-start;
    padding-left: 0.5rem;
  }

  nav {
    width: 100%;
  }
  .logo {
    height: 38px;
  }
}

/* Noch kleiner: */
@media (max-width: 900px) {
  .header-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 1rem;
  }
  .logo {
    height: 30px;
    margin: 0;
    flex-shrink: 0;
  }
  nav {
    display: none !important;
  }
  .header-contact {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    padding: 0;
    margin: 0;
    font-size: 1rem;
    gap: 0.5rem;
  }
}



@media (max-width: 1200px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
  }
}
@media (max-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .service-card {
    padding: 1rem;
  }
}

@media (max-width: 1100px) {
  .footer {
    padding: 2rem 2vw;
  }
}
@media (max-width: 900px) {
  .footer-row,
  .footer-columns {
    align-items: center !important;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .footer-nav ul {
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .footer-copy {
    text-align: left;
    margin-top: 1.2rem;
    font-size: 0.92rem;
  }
  .footer-col {
    min-width: 0;
  }
}
@media (max-width: 600px) {
  .footer {
    padding: 1.2rem 1vw;
  }
  .footer-row,
  .footer-columns {
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .btn-primary,
  .hero .btn-primary {
    padding: 0.6rem 1rem;
    font-size: 1rem;
  }
  .hero h1 {
    font-size: 1.2rem;
  }
}
