/* =========================================================
   Grundlayout der öffentlichen qrocco-Seite
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body.qrocco-public-page {
    min-height: 100vh;
    margin: 0;

    background:
        linear-gradient(
            145deg,
            #e4ecd9 0%,
            #f5f6ef 45%,
            #dce6d0 100%
        );

    color: #202820;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.5;
}


@font-face {
    font-family: 'League Spartan';
    src: url('/design/fonts/QroccoSpartan-Bold.ttf') format('truetype');
    font-style: normal;
    font-display: swap;
}

/* =========================================================
   Hauptbereich
   ========================================================= */

.qrocco-public-content {
    width: 100%;
    padding: 24px 14px 0;
}

.qrocco-public {
    width: 100%;
}


/* =========================================================
   Der eigentliche qrocco-Kasten
   ========================================================= */

.qrocco-public-card {
    width: 100%;
    max-width: 460px;

    margin: 0 auto;
    padding: 34px 22px 32px;

    background: rgba(255, 255, 255, 0.97);

    border: 1px solid rgba(20, 35, 20, 0.12);
    border-radius: 16px;

    box-shadow:
        0 18px 50px rgba(25, 40, 25, 0.14);

    text-align: center;
}


/* =========================================================
   QR-Code
   ========================================================= */

.qrocco-public-qrcode {
    margin: 0 0 18px;
    text-align: center;
}

.qrocco-public-qrcode img {
    display: block;

    width: 170px;
    height: 170px;

    margin: 0 auto;
    padding: 12px;

    background: #ffffff;

    border: 1px solid #d9dfd1;
    border-radius: 12px;

    box-shadow:
        0 3px 12px rgba(20, 35, 20, 0.06);
}


/* =========================================================
   qrocco-Code
   ========================================================= */

.qrocco-public-code {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 7px;
    max-width: 100%;
    margin-bottom: 22px;
    padding: 6px 14px;
    background: #e4ecd9;
    border: 1px solid #c5d0b9;
    border-radius: 999px;
    color: #25452b;
    font-family: Verdana, monospace;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
}

.qrocco-public-code-label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    opacity: .8;
}



/* =========================================================
   Bild
   ========================================================= */

.qrocco-profile-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 170px;

    margin: 0 0 28px;
}

.qrocco-profile-image img {
    display: block;

    width: auto;
    max-width: 240px;

    height: auto;
    max-height: 240px;

    margin: 0 auto;

    object-fit: contain;
    border-radius: 14px;
}

/* =========================================================
   Öffentlicher Name
   ========================================================= */

.qrocco-public-name { margin: 0 0 10px; color: #071b0c; font-size: 30px; overflow-wrap: anywhere;     font-family: 'League Spartan', sans-serif;
    font-weight: 900;
    line-height: 1.2;}


/* =========================================================
   Beschreibung
   ========================================================= */

.qrocco-public-description {
    max-width: 390px;

    margin: 0 auto 26px;

    color: #354435;

    font-size: 16px;
    line-height: 1.65;

    overflow-wrap: anywhere;
}


/* =========================================================
   Social Links
   ========================================================= */

