/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00D9A3;
    --secondary-color: #1A1A2E;
    --dark-bg: #0F0F1E;
    --light-bg: #F5F5F5;
    --text-dark: #FFFFFF;
    --text-light: #FFFFFF;
    --overlay-dark: rgba(0, 0, 0, 0.75);
    --overlay-light: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.15);
    --card-bg: rgba(26, 26, 46, 0.85);
    --card-bg-hover: rgba(26, 26, 46, 0.95);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--dark-bg);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95); /* Mehr Opazität statt starkem Blur */
    backdrop-filter: blur(10px); /* Reduziert von 20px */
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    /* Shadow wird per Klasse gesetzt, damit JS nicht ständig Inline-Styles schreiben muss */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color);
    contain: layout style paint;
    transform: translateZ(0);
}

.navbar.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .nav-logo {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Toggle - ENTFERNT */

/* Hero Section – dynamische Tag/Nacht-Weltkarte */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-bg);
    padding-top: 80px;
    overflow: hidden;
    will-change: auto;
}

/* Karten-Container (equirektangulär, füllt den Hero) */
.hero-map {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-map-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-map-canvas.is-ready {
    opacity: 0.92;
}

/* Phasen-Farbgrade: legt die Lichtstimmung der aktuellen Gebetszeit über die Karte */
.hero-map-grade {
    position: absolute;
    inset: 0;
    mix-blend-mode: soft-light;
    opacity: 0.85;
    transition: background 2.5s ease, opacity 2.5s ease;
    background: linear-gradient(180deg, rgba(0, 217, 163, 0.15), rgba(15, 15, 30, 0.4));
}

/* Lichtstimmung je Gebetsphase (data-phase wird per JS gesetzt) */
.hero[data-phase="fajr"]    .hero-map-grade { background: linear-gradient(180deg, #1b2a55 0%, #3a4a8c 45%, #c96f8a 100%); opacity: 0.8; }
.hero[data-phase="sunrise"] .hero-map-grade { background: linear-gradient(180deg, #2a3b6b 0%, #e8954e 70%, #ffd27a 100%); opacity: 0.7; }
.hero[data-phase="dhuhr"]   .hero-map-grade { background: linear-gradient(180deg, #1a6f8c 0%, #2aa9c4 60%, #8fe3d8 100%); opacity: 0.55; }
.hero[data-phase="asr"]     .hero-map-grade { background: linear-gradient(180deg, #1f7a86 0%, #36b39a 60%, #d9c87a 100%); opacity: 0.6; }
.hero[data-phase="maghrib"] .hero-map-grade { background: linear-gradient(180deg, #3a2350 0%, #a8434f 55%, #f08a3c 100%); opacity: 0.82; }
.hero[data-phase="isha"]    .hero-map-grade,
.hero[data-phase="night"]   .hero-map-grade { background: linear-gradient(180deg, #050816 0%, #0d1330 60%, #182a5e 100%); opacity: 0.9; }
.hero[data-phase="loading"] .hero-map-grade { background: linear-gradient(180deg, rgba(13,19,48,0.7), rgba(15,15,30,0.7)); opacity: 0.85; }

/* Standort-Marker auf der Karte */
.hero-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.hero-marker-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 217, 163, 0.25), 0 0 18px 4px rgba(0, 217, 163, 0.8);
    position: relative;
}

.hero-marker-dot::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    animation: markerPulse 2.4s ease-out infinite;
}

@keyframes markerPulse {
    0%   { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(2.6); opacity: 0; }
}

.hero-marker-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: rgba(5, 8, 22, 0.7);
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid var(--border-color);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 50% 42%, rgba(15, 15, 30, 0.25) 0%, rgba(15, 15, 30, 0.78) 78%),
        linear-gradient(180deg, rgba(15, 15, 30, 0.35) 0%, rgba(15, 15, 30, 0.85) 100%);
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--text-light);
    z-index: 3;
}

/* Live-Phasen-Badge */
.hero-phase-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.1rem;
    margin-bottom: 1.5rem;
    background: rgba(5, 8, 22, 0.55);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-phase-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 12px 2px rgba(0, 217, 163, 0.8);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Live-Gebetszeit-Leiste im Hero */
.hero-next {
    display: inline-flex;
    align-items: stretch;
    gap: 1.5rem;
    margin: 0 auto 2rem;
    padding: 1rem 1.75rem;
    background: rgba(5, 8, 22, 0.55);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.hero-next-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 90px;
}

.hero-next-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.6);
}

.hero-next-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.hero-next-countdown {
    color: var(--primary-color);
    font-variant-numeric: tabular-nums;
}

.hero-next-divider {
    width: 1px;
    background: var(--border-color);
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(0, 217, 163, 0.5),
                 0 0 60px rgba(0, 217, 163, 0.3),
                 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    will-change: transform;
    transform: translateZ(0);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 4px 20px rgba(0, 217, 163, 0.4);
}

/* Hover nur in @media (hover:hover) */

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    display: inline-block;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
}

/* Features Section */
.features {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(26, 26, 46, 0.95); /* Mehr Opazität */
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Spezifischer */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    will-change: transform;
    transform: translateZ(0);
}

/* Hover nur in @media (hover:hover) */

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(0, 217, 163, 0.3));
}

.feature-card h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Premium Section */
.premium {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    color: var(--text-light);
}

.premium .section-title,
.premium .section-subtitle {
    color: var(--text-light);
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.premium-card {
    background: rgba(26, 26, 46, 0.95);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    transform: translateZ(0);
}

/* Hover nur in @media (hover:hover) */

.premium-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.premium-card ul {
    list-style: none;
}

.premium-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.premium-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.premium-note {
    background: rgba(26, 26, 46, 0.95);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.premium-note p {
    margin-bottom: 0.5rem;
}

/* Download Section */
.download {
    text-align: center;
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
}

.download-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(26, 26, 46, 0.95);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: transform 0.3s ease, background 0.3s ease;
    min-width: 200px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    will-change: transform;
}

/* Hover nur in @media (hover:hover) */

.store-icon {
    font-size: 2.5rem;
}

.store-text {
    font-size: 0.8rem;
    text-align: left;
}

.store-name {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: left;
}

.download-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* FAQ Section */
.faq {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0 1.5rem;
    transition: border-color 0.25s ease;
}

.faq-item[open] {
    border-color: rgba(0, 217, 163, 0.4);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 0 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.faq-item strong { color: var(--primary-color); }

/* Legal Section */
.legal {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.legal-card {
    background: rgba(26, 26, 46, 0.95);
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    transform: translateZ(0);
}

/* Hover nur in @media (hover:hover) */

.legal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(0, 217, 163, 0.3));
}

.legal-card h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.legal-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: var(--secondary-color);
}

/* Contact Section */
.contact {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(0, 217, 163, 0.3));
}

.contact-item h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #00FFB8;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links a {
    padding: 0.5rem 1.5rem;
    background: rgba(26, 26, 46, 0.95);
    color: white;
    border-radius: 25px;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Hover nur in @media (hover:hover) */

.social-links a:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 217, 163, 0.4);
    border: 1px solid var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-tagline {
    color: var(--primary-color);
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Prayer Times Section */
.prayer-times {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(0, 217, 163, 0.1) 0%, rgba(0, 217, 163, 0.05) 100%);
    border-top: 1px solid rgba(0, 217, 163, 0.2);
    border-bottom: 1px solid rgba(0, 217, 163, 0.2);
}

