/* --- Global Container --- */
.grlg-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f5f7;
    padding: 2rem;
    border-radius: 18px;
    max-width: 700px;
    margin: 2rem auto;
}

/* --- Card & Form --- */
.grlg-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.grlg-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 0.5rem 0;
}

.grlg-subtitle {
    font-size: 1rem;
    color: #6e6e73;
    margin: 0 0 1.5rem 0;
}

.grlg-form {
    display: flex;
    gap: 0.75rem;
}

.grlg-form input[type="text"] {
    flex-grow: 1;
    border: 1px solid #d2d2d7;
    background-color: #f5f5f7;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: background-color 0.2s, border-color 0.2s;
}

.grlg-form input[type="text"]:focus {
    outline: none;
    border-color: #007aff;
    background-color: #fff;
}

.grlg-button {
    background-color: #007aff;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.grlg-button:hover {
    background-color: #0056b3;
}

/* --- Loading Indicator --- */
.grlg-loading {
    width: 40px;
    height: 40px;
    border: 4px solid #d2d2d7;
    border-top-color: #007aff;
    border-radius: 50%;
    animation: grlg-spin 1s linear infinite;
    margin: 2rem auto;
}
@keyframes grlg-spin {
    to { transform: rotate(360deg); }
}

/* --- Results --- */
.grlg-result-item {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.grlg-result-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #1d1d1f;
}

.grlg-result-header p {
    font-size: 0.9rem;
    color: #6e6e73;
    margin: 0.25rem 0 0 0;
}

/* --- Container für die Links --- */
.grlg-links-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.grlg-link-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.grlg-link-group a {
    display: inline-block;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
    flex-grow: 1;
    text-align: center;
}

.grlg-review-link {
    background-color: #e5f2ff;
    color: #007aff;
}
.grlg-review-link:hover {
    background-color: #d0e6ff;
}

.grlg-maps-link {
    background-color: #f0f0f0;
    color: #333;
}
.grlg-maps-link:hover {
    background-color: #e0e0e0;
}

/* --- Style für den Kopier-Button --- */
.grlg-copy-button {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #e9e9eb;
    color: #6e6e73;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.grlg-copy-button:hover {
    background-color: #dcdce0;
}

.grlg-copy-button.copied {
    background-color: #30d158;
    color: #ffffff;
}

.grlg-copy-button svg {
    pointer-events: none;
}

/* --- Container für Aktionen wie QR-Code --- */
.grlg-actions-container {
    border-top: 1px solid #e9e9eb;
    padding-top: 1.25rem;
    text-align: center; /* Zentriert den Inhalt */
}

.grlg-qr-button {
    width: 100%;
    background-color: #f0f0f0;
    color: #333;
    border: none;
    cursor: pointer;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.grlg-qr-button:hover {
    background-color: #e0e0e0;
}

/* --- Stil für den QR-Code Hinweistext (NEU) --- */
.grlg-qr-description {
    font-size: 0.8rem;
    color: #6e6e73;
    margin: 0.5rem 0 0 0;
    padding: 0;
}

/* --- Stile für QR-Code-Wrapper --- */
.grlg-qr-code-wrapper {
    margin-top: 1rem;
    padding: 1.5rem;
    background: #f5f5f7;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.grlg-qr-code-container canvas {
    width: 160px !important;
    height: 160px !important;
    border-radius: 4px;
}

.grlg-download-button {
    background-color: #333;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
}

.grlg-download-button:hover {
    background-color: #000;
}


/* --- Responsive Design --- */
@media (max-width: 600px) {
    .grlg-container {
        padding: 1rem;
    }
    .grlg-card {
        padding: 1.5rem;
    }
    .grlg-form {
        flex-direction: column;
    }
    .grlg-button {
        width: 100%;
    }
}