/* ===== GRUNDLEGENDE STYLES ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Lato', 'Open Sans', Arial, sans-serif;
  background: #fff;
  color: #222;
}

/* ===== Anchor-Offsets – stabile CSS-Variante ===== */
html, body {
  scroll-behavior: auto;
}
.section,
section[id] {
  scroll-margin-top: 0;
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
  z-index: 1000;
  /* border-bottom: 4px solid #0084CA;  entfernt, damit nicht über volle Breite */
}

.logo-link {
  display: flex;
  align-items: center;
  margin-left: calc(50vw - 671px);
  z-index: 1;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 1.2rem 0 0.5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 1001;
}



.mobile-menu-toggle {
  order: 2;
  margin-left: auto;
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #0084CA;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-right: calc(50vw - 671px);
  z-index: 1;
}

.main-nav a {
  text-decoration: none;
  color: #0084CA;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 3px;
  background: #0084CA;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a.active {
  color: #0066A3;
  font-weight: 700;
}

.main-nav a.active::after {
  width: 100%;
  background: #0066A3;
}

/* ===== HEADER SPACER ===== */
/* Header-Spacer wie im Original mit Trennlinie */
.header-spacer {
  height: 110px;
  position: relative;
}
.header-spacer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: calc(50vw - 671px);
  width: calc(1372px + 2rem);
  height: 4px;
  background: #0084CA;
}

/* Hero-Trennlinien (oben und unten) wieder aktivieren */
.hero {
  background: #F8F8F8 url('Hintergrundbild2.png') center center;
  background-size: contain;
  background-repeat: no-repeat;
  min-height: 840px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  border-radius: 0;
  margin: 0;
  width: 100vw;
  max-width: 100vw;
  position: relative;
  padding: 3rem 2rem 4rem 2rem;
}
/* obere Linie am Hero deaktiviert, um keine doppelte Dicke zu erzeugen */
/*
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(50vw - 671px);
  width: calc(1372px + 2rem);
  height: 4px;
  background: #0084CA;
}
*/
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: calc(50vw - 671px);
  width: calc(1372px + 2rem);
  height: 4px;
  background: #0084CA;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: #0084CA;
  margin-bottom: 1rem;
  line-height: 1.2;
  background: rgba(248, 248, 248, 0.85);
  padding: 0.5rem 1.5rem;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.hero-content p {
  font-size: 1.8rem;
  color: #666;
  margin: 0;
  font-weight: bold;
  line-height: 1.2;
  background: rgba(248, 248, 248, 0.85);
  padding: 0.5rem 2rem;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
}

/* ===== ABOUT BEREICH ===== */
/* Über mich: untere Linie bleibt aktiv */
#about {
  background: #fff;
  padding: 2rem 2rem 3rem 2rem;
  position: relative;
  z-index: 0;
}
#about::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: calc(50vw - 671px);
  width: calc(1372px + 2rem);
  height: 4px;
  background: #0084CA;
  z-index: 0;
}

