/* GRUNDLAGEN & LAYOUT */
html, body {
    height: 100%;
}

body {
    background-color: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    overflow-x: hidden;
    opacity: 0;
    animation: fadeIn 0.7s ease-in forwards;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

/* KOPFBEREICH & NAVIGATION (STARTSEITE) */
.main-header {
    text-align: center;
    margin: 4rem 0 5rem 0;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
}

h1 .highlight {
    background-color: #FFD700;
    color: #000;
    padding: 0.1rem 0.8rem;
    border-radius: 10px;
}

.subtitle {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    letter-spacing: 1px;
    color: #ccc;
}

.location {
    font-size: 1rem;
    color: #aaa;
    margin-top: 0;
}

.main-nav {
    margin-top: 2.5rem;
}

.cta-instruction {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #aaa;
}

.btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #666;
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    margin: 0.5rem;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn:hover, .btn:focus-visible {
    background-color: #FFD700;
    border-color: #FFD700;
    color: #000;
}

/* INHALTSBEREICHE */
.intro-text-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-text-section h3 {
    font-size: 1.5rem;
}

.intro-text-section p {
    line-height: 1.8;
    color: #ccc;
}

.services-headline {
    text-align: center;
    margin-top: 5rem;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 3rem;
    width: fit-content;
    margin: 0 auto;
}

.services section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-left: 3px solid #FFD700;
    padding-left: 0.8rem;
}

.services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services ul li {
    margin-bottom: 0.6rem;
    line-height: 1.5;
    color: #ccc;
}

.service-disclaimer {
    font-size: 0.9rem;
    color: #aaa;
    margin: 3rem 2rem 0 2rem;
}

/* UNTERSEITEN-STILE */
.subpage-header {
    text-align: center;
    padding: 4rem 0 3rem 0;
}

.subpage-header h1 {
    font-size: 3rem;
}

.about-me-text, .legal-text {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #ccc;
}
.about-me-text h2 { font-size: 2rem; margin-top: 0; }
.about-me-text h3 { font-size: 1.3rem; color: #FFD700; margin-top: 2.5rem; }
.legal-text h2, .legal-text h3 { color: #fff; margin-top: 2.5rem; }
.legal-text a { color: #FFD700; }

.image-float-right {
    float: right;
    width: 40%;
    max-width: 400px;
    min-width: 250px;
    margin: 0.5rem 0 1rem 2.5rem;
    border-radius: 10px;
    height: auto;
}

.action-buttons {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    clear: both;
}

/* FOOTER (Gilt für alle Seiten) */
.main-footer {
    background-color: #080808;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: #888;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.legal-links a:hover, .legal-links a:focus-visible {
    color: #fff;
}

.ig-icon-link {
    display: inline-flex;
    color: inherit;
    transition: color 0.3s ease;
}
.ig-icon-link:hover .ig-icon, .ig-icon-link:focus .ig-icon {
    stroke: #FFD700;
}
.ig-icon {
    width: 28px;
    height: 28px;
}

.copyright {
    font-size: 0.8rem;
    color: #777;
    margin-top: 1.5rem;
}

/* EFFEKTE & ACCESSIBILITY */
.typing-effect {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: .10em;
  border-right: .15em solid #FFD700;
  animation: typing 2s steps(15, end), blink-caret .75s step-end infinite;
}
@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: #FFD700; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.skip-link { position:absolute; left:-9999px; top:0; background:#FFD700; color:#000; padding:.5rem .75rem; border-radius:8px }
.skip-link:focus { left:1rem; top:1rem; z-index:1000 }
a:focus-visible, .btn:focus-visible, button:focus-visible { outline: 3px solid #FFD700; outline-offset: 2px; }
.clearfix { clear: both; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .typing-effect { border-right: 0; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 1rem; }
    h1 { font-size: 2.5rem; }
    .subpage-header h1 { font-size: 2.2rem; }
    .subtitle { font-size: 1rem; }
    .main-nav { display: flex; flex-direction: column; }
    .btn { width: 80%; margin: 0.5rem auto; text-align: center; }

    .services {
        /* DIES IST DIE ENTSCHEIDENDE ÄNDERUNG: */
        grid-template-columns: auto; /* Statt "1fr" verwenden wir "auto" */
    }

    .image-float-right {
        float: none;
        display: block;
        width: 80%;
        max-width: 300px;
        margin: 0 auto 2rem auto;
    }
    .action-buttons { flex-direction: column; align-items: stretch; }
}