.qrocco-public-links { display: flex; flex-direction: column; gap: 12px; width: 100%; } 
.qrocco-public-link {  position: relative; display: flex; align-items: center; width: 100%; min-height: 68px; padding: 13px 16px; background: #f5f6ef; border: 1px solid #d2d9c8; border-radius: 10px; color: #202820; text-align: left; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease; } 
.qrocco-public-link:hover, 
.qrocco-public-link:focus-visible { background: #ffffff; border-color: #81965f; box-shadow: 0 8px 22px rgba(20, 35, 20, 0.12); transform: translateY(-2px); } .qrocco-public-link:active { transform: translateY(0); }



/* =========================================================
   Social-Media-Icons
   ========================================================= */

.qrocco-public-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 46px;
    height: 46px;

    margin-right: 14px;

    font-size: 26px;
    text-align: center;
}

.qrocco-public-link-icon img,
.qrocco-public-link-icon svg {
    display: block;

    width: 34px;
    height: 34px;

    object-fit: contain;
}


/* =========================================================
   Text innerhalb der Social-Buttons
   ========================================================= */

.qrocco-public-link-content {
    display: flex;
    flex: 1;
    flex-direction: column;

    min-width: 0;
    padding-right: 32px;
}

.qrocco-public-link-label {
    color: #202820;

    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.qrocco-public-link-data {
    margin-top: 3px;

    color: #596657;

    font-size: 14px;
    line-height: 1.25;

    overflow-wrap: anywhere;
}


/* =========================================================
   Pfeil rechts - Link Kachel
   ========================================================= */

.qrocco-public-link-chevron {
    position: absolute;

    top: 50%;
    right: 16px;

    width: 28px;
    height: 28px;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;
}

.qrocco-public-link-chevron img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.65;
}

.qrocco-public-link:hover .qrocco-public-link-chevron img,
.qrocco-public-link:focus-visible .qrocco-public-link-chevron img {
    opacity: 1;
}

/* =========================================================
   qrocco-Branding / Footer
   ========================================================= */

.qrocco-brand-footer {
    width: min(460px, calc(100% - 28px));
    margin: 26px auto 32px;
    padding: 22px 18px 0;
    border-top: 1px solid rgba(85, 103, 87, .24);
    text-align: center;
}

.qrocco-brand-credit {
    margin: 0 0 12px;
    font-size: 13px;
    color: #303a33;
}

.qrocco-brand-logo-link {
    display: inline-block;
    line-height: 0;
    margin-bottom: 18px;
}

.qrocco-brand-logo {
    display: block;
    width: 132px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.qrocco-public-own-wrap {
    display: flex;
    justify-content: center;
    padding: 0 0 12px;
}

.qrocco-public-own-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 10px;
    background: #25452b;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: transform .15s ease, opacity .15s ease;
}

.qrocco-public-own-button:hover {
    transform: translateY(-1px);
    opacity: .92;
}

.qrocco-public-footer {
    padding: 0 0 8px;
    color: #455744;
    font-size: 15px;
    text-align: center;
    opacity: .9;
}

.qrocco-public-footer a {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.qrocco-public-footer a:hover {
    text-decoration: underline;
}


/* =========================================================
   Mobilgeräte
   ========================================================= */

@media (max-width: 520px) {

    .qrocco-public-content {
        padding: 14px 8px 0;
    }

    .qrocco-brand-footer {
        margin-top: 22px;
        padding-top: 18px;
    }

    .qrocco-public-card {
        padding: 28px 16px 26px;

        border-radius: 14px;
    }

    .qrocco-public-qrcode img {
        width: 158px;
        height: 158px;

        padding: 10px;
        border-radius: 12px;
    }

    .qrocco-public-code {
        margin-bottom: 28px;
    }

    .qrocco-profile-image {
        min-height: 130px;
        margin-bottom: 24px;
    }


    .qrocco-public-name {
        font-size: 28px;
    }

    .qrocco-public-description {
        font-size: 15px;
    }

    .qrocco-public-link {
        min-height: 66px;
        padding: 11px 13px;
    }

    .qrocco-public-link-icon {
        width: 42px;
        height: 42px;

        margin-right: 12px;
    }

    .qrocco-public-link-icon img,
    .qrocco-public-link-icon svg {
        width: 31px;
        height: 31px;
    }

}


/* =========================================================
   Sehr kleine Displays
   ========================================================= */

@media (max-width: 350px) {

    .qrocco-public-card {
        padding-right: 12px;
        padding-left: 12px;
    }

    .qrocco-public-qrcode img {
        width: 146px;
        height: 146px;
    }

    .qrocco-public-name {
        font-size: 24px;
    }

    .qrocco-public-link-label {
        font-size: 16px;
    }

    .qrocco-public-link-data {
        font-size: 13px;
    }

}

/* =========================================================
   zusatzfeatures
   ========================================================= */

/* qrocco – Dunkles Design
*/

/* Hellerer Hintergrund macht das dunkle qrocco-Logo besser sichtbar. */
body.qrocco-public-page:has(.qrocco-theme-dark) {
    background: linear-gradient(145deg, #858e85 0%, #828a84 48%, #626c65 100%);
    color: #1c2a20;
}

/* Der eigentliche Inhaltsbereich soll klar dunkler als der Hintergrund sein. */
.qrocco-theme-dark .qrocco-public-card {
    background: #17221b;
    border: 1px solid #35443a;
    box-shadow: 0 22px 55px rgba(10, 24, 14, .32);
}

.qrocco-theme-dark .qrocco-public-name { color: #f6f9f4; }
.qrocco-theme-dark .qrocco-public-description { color: #e0e8e1; }
.qrocco-theme-dark .qrocco-public-category { color: #eff6ed; }
.qrocco-theme-dark .qrocco-public-divider { border-color: #526755; }

.qrocco-theme-dark .qrocco-public-code {
    background: #465149;
    color: #ecf4e9;
    border-color: #627368;
}

/* Link-Kacheln heller als die Karte – klar als Schaltflaeche erkennbar. */
.qrocco-theme-dark .qrocco-public-link {
    background: #465149;
    border-color: #56685c;
    color: #f4f8f1;
}
.qrocco-theme-dark .qrocco-public-link:hover,
.qrocco-theme-dark .qrocco-public-link:focus-visible {
    background: #39443d;
    border-color: #90a497;
    box-shadow: 0 7px 20px rgba(0,0,0,.3);
}
.qrocco-theme-dark .qrocco-public-link-label { color: #ffffff; }
.qrocco-theme-dark .qrocco-public-link-data { color: #d8e2da; }

/* Externe SVG/PNG-Icons werden im dunklen Modus hell und einfarbig.
   Hinweis: Urspruenglich bunte Logos werden dabei ebenfalls monochrom. */
.qrocco-theme-dark .qrocco-public-link-icon img {
    filter: brightness(0) invert(1);
    opacity: .94;
}
.qrocco-theme-dark .qrocco-public-link-icon svg {
    filter: brightness(0) invert(1);
    opacity: .94;
}
.qrocco-theme-dark .qrocco-public-link-chevron img {
    filter: brightness(0) invert(1);
    opacity: .78;
}

.qrocco-theme-dark .qrocco-public-own-button {
    background: #303b34;
    border-color: #56685c;
    color: #f4f8f1;
}

/* Der Footer steht auf dem helleren Seitenhintergrund. */
body.qrocco-public-page:has(.qrocco-theme-dark) .qrocco-public-footer,
body.qrocco-public-page:has(.qrocco-theme-dark) .qrocco-public-footer a {
    color: #1e3224;
}




/* Individuelle rechtliche Informationen und Plattformfooter */
.qrocco-legal-notice { margin-top: 28px; font-size: 12px; line-height: 1.5; text-align: center; color: #536053; overflow-wrap: anywhere; }
.qrocco-legal-links { margin-top: 5px; }
.qrocco-legal-notice a, .qrocco-legal-page a { color: inherit; text-decoration: underline; }
.qrocco-theme-dark .qrocco-legal-notice, .qrocco-theme-dark .qrocco-legal-page { color: #e0e8e1; }
.qrocco-legal-profile-name { text-align: center; margin-bottom: 22px; }
.qrocco-legal-text { text-align: left; overflow-wrap: anywhere; }
.qrocco-legal-text h2 { font-size: 1.25em; }
.qrocco-legal-text h3 { font-size: 1.1em; }
.qrocco-platform-footer { background: #fff; border-top: 1px solid #d2d9c8; color: #596657; font-size: 13px; }
.qrocco-platform-footer-inner { max-width: 980px; margin: 0 auto; padding: 20px 18px; text-align: center; }
.qrocco-platform-footer a { color: inherit; text-decoration: none; }
.qrocco-platform-footer a:hover, .qrocco-platform-footer a:focus-visible { text-decoration: underline; }


/* Qrocco – dezente Meldefunktion am Profilende */
.qrocco-report-entry { margin: 13px auto 0; width: min(460px, 100%); text-align: center; }
.qrocco-report-entry a { color: #536053; font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }
.qrocco-report-entry a:hover, .qrocco-report-entry a:focus-visible { color: #1e3224; }
.qrocco-theme-dark .qrocco-report-entry a { color: #1e3224; }
.qrocco-theme-dark .qrocco-report-entry a:hover, .qrocco-theme-dark .qrocco-report-entry a:focus-visible { color: #081f13; }

/* Öffentliches Qrocco-Meldeformular – ausschließlich Qrocco-Farbpalette */
.qrocco-report-card { text-align: left; }
.qrocco-report-card h1 { margin: 0 0 8px; color: #1e3224; font-family: 'League Spartan', Arial, sans-serif; font-size: 28px; text-align: center; }
.qrocco-report-card > .qrocco-report-name { margin: 0 0 16px; text-align: center; overflow-wrap: anywhere; }
.qrocco-report-form { display: flex; flex-direction: column; gap: 12px; }
.qrocco-report-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.qrocco-report-form legend, .qrocco-report-form label.qrocco-report-label { display: block; margin: 0 0 7px; font-weight: 700; }
.qrocco-report-form .qrocco-report-choice { display: flex; align-items: center; gap: 9px; margin: 7px 0; cursor: pointer; }
.qrocco-report-form .qrocco-report-choice input { width: auto; margin: 0; }
.qrocco-report-form select, .qrocco-report-form textarea { display: block; width: 100%; min-height: 43px; border: 1px solid #a9b5aa; border-radius: 10px; padding: 10px 12px; font: inherit; color: #202820; background: #fff; }
.qrocco-report-form textarea { min-height: 130px; resize: vertical; }
.qrocco-report-form select:focus-visible, .qrocco-report-form textarea:focus-visible { outline: 2px solid #65805a; outline-offset: 1px; }
.qrocco-report-link-picker { display: none; }
.qrocco-report-form:has(input[name="report_type"][value="link"]:checked) .qrocco-report-link-picker { display: block; }
.qrocco-report-submit { width: 100%; min-height: 44px; background: #25452b; color: #fff; border: 0; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; }
.qrocco-report-submit:hover, .qrocco-report-submit:focus-visible { background: #345633; }
.qrocco-report-back { display: inline-block; margin-top: 18px; color: #345633; text-decoration: underline; }
.qrocco-report-message { margin: 12px 0 18px; padding: 11px 13px; border-left: 3px solid #25452b; background: #e4ecd9; overflow-wrap: anywhere; }
.qrocco-report-message.is-error { border-left-color: #af4949; background: #fff1f0; }
.qrocco-report-note { margin: 0 0 17px; font-size: 14px; color: #526052; }
.qrocco-report-honeypot { position: absolute; left: -10000px; opacity: 0; pointer-events: none; }
.qrocco-theme-dark .qrocco-report-card h1 { color: #eff7ee; }
.qrocco-theme-dark .qrocco-report-note, .qrocco-theme-dark .qrocco-report-back { color: #cbd8ce; }
.qrocco-theme-dark .qrocco-report-message { background: #3e4b42; color: #eef5ed; }
.qrocco-theme-dark .qrocco-report-message.is-error { background: #523c3c; }
/* Dunkle Qrocco-Profile: Meldetext lesbar; Eingaben bewusst hell. */
.qrocco-theme-dark .qrocco-report-card { color: #e0e8e1; }
.qrocco-theme-dark .qrocco-report-form select,
.qrocco-theme-dark .qrocco-report-form textarea { color: #202820; }

/* Markenakzent bei Tastaturfokus, in beiden Designs */
.qrocco-public-link:focus-visible,
.qrocco-public-own-button:focus-visible {
    outline: 2px solid #81965f;
    outline-offset: 3px;
}
.qrocco-theme-dark .qrocco-public-link:focus-visible,
.qrocco-theme-dark .qrocco-public-own-button:focus-visible {
    outline-color: #c6e11c;
}
