/* =====================================================================
   SHARED: ≤1150px — rules identical for both Mobile (≤768) and Tablet
   (769–1150). Consolidated here once instead of being duplicated in
   both range-specific blocks below. Any selector that needs a DIFFERENT
   value per range lives in the Mobile-only or Tablet-only block instead.
   ===================================================================== */
@media (max-width: 1150px) {

  .section_title {
    font-size: 80px;
  }

  html[lang="de"] .section_title {
    font-size: 80px;
  }

  .container {
    padding-inline: var(--space-sm);
  }

  .legal_title-row {
    margin-inline: calc(var(--space-sm) * -1);
  }

  .header_nav,
  .header_lang {
    display: none;
  }

  .header_burger {
    display: flex;
  }

  .hero {
    background-size: 320px, 180px;
  }

  .hero_heading-row {
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
  }

  .hero_footer {
    margin-top: var(--space-lg);
  }

  .hero_scroll {
    display: none;
  }

  .page-bottom {
    background-color: #141d2f;
    margin-inline: auto;
    padding: 0;
  }

  .about_grid {
    flex-direction: column-reverse;
    gap: var(--space-md);
  }

  .about_photo-wrap {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    margin-top: 60px;
  }

  .skills_grid {
    flex-direction: column;
    margin-left: 0;
  }

  .skills_text {
    display: contents;
    max-width: none;
  }

  .skills_text > p:nth-of-type(2) {
    margin-top: -3.5rem;
  }

  .skill-item:nth-child(10) { order: 1; }  /* Material Design */
  .skill-item:nth-child(13) { order: 2; }  /* Continually Learning */
  .skill-item:nth-child(11) { order: 3; }  /* leer */
  .skill-item:nth-child(12) { display: none; }

  .skills_heading-row {
    position: relative;
    z-index: 3;
    margin: 0;
  }

  .skills_divider {
    order: 0;
  }

  .testimonial {
    flex-direction: column;
    align-items: center;
    padding: var(--space-md);
    gap: var(--space-md);
  }

  .testimonial_quote-icon {
    display: none;
  }

  .testimonial_box {
    width: 100%;
    margin-right: 0;
    height: auto;
    min-height: 140px;
    padding: var(--space-md);
    text-align: center;
  }

  .testimonial_author-row {
    justify-content: center;
  }

  .testimonial_avatar-row {
    order: -1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-xs);
    width: 100%;
  }

  .testimonial_avatar-row::before {
    content: "";
  }

  .testimonial_avatar {
    width: 180px;
    height: 180px;
  }

  .testimonial_avatar-divider {
    grid-column: 3;
    display: block;
  }

  .contact_shadow {
    height: 300px;
    width: auto;
  }

  .contact_heading-row {
    padding-left: 0;
    justify-content: center;
  }

  .contact_intro-heading h3 {
    font-size: 20px;
    font-weight: 400;
  }

  .contact_divider {
    order: 0;
  }

  .contact_intro p {
    max-width: none;
  }

  .contact_grid {
    grid-template-columns: 1fr;
  }

  .contact_form {
    padding-right: 15px;
  }

  .contact_form .contact_submit {
    display: block;
    margin-inline: auto;
    transform: translateX(7.5px);
  }

  .form-group--checkbox {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-left: 0;
  }

  .form-group--checkbox label {
    flex: 1;
  }

  .contact_scroll-top {
    width: 40px;
    height: 40px;
    font-size: 16px;
    margin-right: 0;
  }

  .btn--primary {
    background-color: var(--color-accent-green);
    color: #fff;
  }
}
/* ===== END SHARED ≤1150px ===== */


/* =====================================================================
   MOBILE ONLY: ≤769px — genuine deltas vs. Tablet, plus Mobile-exclusive
   sections (Footer, Portfolio) that Tablet intentionally leaves on the
   Desktop layout.
   ===================================================================== */
@media (max-width: 769px) {

  .hero_eyebrow {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 30px;
    display: block;
  }

  .hero_text h1,
  .hero_role {
    font-size: 32px;
    text-align: center;
  }

  .about_text {
    margin-left: 0;
    z-index: 10;
    margin-bottom: 180px;
  }

  .about_wave {
    top: 357px;
  }

  .skills_text > p:nth-of-type(-n+2) {
    order: -1;
  }

  .skills_question + p {
    margin-top: -2.5rem;
  }

  .skills_icons {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 0;
  }

  /* Portfolio & Footer: Mobile-exclusive stacked layout.
     Tablet (769–1150) intentionally keeps the Desktop layout for these
     two sections — confirmed looks correct there, no override needed. */
  .footer {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .portfolio_heading-row {
    flex-direction: row;
    align-items: center;
    gap: var(--space-sm);
    padding-left: 0;
  }

  .portfolio_divider {
    width: 40px;
  }

  .portfolio_subtitle {
    padding-left: 0;
    max-width: none;
  }

  .portfolio_blob--right,
  .portfolio_blob--left {
    height: 240px;
    width: auto;
  }

  .portfolio_grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-lg);
    max-width: 1200px;
    margin-inline: auto;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-sm);
  }

  .footer_brand {
    display: contents;
  }

  .footer_logo {
    order: 1;
  }

  .footer_copy {
    order: 2;
    font-size: var(--fs-small);
  }

  .footer_socials {
    order: 3;
  }

  .footer_legal-link {
    order: 4;
    font-size: var(--fs-small);
    margin-top: 0;
  }
}
/* ===== END 769px ===== */