.pt-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: 2rem;
}

/* Steuerung: Suche + Methode + Asr */
.pt-controls {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 1.5rem;
    align-items: end;
}

.pt-control {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.pt-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

/* Such-Feld mit Autocomplete */
.pt-search {
    position: relative;
    display: flex;
    align-items: center;
}

.pt-search-icon {
    position: absolute;
    left: 1rem;
    font-size: 1.1rem;
    pointer-events: none;
}

.pt-search-input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.pt-search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(0, 217, 163, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 217, 163, 0.18);
}

.pt-search-input::placeholder { color: rgba(255, 255, 255, 0.5); }

/* Autocomplete-Dropdown */
.pt-suggestions {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    z-index: 30;
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    max-height: 320px;
    overflow-y: auto;
    background: rgba(18, 20, 38, 0.98);
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.pt-suggestion {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.pt-suggestion:hover,
.pt-suggestion.is-active {
    background: rgba(0, 217, 163, 0.16);
}

.pt-suggestion-pin { opacity: 0.7; }

.pt-suggestion-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.pt-suggestion-main { font-weight: 600; color: #fff; }
.pt-suggestion-sub { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pt-suggestions-empty {
    padding: 0.9rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Selects */
.pt-select {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    color: var(--text-light);
    font-size: 0.98rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300D9A3' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.pt-select:focus {
    outline: none;
    border-color: rgba(0, 217, 163, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 217, 163, 0.18);
}

.pt-select option { background: #12142a; color: #fff; }

.pt-reset {
    align-self: flex-start;
    margin-top: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: rgba(0, 217, 163, 0.12);
    border: 1px solid rgba(0, 217, 163, 0.35);
    border-radius: 999px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pt-reset:hover { background: rgba(0, 217, 163, 0.22); }

/* Status */
.pt-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
    font-size: 1.05rem;
    color: var(--primary-color);
}

.location-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 217, 163, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ergebnisse */
.pt-results {
    margin-top: 2rem;
    animation: slideIn 0.35s ease-out;
}

.pt-results-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.pt-place { font-size: 1.5rem; color: #fff; margin: 0; }
.pt-date { color: rgba(255, 255, 255, 0.7); margin: 0.25rem 0 0; }

.pt-hijri {
    text-align: right;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(0, 217, 163, 0.1);
    border: 1px solid rgba(0, 217, 163, 0.25);
    border-radius: 0.75rem;
}

.pt-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.pt-prayer {
    text-align: center;
    padding: 1.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.pt-prayer-icon { font-size: 1.6rem; margin-bottom: 0.4rem; }
.pt-prayer-name { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 0.35rem; }
.pt-prayer-time { font-size: 1.45rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.pt-prayer-arabic { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); margin-top: 0.2rem; }

.pt-prayer.is-current {
    background: rgba(0, 217, 163, 0.16);
    border-color: var(--primary-color);
    box-shadow: 0 8px 28px rgba(0, 217, 163, 0.25);
    transform: translateY(-4px);
}

.pt-prayer.is-current .pt-prayer-name { color: var(--primary-color); }

.pt-prayer.is-next { border-color: rgba(0, 217, 163, 0.45); }

.pt-meta {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.location-error {
    padding: 1.25rem;
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 0.75rem;
    color: #ff6b6b;
    margin-top: 1.5rem;
    animation: slideIn 0.3s ease-out;
}

/* Hover nur in @media (hover:hover) */

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation auf Mobile bleibt versteckt */
    .nav-menu {
        display: none;
    }

    /* Teure Effekte auf Mobile reduzieren (iOS/Android: fixed + blur/shadow ist teuer) */
    .navbar {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .hero-tagline {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(26, 26, 46, 0.98);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    }

    .feature-icon,
    .legal-icon,
    .contact-icon {
        filter: none;
    }

    /* Weniger Layer/Memory-Druck */
    .feature-card,
    .premium-card,
    .legal-card,
    .store-button,
    .btn {
        will-change: auto;
    }

    /* Endlos-Glow ist auf Mobile unnötig teuer */
    .btn-primary {
        animation: none !important;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid,
    .premium-grid,
    .legal-grid {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .pt-card {
        padding: 1.75rem 1.25rem;
    }

    .pt-controls {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .pt-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    .pt-prayer { padding: 1rem 0.35rem; }
    .pt-prayer-time { font-size: 1.15rem; }

    .pt-results-head { flex-direction: column; }
    .pt-hijri { text-align: left; }

    .hero-next {
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
        padding: 0.85rem 1rem;
    }

    .hero-next-divider { display: none; }
    .hero-next-item { min-width: 70px; }
    .hero-next-value { font-size: 1.1rem; }

    .hero-marker-label { display: none; }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}


/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 217, 163, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(0, 217, 163, 0.7);
    }
}

/* Vorher wurde fadeInUp immer auf die Karten gelegt, gleichzeitig animiert JS -> das ist doppelt.
   Jetzt steuert JS das Reveal per Klassen (.reveal/.is-visible). */
.feature-card,
.premium-card,
.legal-card {
    animation: none;
}

/* Reduziere Animation-Last auf modernen Geräten */
@media (prefers-reduced-motion: no-preference) {
    .btn-primary {
        animation: glow 2s ease-in-out infinite;
    }
}

/* Deaktiviere Animationen für Nutzer mit Präferenz */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00FFB8;
}

/* Additional Enhancements */
/* Selection Color */
::selection {
    background: var(--primary-color);
    color: var(--dark-bg);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--dark-bg);
}

/* Focus Styles */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reveal Animation (performant: nur opacity/transform; gesteuert via IntersectionObserver) */
.reveal {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Hover-Effekte nur dort, wo es wirklich Hover gibt (Desktop). Das spart Arbeit auf Touch-Geräten. */
@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover {
        transform: translateY(-2px) translateZ(0);
        box-shadow: 0 6px 30px rgba(0, 217, 163, 0.6);
        background: #00FFB8;
    }

    .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 40px rgba(0, 217, 163, 0.3);
        background: var(--card-bg-hover);
        border: 1px solid rgba(0, 217, 163, 0.3);
    }

    .premium-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 40px rgba(0, 217, 163, 0.3);
        border: 1px solid rgba(0, 217, 163, 0.3);
    }

    .legal-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 40px rgba(0, 217, 163, 0.3);
        border: 1px solid rgba(0, 217, 163, 0.3);
    }

    .store-button:hover {
        background: var(--primary-color);
        color: var(--dark-bg);
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 217, 163, 0.4);
        border: 1px solid var(--primary-color);
    }

    .location-card:hover {
        box-shadow: 0 12px 40px rgba(0, 217, 163, 0.3);
        border: 1px solid rgba(0, 217, 163, 0.3);
    }

    .location-search-input:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(0, 217, 163, 0.3);
    }

    .social-links a:hover {
        background: var(--primary-color);
        color: var(--dark-bg);
        transform: translateY(-3px);
        box-shadow: 0 6px 25px rgba(0, 217, 163, 0.4);
        border: 1px solid var(--primary-color);
    }
}
