:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-soft: #f1f4fb;
  --border: #e0e4f0;
  --primary: #111827;
  --accent: #28d4c9;
  --accent-soft: rgba(40, 212, 201, 0.12);
  --muted: #6b7280;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #eef2ff 0, #f7f8fc 40%, #e7ecff 100%);
  color: var(--primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

/* Layout */

.wrapper {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.6rem 4rem;
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(247, 248, 252, 0.95);
  border-bottom: 1px solid rgba(222, 227, 243, 0.9);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  font-size: 0.9rem;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.18s ease-out;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  opacity: 0.96;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  margin: 4px 0;
}

/* Sections */

.section {
  padding: 3.5rem 0 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin: 0.3rem 0 0;
}

.section-intro {
  max-width: 32rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 3rem;
  padding-top: 3.2rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow span {
  width: 32px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  line-height: 1.1;
  margin: 1rem 0 0.8rem;
}

.accent {
  background: linear-gradient(135deg, var(--accent), #5ff3e8);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 0.97rem;
  max-width: 32rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.btn {
  border-radius: var(--radius-pill);
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.9rem 1.6rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.32);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(17, 24, 39, 0.12);
  color: var(--primary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.9);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* Hero Right */

.hero-right {
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(17, 24, 39, 0.16);
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.hero-pill i {
  font-size: 1rem;
  color: var(--primary);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  font-size: 0.88rem;
}

.hero-card i {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  color: var(--primary);
}

.hero-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
}

.hero-card-outline {
  background: var(--surface-soft);
  box-shadow: none;
}

.hero-card-outline h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.hero-card-outline ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.about-block {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted);
}

.about-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.about-block i {
  font-size: 1.2rem;
}

/* Services */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.9rem;
}

.service-top h3 {
  margin: 0.25rem 0 0.2rem;
  font-size: 1.05rem;
}

.service-top p {
  margin: 0;
  color: var(--muted);
}

.service-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.service-price {
  font-weight: 600;
  margin: 0.4rem 0 0.2rem;
}

.service-price span {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0.8rem;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
}

.service-list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.4rem;
}

.btn-outline {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(17, 24, 39, 0.16);
  background: transparent;
  color: var(--primary);
  padding: 0.7rem 1.3rem;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  margin-top: auto;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.9);
}

.service-card-highlight {
  border-color: rgba(40, 212, 201, 0.6);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.service-badge {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: #04605a;
}

/* Portfolio */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #111827;
  color: #f9fafb;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.6);
  font-size: 0.9rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.project-pill {
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(249, 250, 251, 0.3);
}

.project-type {
  opacity: 0.7;
}

.project-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.project-desc {
  margin: 0 0 0.8rem;
  opacity: 0.86;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.8rem;
  opacity: 0.9;
}

.project-meta i {
  margin-right: 0.25rem;
}

.trust-bar {
  margin-top: 1.8rem;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  border: 1px dashed rgba(17, 24, 39, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--muted);
}

.trust-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.trust-left i {
  font-size: 1.4rem;
  color: var(--accent);
}

.trust-left strong {
  color: var(--primary);
}

.trust-tag {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: #035954;
  font-size: 0.78rem;
  font-weight: 500;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  font-size: 0.9rem;
  display: grid;
  gap: 0.9rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  background: #f9fafb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(40, 212, 201, 0.25);
  background: #ffffff;
}

textarea {
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.contact-aside {
  display: grid;
  gap: 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.contact-box {
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  padding: 0.9rem 0.9rem;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.contact-box i {
  font-size: 1.2rem;
  color: var(--primary);
  margin-top: 0.1rem;
}

.contact-box strong {
  color: var(--primary);
}

/* Footer */

.site-footer {
  padding: 2.8rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-inner {
  border-top: 1px solid rgba(209, 213, 219, 0.9);
  padding: 1rem 0 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Reveal Animation */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right {
    order: -1;
  }

  .about-grid,
  .card-grid,
  .portfolio-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(247, 248, 252, 0.99);
    border-bottom: 1px solid rgba(222, 227, 243, 0.9);
    flex-direction: column;
    padding: 0.9rem 1.6rem 1.1rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .nav-cta {
    display: none;
  }

  .section-head {
    flex-direction: column;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .wrapper {
    padding-inline: 1.2rem;
  }

  .hero-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-section {
  padding: 80px 20px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.contact-mail {
  display: inline-block;
  margin-top: 20px;
  font-size: 24px;
  font-weight: 600;
  color: #1A2B4C;
  text-decoration: none;
  border-bottom: 2px solid #1A2B4C;
  padding-bottom: 4px;
  transition: 0.3s;
}

.contact-mail:hover {
  color: #16233E;
  border-color: #16233E;
}

.contact-note {
  margin-top: 15px;
  color: #666;
  font-size: 14px;
}

/* ================================================
   🔥 MOBILE OPTIMIERUNG – PRO EDITION
   Diese Ergänzungen verbessern:
   - Navigation
   - Hero Layout
   - Grids (Portfolio, About, Services)
   - Buttons
   - Typografie auf kleinen Screens
   ================================================ */

/* Tablet Horizontal */
@media (max-width: 1024px) {
  .wrapper {
    padding-inline: 1.4rem;
  }

  .section-head {
    flex-direction: column;
    gap: 1.2rem;
  }

  .portfolio-grid,
  .card-grid,
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet Vertical / Mobile XL */
@media (max-width: 820px) {

  /* Navigation */
  .nav-links {
    width: 100%;
    text-align: center;
  }

  .nav-cta {
    display: none;
  }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 2.2rem;
  }

  .hero-right {
    order: -1;
  }

  /* Grids */
  .portfolio-grid,
  .about-grid,
  .card-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Standard */
@media (max-width: 600px) {

  body {
    font-size: 15px;
  }

  .wrapper {
    padding-inline: 1.1rem;
  }

  /* Hero Textgrößen */
  .hero h1 {
    font-size: 2.1rem;
    line-height: 1.2;
  }

  .hero-lead {
    font-size: 0.95rem;
  }

  /* Buttons */
  .btn,
  .btn-primary,
  .btn-ghost,
  .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.2rem;
  }

  /* Karten */
  .project-card,
  .service-card,
  .about-block {
    padding: 1.3rem 1.1rem;
  }

  .project-card h3 {
    font-size: 1rem;
  }

  .project-desc {
    font-size: 0.88rem;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }
}

/* Small Mobile */
@media (max-width: 430px) {

  .logo-main {
    font-size: 0.85rem;
  }

  .logo-sub {
    font-size: 0.6rem;
  }

  .hero-actions {
    gap: 0.6rem;
  }

  .nav-links a {
    font-size: 1rem;
  }
}

/* Ultra Small Devices */
@media (max-width: 360px) {
  body {
    font-size: 14px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .wrapper {
    padding-inline: 0.9rem;
  }
}