.about-container {
  max-width: 1100px;
  margin: 1rem auto 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-image {
  flex-shrink: 0;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border: 4px solid #fff;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.15);
}

.about-content {
  flex: 1;
  max-width: 800px;
}

.about-title {
  color: #0084CA !important;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

.about-sub {
  color: #0084CA;
  font-size: 1.3rem;
  margin: 1.5rem 0 0.5rem 0;
  font-weight: 600;
}

.about-text {
  color: #222;
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

/* ===== SKILLS BEREICH ===== */
#skills {
  background: #F8F8F8;
  padding: 2rem 2rem 3rem 2rem;
  position: relative;
}

#skills::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: calc(50vw - 671px);
  width: calc(1372px + 2rem);
  height: 4px;
  background: #0084CA;
}

.skills-container {
  max-width: 1100px;
  margin: 1rem auto 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

.skills-content {
  flex: 1;
  max-width: 800px;
}

.skills-title {
  color: #0084CA !important;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

.skills-text {
  font-size: 1.08rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
}

.skills-image {
  flex-shrink: 0;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border: 4px solid #fff;
}

.skills-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.skills-expertise {
  margin: 2rem 0;
}

.skills-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 1rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.skills-column {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.skills-column-title {
  text-align: center;
  font-weight: 600;
  font-size: 1.3rem;
  color: #0084CA;
  margin-bottom: 1rem;
}

.skills-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
  min-height: 160px;
  box-sizing: border-box;
}

.skills-item:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

.skills-item i {
  font-size: 1.5rem;
  color: #28a745;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.skills-item i.fa-times-circle {
  color: #dc3545;
}

.skills-item-content h5 {
  font-size: 1.1rem;
  color: #333;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.skills-item-content p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* ===== PROFILE BEREICH ===== */
#profile {
  background: #fff;
  padding: 2rem 2rem 3rem 2rem;
  position: relative;
}

#profile::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: calc(50vw - 671px);
  width: calc(1372px + 2rem);
  height: 4px;
  background: #0084CA;
}

.profile-container {
  max-width: 1100px;
  margin: 1rem auto 0 auto;
}

.profile-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 100%;
  margin: 0 auto;
}

.profile-view {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-view-link {
  text-decoration: none;
  color: #dc3545;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  padding: 1rem;
  border-radius: 8px;
}

.profile-view-link:hover {
  color: #0084CA;
  background: rgba(0, 132, 202, 0.1);
  transform: translateY(-2px);
}

.profile-view .fa-file-pdf {
  font-size: 3rem;
}

.profile-view .fa-eye {
  font-size: 1.5rem;
  color: #000;
}

.profile-download {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-download-link {
  text-decoration: none;
  color: #dc3545;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  padding: 1rem;
  border-radius: 8px;
}

.profile-download-link:hover {
  color: #0084CA;
  background: rgba(0, 132, 202, 0.1);
  transform: translateY(-2px);
}

.profile-download .fa-file-pdf {
  font-size: 3rem;
}

.profile-download .fa-download {
  font-size: 1.5rem;
  color: #000;
}

.profile-text-content {
  flex: 1;
  text-align: center;
}

.profile-title {
  color: #0084CA !important;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

/* ===== CONTACT BEREICH ===== */
#contact {
  background: #F8F8F8;
  padding: 2rem 2rem 3rem 2rem;
  position: relative;
}

#contact::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: calc(50vw - 671px);
  width: calc(1372px + 2rem);
  height: 4px;
  background: #0084CA;
}

.contact-container {
  max-width: 1100px;
  margin: 1rem auto 0 auto;
}

.contact-title {
  color: #0084CA !important;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  margin-top: 0;
  text-align: center;
}

/* ===== KONTAKTFORMULAR ===== */
.contact-form-section {
  margin-bottom: 3rem;
}

.contact-form-content {
  max-width: 100%;
  margin: 0 auto;
}

.contact-form-title {
  color: #0084CA;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-form-text {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: center;
}

.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.2);
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0;
}

.form-group {
  flex: 1;
  text-align: left;
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0084CA;
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 132, 202, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  margin: 1.5rem 0;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-container input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
}

.checkbox-container label {
  font-weight: normal !important;
}

.checkbox-text {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  font-weight: normal !important;
}

.checkbox-text a {
  color: #0084CA;
  text-decoration: none;
}

.checkbox-text a:hover {
  text-decoration: underline;
}

.contact-form-button {
  background: linear-gradient(135deg, #0084CA, #0066A3);
  color: white;
  border: none;
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 132, 202, 0.3);
}

.contact-form-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 132, 202, 0.4);
}

.contact-form-button:active {
  transform: translateY(0);
}

/* Disabled-Zustand des Kontakt-Buttons */
.contact-form-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(30%);
  box-shadow: none;
}

/* ===== KONTAKTINFORMATIONEN ===== */
.contact-info-section {
  margin-top: 3rem;
}

.contact-info-title {
  color: #0084CA;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  max-width: 100%;
  margin: 0 auto;
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.contact-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.contact-link {
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #0084CA;
}

.contact-item i {
  font-size: 2rem;
  color: #0084CA;
  margin-bottom: 0.5rem;
}

.contact-item span {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #fff;
  padding: 1.5rem 0;
  margin-top: 1rem;
}

/* Container: volle Breite, keine Offsets */
.footer-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Inhalt: exakt wie Header-Kante, zentriert mit 1342px */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1342px;
  margin: 0 auto;
  padding: 0;
}

/* Copyright etwas nach rechts versetzen */
.footer-content .footer-copyright,
.footer-content .footer-copyright p {
  padding-left: 2.5rem;
}

