/* Marvelous Software Solutions — Grundstyles */

:root {
  --bg: #ececec;
  --card-bg: #ffffff;
  --dark: #1c1c1c;
  --chrome: #dedede;
  --chrome-line: #bcbcbc;
  --dark-2: #262626;
  --orange: #f37021;
  --text: #262626;
  --text-muted: #5c5c5c;
  --white: #ffffff;
  --radius: 10px;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Quicksand", "Segoe UI", Verdana, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* App shell / sidebar */

.app-shell {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.page-content {
  flex: 1;
  min-width: 0;
}

.site-sidebar {
  flex-shrink: 0;
  width: 220px;
  background: var(--chrome);
  color: var(--text);
  border-right: 1px solid var(--chrome-line);
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  overflow-y: auto;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  gap: 40px;
}

.sidebar-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  line-height: 1;
}

.sidebar-logo-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.sidebar-logo-line {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--orange);
  font-family: "Poppins", "Quicksand", "Segoe UI", Verdana, sans-serif;
}

.sidebar-logo-underline {
  width: 34px;
  height: 4px;
  background: var(--text);
  border-radius: 0;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  position: relative;
  display: inline-block;
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
}

nav.main-nav a::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 0%;
  overflow: hidden;
  white-space: nowrap;
  color: var(--orange);
  transition: width 0.3s ease;
}

nav.main-nav a:hover::before {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

.lang-toggle {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.lang-toggle button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.3);
  color: var(--text);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lang-toggle .flag {
  display: block;
  width: 16px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.lang-toggle button.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* Hero */

.hero {
  position: relative;
  background: var(--bg);
  color: var(--text);
  padding: 90px 0 100px;
  text-align: center;
  overflow: hidden;
}

/* Hero + "Ueber uns" teilen sich denselben hellgrauen Hintergrund */
.wave-zone {
  background: var(--bg);
}

.wave-zone .hero {
  background: transparent;
}

.hero-logo {
  margin: 0;
  font-weight: 400;
  line-height: 1.08;
}

.hero-logo-line {
  display: block;
  width: fit-content;
  margin: 0 auto;
  font-size: 5rem;
  font-family: "Poppins", "Quicksand", "Segoe UI", Verdana, sans-serif;
  white-space: nowrap;
  text-align: left;
}

.hero-logo .accent {
  display: inline-block;
  color: var(--orange);
}

.hero-logo .logo-rest {
  display: inline-block;
}

.hero-logo-underline {
  height: 4px;
  background: var(--text);
  margin: 22px auto 30px;
  border-radius: 0;
}

.hero p {
  color: var(--text);
  max-width: 620px;
  margin: 0 auto 30px;
  font-size: 1.25rem;
  /* Weisses Halo um die Buchstaben, damit der Text lesbar bleibt, egal wie
     dunkel die Welle im Hintergrund gerade an der Stelle ist. */
  text-shadow:
    0 0 6px #fff,
    0 0 6px #fff,
    0 0 12px #fff,
    0 0 12px #fff;
}

.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: #d85e17;
  transform: translateY(-1px);
}

/* Sections */

.section {
  padding: 70px 0;
}

.section-alt {
  background: var(--card-bg);
}

.section h2 {
  display: block;
  width: fit-content;
  font-size: 1.8rem;
  margin: 0 auto 8px;
}

.section .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 40px;
}

