/*CSS-Variablen */
:root {
  --primary-bg: #f8fffe;
  --primary-bg-gradient: linear-gradient(135deg, #f8fffe 0%, #e3f2fd 50%, #e8f5e8 100%);
  --text-color: #1a1a1a;
  --white: #ffffff;
  --header-bg: rgba(26, 35, 35, 0.85);
  --button-bg: #2d5a31;
  --button-bg-hover: #1e3f22;
  --card-bg: rgba(255, 255, 255, 0.95);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.04);
  --border-color: rgba(230, 242, 230, 0.5);
  --footer-bg: rgba(248, 248, 248, 0.9);
  --footer-link: #1e3f22;
  --link-hover: underline;
  --accent-green: #4caf50;
  --accent-green-light: #81c784;
}


/* style.css */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--primary-bg-gradient);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

body {
  min-height: 100vh;
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-color) 0%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2{
  font-size: 1.6rem;
  font-weight: 600;
  margin-left: 1rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0.5rem 1rem 0;
  letter-spacing: -0.01em;
}



body p {
    font-size: 1.1rem;
    margin: 1rem 1rem 1rem;
}

/*header*/
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--header-bg);
  color: var(--white);
  z-index: 999;
  padding: 0.5rem 1rem;
  backdrop-filter: blur(4px);
  text-align: center;
  
}

.header-content {
  max-width: 100%;
  margin: 0 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 20px;
}

.language-switch {
  display:flex;
  float: right;
}

.language-switch a {
  margin-left: 0.5rem;
  margin-right: 1rem;
}

.language-switch a:hover {
            text-decoration: underline;
}

.nav-links a {
  margin: 0 1rem 0;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  text-decoration: underline;
}

.navDesktop{
  display: flex;
}
.navMobile{
  display: none;
}

@media (max-width: 768px) {
  .navDesktop {
    display: none;
  }
  .navMobile{
    display: flex;
  }
}




.blogArticleContainer {
  
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}

.blog-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  width: 95%;
  max-width: 800px;
  margin: 1rem auto;
}

.blog-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1rem;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.blog-card img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-card p {
  margin: 0.5rem 1rem 0.5rem;
  font-size: 1rem;
}

.blogDate {
  text-align: right;
}

.blog-preview a {
  color: #242424;
  text-decoration: none;
}

.container {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}

.hero {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-wrap{
  width: 800px;
  max-width: 95%;
  margin-bottom: 2rem;
  border-radius: 20px;
  overflow: hidden;
}

.hero-wrap:hover .hero {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.form-flag {
  width: 20px;
  height: 15px;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.form-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 0,5rem;
  margin-Bottom: 0,5 rem
}

.form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--button-bg) 0%, var(--accent-green) 100%);
  border: none;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.form-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--button-bg-hover) 0%, var(--accent-green-light) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.form-button:hover::before {
  opacity: 1;
}

.form-button:active {
  transform: translateY(0);
}

.form-button > * {
  position: relative;
  z-index: 1;
}






.linkedin-icon {
  width: 20px;
  height: 20px;
  margin-left: 8px;
}

.portrait {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  border-color: var(--white);
  border-width: 5px;
  border-style: solid;
}



.portraitContainer {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: left;
  margin-top: -10rem;
  margin-left: 2rem;
}

@media (max-width: 768px) {
  .portrait {
    width: 200px;
    height: 200px;
}
  .portraitContainer {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: left;
  margin-top: -7rem;
  margin-left: 5%;
}
}

 .text-box {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  width: 95%;
  max-width: 800px;
  height: auto;
  margin-bottom: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
 }

 .text-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
 }


/*footer*/

 footer {
  display: flex;
  justify-content: space-between;
  /*position: relative;*/
  align-items: center;
  padding: 0.5rem;
  background-color: var(--footer-bg);
  font-size: 0.9rem;
}

footer p{
  font-size: 0.9rem;
}

footer .footer-center {
  display:flex;
  flex-wrap: wrap;
  justify-content: center;
  /*gap: 2rem; /* Abstand zwischen den Links */
  margin-left: 1rem;
  text-align: center;
  width: 100%;
  min-width: 200px;
}

footer .footer-right {
  display: flex;
  justify-content: right;
  text-align: right;
  float: right;
}

footer a {
  color: var(--footer-link);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin: 0 1rem 0;
}

footer a:hover {
    text-decoration: underline;
}

/* Tutorial Styles */
.tutorial-section {
  margin: 2rem 0;
  padding: 1rem;
}

.content-with-image {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
}

.text-content {
  flex: 1;
  min-width: 250px;
}

.image-container {
  flex: 0 0 300px;
  max-width: 400px;
}

.tutorial-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tutorial-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

/* Image positioning - alternating left/right */
.tutorial-section.image-left .content-with-image {
  flex-direction: row !important;
}

.tutorial-section.image-left .image-container {
  order: 1; /* Bild links */
}

.tutorial-section.image-left .text-content {
  order: 2; /* Text rechts */
}

.tutorial-section.image-right .content-with-image {
  flex-direction: row !important;
}

.tutorial-section.image-right .image-container {
  order: 2; /* Bild rechts */
}

.tutorial-section.image-right .text-content {
  order: 1; /* Text links */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .tutorial-section.image-left .content-with-image,
  .tutorial-section.image-right .content-with-image {
    flex-direction: column !important;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .image-container {
    flex: 0 0 auto;
    max-width: 100%;
    order: -1; /* Images always on top on mobile */
  }
  
  .text-content {
    min-width: unset;
  }
  
  .tutorial-section {
    padding: 0.5rem;
    margin: 1rem 0;
  }
}