@media (max-width: 1200px) {
  .footer-content {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 100%;
  }
  .footer-content .footer-copyright,
  .footer-content .footer-copyright p {
    padding-left: 0;
  }
}

/* Textstil unverändert */
.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Footer-Links etwas nach links versetzen */
.footer-content .footer-links {
  padding-right: 5rem;
}

@media (max-width: 1200px) {
  .footer-content .footer-links {
    padding-right: 0;
  }
}

.footer-link {
  color: #0084CA;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #0084CA;
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: #0066A3;
}

.footer-link:hover::after {
  width: 100%;
}



/* ===== COOKIE SYSTEM ===== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 400px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.1);
  z-index: 100000;
  transform: translateY(120%);
  transition: transform 0.4s ease;
  overflow: hidden;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-text {
  flex: 1;
  font-size: 0.85rem;
  color: #333;
  line-height: 1.4;
}

.cookie-link {
  color: #0084CA;
  text-decoration: none;
  font-weight: 500;
  margin-left: 0.5rem;
}

.cookie-link:hover {
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: #0084CA;
  color: white;
}

.cookie-btn-accept:hover {
  background: #0066A3;
}

.cookie-btn-deny {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #e9ecef;
}

.cookie-btn-deny:hover {
  background: #e9ecef;
}

.cookie-btn-settings {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #e9ecef;
  padding: 0.5rem;
  min-width: 36px;
}

.cookie-btn-settings:hover {
  background: #e9ecef;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 100001;
  display: none;
  align-items: center;
  justify-content: center;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.cookie-modal-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.3rem;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.cookie-modal-close:hover {
  background-color: #f8f9fa;
}

.cookie-modal-body {
  padding: 1.5rem;
}

.cookie-modal-body > p {
  margin: 0 0 1.5rem 0;
  color: #666;
  font-size: 0.95rem;
}

.cookie-category {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.cookie-category-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #0084CA;
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

input:disabled + .toggle-slider {
  background-color: #0084CA;
  cursor: not-allowed;
}

.cookie-category-info h4 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1rem;
}

.cookie-category-info p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

.cookie-modal-footer {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.cookie-btn-save {
  background: #0084CA;
  color: white;
}

.cookie-btn-save:hover {
  background: #0066A3;
}

.cookie-btn-cancel {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #e9ecef;
}

.cookie-btn-cancel:hover {
  background: #e9ecef;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) and (min-width: 1201px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.3rem;
  }
  
  .about-title,
  .skills-title,
  .profile-title,
  .contact-container h2 {
    font-size: 2rem;
  }
}

/* Tablet-spezifische Regeln für Samsung Galaxy Tab A (2016) */
@media (max-width: 1024px) and (min-width: 769px) {
  .logo-link {
    margin-left: 1rem !important;
  }
  
  .logo-img {
    height: 45px !important;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
    margin-right: 1rem !important;
  }
  
  .main-nav ul {
    display: none !important;
  }
  
  .main-nav ul.active {
    display: flex !important;
    position: fixed !important;
    top: 90px !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 90px) !important;
    background: #fff !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 2rem 0 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    z-index: 1000 !important;
  }
  
  .header-spacer {
    height: 90px !important;
  }
}

/* Spezielle Regeln für Samsung Galaxy Tab A (2016) - 1024x768px */
@media (max-width: 1024px) and (min-width: 1020px) {
  .logo-link {
    margin-left: 1rem !important;
  }
  
  .logo-img {
    height: 45px !important;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
    margin-right: 1rem !important;
  }
  
  .main-nav ul {
    display: none !important;
  }
  
  .main-nav ul.active {
    display: flex !important;
    position: fixed !important;
    top: 90px !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 90px) !important;
    background: #fff !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 2rem 0 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    z-index: 1000 !important;
  }
  
  .header-spacer {
    height: 90px !important;
  }
}

