/* ============================================================
   MATIJAVELLI – Mobile Optimization CSS
   Letzte Aktualisierung: Mai 2026
   ============================================================ */

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

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

img, video, iframe, embed {
  max-width: 100%;
  height: auto;
}

/* Logo-Bild verstecken */
.nav-logo img {
  display: none !important;
}

/* ============================================================
   NAVIGATION MOBIL
   ============================================================ */
@media (max-width: 768px) {

  .main-nav {
    padding: 0 16px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end !important;
  }

  .main-nav .nav-links { display: none !important; }
  .main-nav .nav-cta   { display: none !important; }
  .main-nav .nav-burger { display: flex !important; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
@media (max-width: 768px) {

  .hero {
    flex-direction: column !important;
    padding: 80px 20px 48px !important;
    min-height: auto !important;
  }

  .hero-left {
    width: 100% !important;
    text-align: center;
  }

  .hero-overline {
    font-size: 12px;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    display: block;
  }

  .hero-h1 {
    font-size: clamp(36px, 10vw, 52px) !important;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
  }

  .hero-sub {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.96;
    margin-bottom: 28px;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 0;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    max-width: 360px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    letter-spacing: 0.1em;
  }

  .hero-numbers {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    gap: 0;
    width: 100%;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 28px;
    clear: both;
    position: relative;
    z-index: 2;
  }

  .hero-stat {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    border-right: 1px solid rgba(255,255,255,0.1);
  }

  .hero-stat:last-child {
    border-right: none;
  }

  .hero-stat-n {
    font-size: 26px;
    font-weight: 700;
    display: block;
    line-height: 1;
    margin-bottom: 4px;
  }

  .hero-stat-l {
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
    line-height: 1.3;
  }
}

/* ============================================================
   ÜBER MICH
   ============================================================ */
@media (max-width: 768px) {

  .about {
    flex-direction: column !important;
    padding: 60px 20px !important;
  }

  .about-img-col {
    width: 100% !important;
    margin-bottom: 32px;
  }

  .about-text-col {
    width: 100% !important;
  }

  .about-body {
    font-size: 16px;
    line-height: 1.75;
    opacity: 1;
    margin-bottom: 16px;
  }

  .about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
  }

  .about-highlight {
    font-size: 12px;
    padding: 6px 14px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 2px;
    letter-spacing: 0.05em;
  }
}

/* ============================================================
   LEISTUNGEN
   ============================================================ */
@media (max-width: 768px) {

  .leistungen {
    padding: 60px 20px !important;
  }

  .leistungen-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
  }

  .leistung-card {
    padding: 28px 22px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
  }

  .leistung-nr {
    font-size: 12px;
    letter-spacing: 0.2em;
    opacity: 0.4;
    margin-bottom: 16px;
  }

  .leistung-title {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .leistung-body {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.94;
  }

  .leistung-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    letter-spacing: 0.1em;
    color: #3ecfb2;
    margin-top: 16px;
  }
}

/* ============================================================
   PRODUKTE
   ============================================================ */
@media (max-width: 768px) {

  .produkte {
    padding: 60px 20px !important;
  }
}

/* ============================================================
   BLOG
   ============================================================ */
@media (max-width: 768px) {

  .blog {
    padding: 60px 20px !important;
  }
}

/* ============================================================
   KONTAKT & FORMULAR
   ============================================================ */
@media (max-width: 768px) {

  .kontakt {
    padding: 60px 20px 80px !important;
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }

  input,
  textarea,
  select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: #fff;
    -webkit-appearance: none;
    appearance: none;
    min-height: 52px;
  }

  textarea {
    min-height: 120px;
    resize: vertical;
  }

  input::placeholder,
  textarea::placeholder {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
  }

  input:focus,
  textarea:focus {
    outline: none;
    border-color: #3ecfb2;
    background: rgba(62,207,178,0.05);
  }

  form button[type="submit"] {
    background-color: #3ecfb2;
    color: #0d0d0d;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    min-height: 56px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
@media (max-width: 768px) {

  footer {
    padding: 40px 20px 48px;
    position: relative;
    z-index: 1;
    clear: both;
    display: block !important;
    width: 100% !important;
  }

  .footer-links {
    position: static !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center;
    align-items: center;
    gap: 4px 14px !important;
    max-width: 320px;
    margin: 0 auto;
  }

  footer a {
    font-size: 11px;
    letter-spacing: 0.1em;
    opacity: 0.62;
    padding: 6px 2px;
    min-height: 0;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  .footer-logo {
    text-align: center;
    margin-bottom: 24px;
    display: block;
  }

  .footer-legal {
    font-size: 11px;
    opacity: 0.4;
    text-align: center;
    margin-top: 20px;
  }
}

/* ============================================================
   SECTION HEADLINES
   ============================================================ */
@media (max-width: 768px) {

  h2,
  .section-title {
    font-size: clamp(28px, 8vw, 42px) !important;
    line-height: 1.1;
  }

  h3 {
    font-size: clamp(18px, 5vw, 24px);
    line-height: 1.3;
  }

  .overline {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.85;
  }

  section {
    padding-left: 20px;
    padding-right: 20px;
  }

  p {
    font-size: 16px;
    line-height: 1.7;
  }
}

/* ============================================================
   SEHR KLEINE SCREENS (< 375px)
   ============================================================ */
@media (max-width: 374px) {

  .hero-h1 {
    font-size: 30px !important;
  }

  h2,
  .section-title {
    font-size: 26px !important;
  }

  .hero,
  section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .hero-stat-n {
    font-size: 22px;
  }

  .hero-stat-l {
    font-size: 8px;
  }
}

/* ============================================================
   TABLET (769px – 1024px)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {

  h1 {
    font-size: clamp(44px, 7vw, 64px);
  }

  section {
    padding-left: 40px;
    padding-right: 40px;
  }

  .leistungen-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