.underline {
  height: 4px;
  background: var(--text);
  margin: 14px auto 0;
  border-radius: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.card {
  display: block;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.section-alt .card {
  background: var(--bg);
  box-shadow: none;
  border: 1px solid #e0e0e0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.section-alt .card:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  background: var(--card-bg);
}

.card h3 {
  margin-top: 0;
  color: var(--orange);
}

/* Team */

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.team-card {
  flex: 0 1 236px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 32px 16px;
  text-align: center;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.team-card:hover .team-avatar {
  background: var(--orange);
  color: var(--white);
}

.team-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  color: var(--orange);
  font-family: "Poppins", "Quicksand", "Segoe UI", Verdana, sans-serif;
  font-size: 1.6rem;
  overflow: hidden;
  transition: background 0.18s ease, color 0.18s ease;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.team-role {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card-image {
  aspect-ratio: 4 / 3;
  margin: -28px -28px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px dashed #cfcfcf;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #b3b3b3;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid #e0e0e0;
  padding: 28px 32px;
  max-width: 640px;
  margin: 28px auto 0;
  text-align: center;
  color: var(--text-muted);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.info-card p {
  margin: 0;
}

.info-card:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* Kontakt */

.contact-panel {
  max-width: 480px;
  margin: 36px auto 0;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid #e2e2e2;
  border-top: 4px solid var(--orange);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  overflow: hidden;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 32px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.contact-row > div {
  flex: 1;
  min-width: 0;
}

.contact-row:hover {
  background: #fff3ea;
  transform: translateX(4px);
}

.contact-row + .contact-row {
  border-top: 1px solid #ececec;
}

.contact-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 50%;
  color: var(--text-muted);
  transition: background 0.18s ease, color 0.18s ease;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-row:hover .contact-icon {
  background: #ffe1cc;
  color: var(--orange);
}

.contact-row dt {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0 0 2px;
}

.contact-row dd {
  margin: 0;
}

.contact-row dd a {
  color: var(--text);
}

.contact-row dd a:hover {
  color: var(--orange);
}

.dd-with-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-left: 8px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  background: none;
  color: #b3b3b3;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.copy-btn:hover {
  color: var(--orange);
  background: var(--bg);
}

.copy-btn svg {
  width: 15px;
  height: 15px;
}

.copy-btn .icon-check {
  display: none;
}

.copy-btn.copied {
  color: #2a9d5c;
}

.copy-btn.copied .icon-copy {
  display: none;
}

.copy-btn.copied .icon-check {
  display: block;
}

/* Footer */

.site-footer {
  background: var(--chrome);
  color: var(--text);
  padding: 36px 0;
  border-top: 3px solid var(--orange);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a:hover {
  color: var(--orange);
}

/* Projekt-Detailseiten (Basisversion) */

.project-page {
  padding: 60px 0 90px;
  min-height: 70vh;
}

.project-page .container {
  max-width: 760px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 24px;
}

.back-link:hover {
  color: var(--orange);
}

.project-hero-image {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  background: var(--bg);
  border: 1px solid #e0e0e0;
}

.project-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-page h1 {
  margin: 0 0 8px;
}

.project-page .project-summary {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 32px;
}

.project-page .facts-title {
  font-size: 1.15rem;
  color: var(--orange);
  margin: 32px 0 8px;
}

.project-facts {
  margin: 0 0 32px;
  padding-left: 20px;
}

.project-facts li {
  margin-bottom: 6px;
}

/* Simple pages (Impressum / Datenschutz) */

.page-fx {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
}

.legal-page {
  position: relative;
  z-index: 2;
  background: var(--card-bg);
  max-width: 760px;
  margin: 50px auto;
  padding: 44px 48px;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.legal-page h1 {
  margin-top: 0;
}

.legal-page h2 {
  font-size: 1.15rem;
  color: var(--orange);
  margin: 28px 0 4px;
}

.legal-page h3 {
  font-size: 1rem;
  margin: 20px 0 2px;
}

/* Mobile */

@media (max-width: 720px) {
  .app-shell {
    flex-direction: column;
  }

  .site-sidebar {
    position: sticky;
    width: 100%;
    height: auto;
    overflow: visible;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    gap: 0;
    border-right: none;
    border-bottom: 1px solid var(--chrome-line);
  }

  .sidebar-logo {
    flex-direction: row;
    gap: 4px;
  }

  .sidebar-logo-stack {
    flex-direction: row;
    gap: 0;
  }

  .sidebar-logo-line {
    font-size: 1.6rem;
  }

  .sidebar-logo-underline {
    display: none;
  }

  .lang-toggle {
    margin-top: 0;
    margin-right: 10px;
    order: 2;
  }

  .nav-toggle {
    order: 3;
  }

  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--chrome);
    border-bottom: 1px solid var(--chrome-line);
  }

  nav.main-nav.open {
    display: block;
  }

  nav.main-nav ul {
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .hero-logo-line {
    font-size: 3rem;
  }

  .legal-page {
    margin: 24px 16px;
    padding: 28px 24px;
  }
}
