/* Globale Einstellungen (High-Fidelity Klon) */
:root {
    --text-color: #ffffff;
    --button-bg: #440000;         /* Dunkles Rot/Schwarz */
    --button-hover-bg: #550000;
    --primary-color: #e40e31;     /* Kräftiges Linktree-Rot */
    --link-border: 1px solid rgba(255, 255, 255, 0.2); /* Heller Rand für Kontrast */
    --background-start: #320000;  /* Startfarbe für Verlauf (innen) */
    --background-end: #1a0000;    /* Endfarbe für Verlauf (außen) */
    --border-radius: 12px;
}

/* ----------------------------------------------------
   Basics & Hintergrund (Radial Gradient)
   ---------------------------------------------------- */
body {
    background: radial-gradient(circle at top, var(--background-start) 0%, var(--background-end) 80%);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px 15px;
    text-align: center;
    box-sizing: border-box;
}

/* ----------------------------------------------------
   Header & Social Icons
   ---------------------------------------------------- */
.profile-image {
    width: 96px; 
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

h1 {
    font-size: 1.6rem;
    margin: 0;
}

.description {
    margin: 0 0 20px 0;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Social Icon Bar */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    font-size: 24px;
}

.social-icons a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.social-icons a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Anpassung der Font Awesome Icons in der Social Bar */
.social-icons a i {
    font-size: 24px;
}

/* ----------------------------------------------------
   Link-Buttons (Der Kern) - FÜR A UND BUTTON
   ---------------------------------------------------- */
.link-button, button.link-button {
    /* WICHTIG: Button Resets für sensitive Links */
    border: none;
    cursor: pointer;
    text-align: center;
    width: 100%; /* SICHERSTELLEN: Breite ist immer 100% */
    box-sizing: border-box; /* SICHERSTELLEN: Padding und Border zählen zur Breite */
    
    /* VISUELLE STYLES (für beide Elemente) */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--button-bg);
    color: var(--text-color);
    text-decoration: none;
    padding: 18px 20px;
    margin: 10px 0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s;
    border: var(--link-border);
    box-shadow: none;
    position: relative;
    line-height: 1; 
}

.link-button:hover, button.link-button:hover {
    background-color: var(--button-hover-bg);
}

/* Haupt-Link (Rot) */
.link-button.primary, button.link-button.primary {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-weight: 700;
    box-shadow: 0 0 10px rgba(228, 14, 49, 0.4);
}

.link-button.primary:hover, button.link-button.primary:hover {
    background-color: #ff3857;
}

/* Icons links und rechts in den Buttons */
.link-icon-left, .link-icon-right {
    position: absolute; 
    font-size: 1.2em;
    color: var(--text-color);
}
.link-icon-left {
    left: 20px;
}
.link-icon-right {
    right: 20px;
}

/* Spezielles Styling für Links mit eigenem Logo (z.B. VisitX) */
.link-button.logo-link, button.link-button.logo-link {
    background-color: var(--primary-color);
    border: none;
}

.link-button.logo-link .link-icon-left, button.link-button.logo-link .link-icon-left {
    left: 10px;
    font-size: 1.5em;
    color: var(--text-color);
    padding: 5px 8px;
    border-radius: 6px;
    background-color: #000000;
}

.link-button.logo-link:hover, button.link-button.logo-link:hover {
    background-color: var(--primary-color);
    transform: none;
}


/* ----------------------------------------------------
   Trenner & Eingebetteter Inhalt
   ---------------------------------------------------- */
/* Dropdown/Trenner */
.link-separator {
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 700;
    margin: 30px 0 15px 0;
    opacity: 0.8;
    text-transform: uppercase;
}

/* Sicherstellen, dass die Trenner-Icons auch FA-Icons sind */
.link-separator i {
    margin-left: 8px;
    font-size: 0.8rem;
}

.link-icon-favicon {
    /* Setzt den Favicon-Container auf die gleiche Höhe wie das FA-Icon */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Optional: Hintergrund oder Rand, wenn das Icon klein ist */
}

.link-button.coming-soon{
  opacity: .65;
  cursor: not-allowed;
  pointer-events: auto; /* wichtig, damit wir klicken abfangen können */
}


/* Styling für das Favicon Bild selbst */
.favicon-img {
    width: 24px;   /* Konsistente Größe */
    height: 24px;
    border-radius: 4px; /* Leichte Rundung, um es vom runden Profilbild zu unterscheiden */
    object-fit: contain;
    /* Optional: Leichter weißer Rand für bessere Sichtbarkeit */
    border: 1px solid rgba(255, 255, 255, 0.1); 
}

.embedded-content {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-top: 30px;
}

.embedded-content img {
    width: 100%;
    border-radius: var(--border-radius);
    display: block;
}

.embed-footer {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 10px;
}


/* ----------------------------------------------------
   Modal-Styling für Sensitive Content Warning
   ---------------------------------------------------- */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--background-end);
    color: var(--text-color);
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(228, 14, 49, 0.4);
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
    border: 1px solid var(--primary-color);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.modal-content p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-button {
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s;
    width: 100%;
}

.modal-button.primary {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.modal-button.primary:hover {
    background-color: #ff3857;
}

.modal-button.secondary {
    background-color: var(--button-bg);
    color: var(--text-color);
    border: 1px solid #555;
}

.modal-button.secondary:hover {
    background-color: var(--button-hover-bg);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ----------------------------------------------------
   Footer & Responsive
   ---------------------------------------------------- */
footer {
    margin-top: 40px;
    font-size: 0.75rem;
    opacity: 0.4;
}
@media (max-width: 500px) {
    .link-button {
        padding: 15px 10px;
    }
}

/* ===============================
   HIGHLIGHT: Meine Homepage (GOLD)
   =============================== */

.link-button.highlight-home {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* animierter goldener Rahmen */
.link-button.highlight-home::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #b88a2b 20%,   /* dunkles Gold */
        #ffd36a 40%,   /* helles Gold */
        #fff1b8 50%,   /* Glanzpunkt */
        #ffd36a 60%,
        #b88a2b 80%,
        transparent 100%
    );
    background-size: 300% 300%;
    animation: borderGlowGold 3.5s linear infinite;
    z-index: -1;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
}

/* sanftes goldenes Pulsieren */
.link-button.highlight-home {
    box-shadow: 0 0 0 rgba(255, 211, 106, 0.0);
    animation: softPulseGold 3.5s ease-in-out infinite;
}

@keyframes borderGlowGold {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@keyframes softPulseGold {
    0%   { box-shadow: 0 0 0 rgba(255, 211, 106, 0); }
    50%  { box-shadow: 0 0 22px rgba(255, 211, 106, 0.55); }
    100% { box-shadow: 0 0 0 rgba(255, 211, 106, 0); }
}