@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-variable.woff2') format('woff2'),
       url('../fonts/SpaceGrotesk-variable.woff') format('woff');
  font-weight: 300 400 500 600 700;
  font-display: swap;
  font-style: normal;
}

/* Portfolio One-Pager Styles */

/* Google Font: Space Grotesk */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Custom Properties */
:root {
  --background: #FCFBF7;
  --accent-rot: #FF3B30;
  --accent-blau: #1976D2;
  --text-primary: #111111;
  --white: #ffffff;
  --swiper-theme-color: var(--accent-rot);
  --swiper-navigation-color: var(--accent-rot);
  --swiper-pagination-color: var(--accent-rot);
  --off-left:0.6;
  --off-top:1.7;
}

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

body {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, .section-title {
  font-weight: 700;
}

/* Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 1px 1px, #E5E5E5 1px, transparent 0);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: -1;
}

/* Theme Classes */
.theme-rot .accent-color { color: var(--accent-rot); }
.theme-rot .accent-bg { background-color: var(--accent-rot); }
.theme-rot .accent-border { border-color: var(--accent-rot); }

/* Default to Red Theme */
.accent-color { color: var(--accent-rot); }
.accent-bg { background-color: var(--accent-rot); }
.accent-border { border-color: var(--accent-rot); }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.portfolio-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(252, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-rot);
}

/* Hero Section */
.hero {
  padding: 8rem 0 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
}
.hero-image {
  aspect-ratio: 1/1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center;
}

@media (min-width: 600px) {
  :root {
    --off-left:1;
    --off-top:1;
  }
  .hero-image {
    aspect-ratio: 16/10;
    object-position: top center;
  }
.contact-description p{
  padding-left: 21rem;
}
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: top center;
}
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  font-size: clamp(1.5rem, 4vw, 3rem);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--accent-rot);
}

.hero-description {
  font-size: clamp(1.125rem, 3vw, 1.25rem);
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--accent-rot);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 59, 48, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 59, 48, 0.4);
}

/* About Section */
.about {
  padding: 6rem 0;
  background: white;
  margin: 2rem 0;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.about-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--accent-rot);
}

.about-text {
  font-size: clamp(1.125rem, 3vw, 1.25rem);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-text strong {
  font-weight: 600;
  color: var(--accent-rot);
}

/* Portfolio Section */
#portfolio h2.section-title {
  z-index: 2;
}
.portfolio {
  padding: 6rem 0;
}

.portfolio-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.portfolio-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--accent-rot);
}

.projects-grid {
  display: grid;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.project-item {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.project-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.project-description {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #666;
}

.project-description p {
  margin-bottom: 1rem;
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.technology-tag {
  padding: 0.5rem 1rem;
  background-color: rgba(255, 59, 48, 0.1);
  color: var(--accent-rot);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Skills Section */
#skills h2.section-title {
  transform: translate(calc(-20% * var(--off-left)), calc(-89% * var(--off-top)));
}
.skills {
  padding: 6rem 0;
  background: white;
  margin: 2rem 0;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.skills-content {
  max-width: 1000px;
padding-top: 2rem;
font-size: clamp(1.5rem, 4vw, 3rem);
}

.skills-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--accent-rot);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-category {
  background: var(--background);
  border-radius: 15px;
  padding: 2rem;
  border: 2px solid;
  border-color: var(--accent-rot);
  transition: border-color 0.3s ease;
}

.skill-category:hover {
  background: var(--white);
}

.skill-category-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent-rot);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.375rem 0.75rem;
  background-color: rgba(255, 59, 48, 0.1);
  color: var(--accent-rot);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Contact Section */
.contact {
  padding: 6rem 0;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.contact-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--accent-rot);
}

.contact-description {
  font-size: clamp(1.125rem, 3vw, 1.25rem);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-description p {
  margin-bottom: 1rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-link {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--accent-rot);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 59, 48, 0.3);
}

.contact-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 59, 48, 0.4);
}

/* Legal Section */
.legal {
  padding: 4rem 0;
  background: #f8f8f8;
  margin-top: 4rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.legal-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--accent-rot);
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  color: var(--text-primary);
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-content strong {
  font-weight: 600;
  color: var(--accent-rot);
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero {
    padding: 6rem 0 4rem;
  }
  
  .about, .skills {
    margin: 1rem;
  }
  
  .project-item {
    padding: 1.5rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .project-item {
    padding: 1rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus States for Accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--accent-rot);
  outline-offset: 2px;
}

.scroll-offset {
  scroll-margin-top: 104px;
} 

.project-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #eee;
  margin-bottom: 0;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-content {
  padding: 2rem;
  min-height: 250px;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.project-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  overflow: hidden;
} 

.portfolio-swiper {
  overflow: visible;
  padding-left: 24px;
  padding-right: 24px;
} 

/* Swiper navigation arrows */
.swiper-button-next,
.swiper-button-prev {
  color: var(--accent-rot);
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 44px !important;
  height: 44px !important;
  padding: 10px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;

  box-sizing: border-box;
  aspect-ratio: 1/1;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--accent-rot);
  color: #fff;
}

/* Swiper pagination dots */
.swiper-pagination-bullet {
  background: #ddd;
  opacity: 1;
  transition: background 0.2s;
}
.swiper-pagination-bullet-active {
  background: var(--accent-rot);
} 

.tech-tag {
  display: inline-block;
  padding: 0.2em 0.7em;
  background: rgba(255, 59, 48, 0.08); /* sehr helles Rot */
  color: var(--accent-rot);
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.tech-tag:last-child {
  margin-right: 0;
} 

/* Section Spacing und Trenner */
.hero-section,
.about-section,
.portfolio-section,
.skills-section,
.contact-section,
.legal-section {
  padding-top: 7rem;
  padding-bottom: 7rem;
}


.legal-section {
  border-bottom: none;
}

/* Portfolio und Kontakt: abgesetzter Hintergrund */
.portfolio-section {
  background: rgba(255, 59, 48, 0.06); /* sehr helles Rot, halbtransparent */
}

.contact-section {
  background: rgba(25, 118, 210, 0.06); /* sehr helles Blau, halbtransparent */
}

/* Section-Titel noch größer und mit mehr Luft */
.section-title {
  font-size: clamp(9rem, 18vw, 17rem);
  font-weight: 800;
  color: var(--accent-rot);
  margin-top: 2.5rem;
  margin-bottom: 4rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
  position: absolute;
  transform: translate(calc(-20% * var(--off-left)), calc(-80% * var(--off-top)));
}

div.hero-content h2.section-title {
  transform: translate(calc(-20% * var(--off-left)), calc(-38% * var(--off-top)));
}

/* Optionales Design für noch mehr Abhebung: */
/* text-shadow: 0 2px 8px rgba(255,59,48,0.08); */
/* background: linear-gradient(90deg, #fff 60%, #ffeaea 100%); */
/* display: inline-block; */
/* border-radius: 8px; */
/* padding: 0.5em 1.5em; */