@media (max-width: 768px) {
  .logo-link {
    margin-left: 1rem;
  }
  
  .logo-img {
    height: 40px;
  }
  
  .mobile-menu-toggle {
    display: flex;
    margin-right: 1rem; /* etwas Abstand vom rechten Rand für iPhones */
  }
  
  .header-spacer {
    height: 80px;
  }
  
  .header-spacer::after {
    left: 1rem;
    width: calc(100% - 2rem);
  }
  
  .hero {
    min-height: 600px;
    padding: 2rem 1rem 4rem 1rem;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 40%;
  }
  
  .hero::before,
  .hero::after {
    left: 1rem;
    width: calc(100% - 2rem);
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1.4rem;
  }
  
  .main-nav ul {
    position: fixed;
    top: 110px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 110px);
    background: #fff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 0;
    transition: left 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
  
  .main-nav ul.active {
    left: 0;
  }
  
  .main-nav a {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .about-container,
  .skills-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .about-image,
  .skills-image {
    width: 200px;
    height: 200px;
  }
  
  .profile-content {
    flex-direction: column;
    align-items: center;
    text-content: center;
    gap: 2rem;
  }
  
  .profile-view,
  .profile-download {
    width: 100px;
    height: 100px;
    order: 3;
  }
  
  .profile-text-content {
    order: 1;
  }
  
  .skills-two-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .contact-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-item {
    padding: 1rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-links {
    gap: 1.5rem;
  }
  
  /* Mobile Trennstriche für alle Sektionen */
  #about::after,
  #skills::after,
  #profile::after,
  #contact::after {
    left: 1rem;
    width: calc(100% - 2rem);
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 3rem 1rem;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 35%;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  /* Mobile Rechtschreibregeln für lange Überschriften */
  h2 {
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-wrap: break-word;
  }
  
  #about, #skills, #profile, #contact {
    padding: 1.5rem 1rem 2rem 1rem;
  }
  
  .about-container,
  .skills-container,
  .profile-container,
  .contact-container {
    margin: 0.5rem auto 0 auto;
  }
  
  .about-title,
  .skills-title,
  .profile-title,
  .contact-container h2 {
    font-size: 1.8rem;
  }
  
  .about-image,
  .skills-image {
    width: 150px;
    height: 150px;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  .hero {
    padding: 2rem 2rem;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 20%;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
}

@media (max-width: 992px) {
  .logo-link {
    margin-left: 1rem;
  }
  .logo-img {
    height: 40px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .main-nav ul {
    position: fixed;
    top: 110px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 110px);
    background: #fff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 0;
    transition: left 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
  .main-nav ul.active {
    left: 0;
  }
}

/* iPad-spezifische Optimierungen - angepasst auf 992–1200px */
@media (min-width: 992px) and (max-width: 1200px) {
  .logo-link {
    margin-left: calc(50vw - 671px + 10rem) !important;
  }
  .logo-img {
    height: 48px;
  }
  .main-nav {
    padding: 1.2rem 0 0.5rem 0;
  }
  .main-nav ul {
    margin-right: calc(50vw - 671px + 10rem) !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding: 0 !important;
    transition: none !important;
    box-shadow: none !important;
  }
  .main-nav a {
    font-size: 1rem;
    padding: 0.5rem 0.8rem;
    min-height: auto;
    display: inline;
  }
  .mobile-menu-toggle {
    margin-right: calc(50vw - 671px + 10rem) !important;
  }
}

/* Zusätzliche iPad-spezifische Regeln mit höchster Priorität */
@media (min-width: 1201px) and (max-width: 1400px) {
  /* Logo-Position mit höchster Priorität */
  header .logo-link {
    margin-left: calc(50vw - 671px + 14rem) !important;
    transform: translateX(0) !important;
  }
  
  header .logo-img {
    height: 48px !important;
  }
  
  /* Navigation mit höchster Priorität */
  header .main-nav ul {
    margin-right: calc(50vw - 671px + 12rem) !important;
    transform: translateX(0) !important;
  }
  
  /* Mobile Menu Toggle mit höchster Priorität */
  header .mobile-menu-toggle {
    margin-right: calc(50vw - 671px + 12rem) !important;
    transform: translateX(0) !important;
  }
  
  /* Zusätzliche Überschreibungen für alle möglichen Fälle */
  header * {
    box-sizing: border-box !important;
  }
}

/* Universelle Regeln für größere Bildschirme - höchste Priorität */
@media (min-width: 1401px) {
  .logo-link {
    margin-left: calc(50vw - 671px + 4rem) !important;
  }
  
  .main-nav ul {
    margin-right: calc(50vw - 671px + 4rem) !important;
  }
  
  .mobile-menu-toggle {
    margin-right: calc(50vw - 671px + 4rem) !important;
  }
}