/* =====================================================================
   TABLET ONLY: 770–1150px — genuine deltas vs. Mobile (by design: e.g.
   4-column Skills grid instead of 3, different Hero/About spacing).
   ===================================================================== */
@media (min-width: 770px) and (max-width: 1150px) {

  .hero_eyebrow {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 40px;
    display: block;
  }

  .hero_text h1,
  .hero_role {
    text-align: center;
  }

  .hero_text {
    margin: 0;
  }

  .about_text {
    margin-left: 0;
    z-index: 10;
    margin-bottom: 180px;
    font-size: 20px;
  }

  .about_wave {
    top: 300px;
  }

  .skills_text > p:nth-of-type(-n+2) {
    order: -1;
    font-size: 20px;
  }

  .skills_question + p {
    margin-top: -2.5rem;
    font-size: 20px;
  }

  .skills_question {
    margin-top: var(--space-md);
    font-weight: 700;
    font-size: 50px;
  }

  .skills_icons {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 0;
  }

  .portfolio_subtitle {
    position: relative;
    z-index: 1;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    max-width: 500px;
    padding-left: 120px;
    font-size: 20px;
  }
}
/* ===== END 770-1150px ===== */


/* ===== RESPONSIVE: 480px (large phone) ===== */
@media (max-width: 480px) {
  .hero {
    background-size: 220px, 120px;
  }
  html[lang="de"] .section_title {
  font-size: 43px;
}
  .about_text {
    max-width: 560px;
    position: relative;
    z-index: 10;}

  .hero_eyebrow {
  display: none;
}

  .hero_text h1,
  .hero_role {
    font-size: 25px;
  }
 

  .btn {
    font-size: 16px;
    padding: 0.6rem 1.25rem;
  }

  .hero_socials {
    gap: var(--space-sm);
  }

  .section_title {
    font-size: 48px;
  }

  .about_photo-wrap {
    max-width: 280px;
  }
  .about_wave {
    top: 244px;
  }

  .about_points img {
    width: 40px;
    height: 40px;
  }
  .form-group--checkbox {
  
  align-items: center;
  font-size: var(--fs-small);
}

.form-group--checkbox input {
  margin-top: 0;
}

.form-group--checkbox label {
  flex: 1;
}
.skills_divider{
  margin: 0;
}
    .portfolio_divider{ 
      margin: 0;
    }
        .contact_divider{
          margin: 0;
        }
}
/* ===== END 480px ===== */

/* ===== RESPONSIVE: 375px (standard phone) ===== */
@media (max-width: 375px) {
 .hero_text h1 {
  font-size: 20px;
}
html[lang="de"] .section_title {
  font-size: 32px;
}

.hero_role {
  font-size: 18px;
}

  .section_title {
    font-size: 36px;
  }
  .testimonial_box {
  padding: var(--space-sm);
  font-size: var(--fs-small);
  word-break: break-word;
}


.testimonial_author {
  white-space: normal;
  text-align: center;
  padding:0;
}
@media (max-width: 375px) {
  .project-card_media {
    display: flex;
    flex-direction: column;
  }

  .project-card_links {
    position: static;
    order: 2;
    opacity: 1;
    transform: none;
    justify-content: flex-start;
    background-color: #fff;
    padding: 0 var(--space-md);
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
    
  }

  .project-card_info {
    position: static;
    order: 1;
    opacity: 1;
    transform: none;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .project-card:hover .project-card_info,
  .project-card:hover .project-card_links {
    max-height: 400px;
    
  }

  .project-card:hover .project-card_links {
    padding: var(--space-sm) var(--space-md) var(--space-md);
  }

  .project-card:hover .project-card_info {
    padding-top: var(--space-md);
    padding-bottom: var(--space-sm);
  }

  .project-card_links .btn--outline {
    border-color: var(--color-accent-green);
    color: var(--color-accent-green);
  }
  
}
}
/* ===== END 375px ===== */

/* ===== RESPONSIVE: 320px (smallest phone) — matches Figma mobile frame ===== */
@media (max-width: 320px) {
  .hero_text h1,
  .hero_role {
    font-size: 22px;
  }
  html[lang="de"] .section_title {
  font-size: 28px;
}

  .hero_eyebrow {
    font-size: 18px;
  }

  .hero_content {
    margin: var(--space-md) 0;
  }

  .about_photo-wrap {
    max-width: 240px;
  }
  .about_wave {
    top: 211px;
  }

  .section_title {
    font-size: 32px;
  }

  .about_intro {
    font-size: var(--fs-small);
  }

  .about_points p {
    font-size: var(--fs-small);
  }
  
}
/* ===== END 320px ===== */
