/* ==========================================================================
   AQUILA - Main stylesheet
   public/css/app.css

   Sections:
   1. Design tokens / variables
   2. Global reset and base styles
   3. Shared layout helpers
   4. Accessibility
   5. Public site header / navigation
   6. Buttons
   7. Generic hero and content sections
   8. Generic CTA banner
   9. Award / retrospective page
   10. Submission form page
   11. Form validation
   12. Form checkbox
   13. File uploads
   14. Existing files on edit page
   15. Form actions
   16. Footer
   17. Honeypot
   18. Error pages
   19. Authentication / Login Page
   20. Account / "Mein Bereich" Landing Page
   21. Submission detail page
   22. Submissions overview page
   23. Home page
   24. FAQ page
   25. Responsive: tablet
   26. Responsive: mobile
   ========================================================================== */


/* ==========================================================================
   1. Design tokens / variables
   ========================================================================== */

:root {
    --color-primary: #0b4899;
    --color-primary-dark: #1B276F;
    --color-primary-light: #B1C9F1;
    --color-accent: #e44407;
    --color-accent-dark: #D54107;
    --color-accent-light: #F9682F;

    --color-bg: #ffffff;
    --color-bg-alt: #f5f6f8;
    --color-bg-soft: #f7f8fb;
    --color-bg-footer: #093672;
    --color-primary-tint: #e8efff;
    --color-accent-tint: #fbe9e2;
    --color-link-on-dark: #d7e7fb;
    --color-muted-on-dark: #b9cbe1;
    --color-hero-end: #087bd0;
    --gradient-hero: linear-gradient(155deg, #10458c 0%, var(--color-primary) 55%, var(--color-hero-end) 100%);

    --color-text: #1a1a1a;
    --color-text-muted: #5f6368;
    --color-border: #d7dbe2;
    --color-border-strong: #b8bec8;
    --color-error: #b42318;
    --color-success: #06654A;

    --font-base:
        "Trebuchet MS",
        Arial,
        sans-serif;

    --max-width: 1280px;
    --content-width: 900px;
    --header-max-width: 1600px;
    --header-row-height: 2.75rem;
}


/* ==========================================================================
   2. Global reset and base styles
   ========================================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;

    display: flex;
    flex-direction: column;

    font-family: var(--font-base);
    color: var(--color-text);
    line-height: 1.5;

    background: var(--color-bg);
}

#main-content {
    flex: 1;
}

a {
    color: var(--color-primary);
}

a:hover {
    text-decoration-thickness: 2px;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
input,
select,
textarea,
a {
    outline-offset: 3px;
}

:focus-visible {
    outline: 3px solid var(--color-primary);
}

.auth-status--info {
    margin: 0 0 1.5rem;
    padding: 0.85rem 1rem;

    border: 1px solid var(--color-primary);
    border-radius: 5px;

    background: var(--color-bg-soft);
    color: var(--color-primary);
}

.auth-status--success {
    margin: 0 0 1.5rem;
    padding: 0.85rem 1rem;

    border: 1px solid var(--color-success);
    border-radius: 5px;

    background: var(--color-bg-soft);
    color: var(--color-success);
}

.auth-status--warning {
    margin: 0 0 1.5rem;
    padding: 0.85rem 1rem;

    border: 1px solid var(--color-accent);
    border-radius: 5px;

    background: var(--color-bg-soft);
    color: var(--color-accent);
}

.auth-status--error {
    margin: 0 0 1.5rem;
    padding: 0.85rem 1rem;

    border: 1px solid var(--color-error);
    border-radius: 5px;

    background: var(--color-bg-soft);
    color: var(--color-error);
}

/* The edit link contains a 64-character token and must wrap on small screens. */
.success-edit-link {
    overflow-wrap: anywhere;
}


/* ==========================================================================
   3. Shared layout helpers
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page {
    min-height: 100%;
    padding: 3rem 0 5rem;

    background: var(--color-bg-alt);
}

.page__container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* ==========================================================================
   4. Accessibility
   ========================================================================== */

.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;

    transform: translateY(-120%);

    padding: 0.75rem 1rem;

    background: white;
    color: var(--color-text);
}

.skip-link:focus {
    transform: translateY(0);
}


/* ==========================================================================
   5. Public site header / navigation
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    padding: 1rem 0;

    background: var(--color-primary);
    color: white;

    font-weight: 500;

    box-shadow: 0 0 12px var(--color-primary-dark);
}

/*
 * Header intentionally uses a wider maximum width than normal site content.
 * The element may also carry the generic .container class in Blade;
 * this rule overrides its normal max-width/padding.
 */
.site-header__inner {
    width: 100%;
    max-width: var(--header-max-width);
    margin: 0 auto;
    padding: 0 2rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Partner logo group */

.site-header__logos {
    display: flex;
    align-items: center;
    flex: 0 0 auto;

    height: var(--header-row-height);

    gap: 0.65rem;
    flex-wrap: nowrap;
}

.site-header__logos a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 100%;
    flex: 0 0 auto;
}

.site-header__logos img {
    display: block;

    width: auto;
    height: 100%;
    max-width: none;
}

/* Used for logos requiring a white background. */
.site-header__brand--light-bg {
    padding: 0.25rem 0.4rem;

    background: white;
}

.site-header__brand {
    color: white;
    text-decoration: none;

    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

/* Main navigation */
.site-header__nav {
    min-width: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;

    min-height: var(--header-row-height);

    gap: 1rem;

    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header nav a {
    position: relative;

    color: white;
    text-decoration: none;
    text-transform: uppercase;

    font-size: 0.85rem;
    white-space: nowrap;

    transition: color 0.2s ease;
}

.site-header nav a::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: -0.5rem;

    width: 100%;
    height: 3px;

    background: var(--color-accent);

    transform: translateX(-50%) scaleX(0);
    transform-origin: center;

    transition: transform 0.25s ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
    color: var(--color-accent);
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
    transform: translateX(-50%) scaleX(1);
}

/* Header Actions */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.site-header__cta {
    flex: 0 0 auto;
}

/* Mobile menu button is hidden outside mobile view. */

.site-header__menu-toggle {
    display: none;
}


/* ==========================================================================
   6. Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    padding: 0.6rem 1.2rem;

    border: 0;
    border-radius: 4px;

    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;

    font-weight: 700;

    cursor: pointer;
}

.btn svg {
    flex-shrink: 0;
}

.btn-accent {
    background: var(--color-accent);
    color: white;
}

.btn-accent:hover, .btn-accent-secondary:hover {
    filter: brightness(0.93);
}

.btn-accent-secondary {
    border: 2px solid var(--color-accent);
    background: white;
    color: var(--color-accent);
}

.btn-secondary {
    border: 1px solid var(--color-border);
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.btn-large {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
}


/* ==========================================================================
   7. Generic hero and content sections
   Used primarily by the normal public/home page.
   ========================================================================== */

.hero {
    padding: 3rem 0;

    background-image: var(--gradient-hero);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
    text-align: center;
}

.hero h1 {
    margin-bottom: 0.5rem;

    font-size: 2.5rem;
}

.hero p {
    font-size: 1.2rem;
}

.hero img {
    max-width: 100%;
    margin-top: 2rem;

    border-radius: 6px;
}

/* Generic content sections */

.section {
    padding: 3rem 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section h2 {
    display: inline-block;

    padding-bottom: 0.3rem;

    border-bottom: 3px solid var(--color-primary);

    text-align: center;
    font-size: 1.6rem;
}

.section-heading {
    margin-bottom: 2rem;

    text-align: center;
}

/* Generic flexible multi-column layout */

.multiple-col {
    display: flex;
    flex-wrap: wrap;

    gap: 3rem;
}

.multiple-col > div {
    flex: 1;
    min-width: 280px;
}


/* ==========================================================================
   8. Generic CTA banner
   ========================================================================== */

.cta-banner {
    padding: 3rem 0;

    background: var(--color-accent);
    color: white;

    text-align: center;
}

.cta-banner .btn-accent {
    background: white;
    color: var(--color-accent);
}


/* ==========================================================================
   9. Award / retrospective page
   ========================================================================== */

.award-page {
    background: var(--color-bg-alt);
}


/* Award hero */

.award-hero {
    padding: 3rem 0 7rem;

    background: var(--gradient-hero);

    color: white;
    text-align: center;
}

.award-hero__content {
    position: relative;
}

.award-hero h1 {
    margin: 2rem 0;

    font-size: clamp(2.5rem, 7vw, 4.5rem);
    line-height: 1;
    font-weight: 900;
}

.award-hero p {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;

    font-size: 1.3rem;
}

/*
 * The negative bottom margin determines how far the hero image
 * extends beyond the blue hero section.
 */
.award-hero__figure {
    max-width: 900px;
    margin: 3rem auto -18rem;
}

.award-hero__figure img {
    display: block;
    width: 100%;

    border-radius: 8px;

    box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 0.18);
}

.award-hero__figure figcaption,
.award-gallery__figure figcaption {
    margin-top: 0.5rem;

    color: var(--color-text-muted);

    font-size: 0.8rem;
    text-align: right;
}

.award-hero__figure figcaption {
    color: var(--color-primary);
}


/* Award download/resource cards */

.award-resources-section {
    padding-top: 8rem;
}

.award-resources {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 1.5rem;
    margin-top: 8rem;
}

.award-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 2rem 1.5rem;

    border: 1px solid var(--color-border);
    border-radius: 8px;

    background: var(--color-bg);

    text-align: center;

    box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 0.06);
}

.award-card__icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.75rem;

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

    border-radius: 50%;

    background: var(--color-accent-tint);
    color: var(--color-accent);
}

.award-card h2 {
    display: block;

    margin: 0 0 0.4rem;

    border: 0;

    font-size: 1.25rem;
}

.award-card > p {
    margin-top: 0;
}

.award-card__button {
    width: 100%;
    margin-top: auto;
}

.award-downloads__copyright {
    margin: 1rem 0 0;

    color: var(--color-text-muted);

    font-size: 0.8rem;
    text-align: center;
}


/* Award section divider */

.section-divider {
    width: 6rem;
    height: 3px;

    margin: 0 auto 2rem;

    border: 0;

    background: var(--color-accent);
}


/* Shared award media wrapper */

.award-media {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 8px;

    background: var(--color-bg);
}

.award-media iframe,
.award-media video {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}

.award-media--video {
    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--color-border);

    color: var(--color-text-muted);
}

.award-media__video-box {
    box-shadow: 2px 4px 10px var(--color-border-strong);
}


/* Award gallery */

.award-gallery {
    background: var(--color-primary);
    color: white;
}

.award-gallery h2 {
    border-color: var(--color-accent);
}

.award-gallery__figure {
    width: 100%;
    max-width: 900px;

    margin: 0 auto 2rem;
    padding: 0;
}

.award-gallery__figure .external-content {
    margin: 2rem 0 0;
}

.award-gallery__figure figcaption {
    color: #ddd;
}


/* Privacy-protected external embeds: Vimeo / APA */

.external-content {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 8px;

    background: var(--color-bg);
}

.external-content__placeholder {
    width: 100%;
    height: 100%;

    background-image: var(--external-preview, none);
    background-size: cover;
    background-position: center;
}

.external-content__overlay {
    width: 100%;
    height: 100%;
    padding: 2rem;

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

    background: rgb(0 0 0 / 0.5);
    color: white;

    text-align: center;
}

.external-content__overlay p {
    max-width: 36rem;
    margin: 0 0 1rem;
}

.external-content iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}


/* ==========================================================================
   10. Submission form page
   ========================================================================== */

.form-page {
    padding: 3rem 0 5rem;

    background: var(--color-bg-alt);
}

.form-page__container {
    max-width: var(--content-width);
}

.form-page__header {
    margin-bottom: 2rem;
}

.form-page__title {
    margin: 0 0 0.75rem;

    color: var(--color-primary);

    font-size: clamp(2.2rem, 7vw, 4.5rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.030em;
    text-transform: uppercase;
}

.form-page__deadline {
    margin: 0;

    color: var(--color-text-muted);

    font-size: 1.05rem;
}

.form__legend {
    text-align: right;
    margin-bottom: 0;
}


/* Form labels */

label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}


/* Main form structure */

.submission-form {
    display: grid;
    gap: 1.5rem;
}

.form-section,
.submission-section {
    min-width: 0;
    margin: 0;
    padding: 1.75rem;

    border: 1px solid var(--color-primary);
    border-radius: 10px;

    background: var(--color-bg);
}

.form-section__legend,
.submission-section__heading {
    max-width: calc(100% - 1rem);

    display: flex;
    align-items: center;
    gap: 0.65rem;

    color: var(--color-primary);

    font-size: 1.3rem;
    font-weight: 800;
}

.form-section__legend {
    padding: 0 0.5rem;
}

.form-section__icon,
.submission-section__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    color: var(--color-primary);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 1.25rem 1.5rem;
}

.form-field {
    min-width: 0;
}

.form-field--wide {
    grid-column: 1 / -1;
}

.form-field--small {
    max-width: 12rem;
}

.form-field label {
    display: block;

    margin-bottom: 0.35rem;

    font-weight: 700;
}

/* Form controls */

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="url"],
.form-field input[type="tel"],
.form-field input[type="file"],
.form-field select,
.form-field textarea,
.selected-file input {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    padding: 0.7rem 0.8rem;

    border: 1px solid var(--color-border-strong);
    border-radius: 5px;

    background: white;
    color: var(--color-text);
}

.form-field textarea {
    min-height: 8rem;

    resize: vertical;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover,
.selected-file input:hover {
    border-color: var(--color-primary);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.selected-file input:focus {
    border-color: var(--color-primary);
}

.form-field [aria-invalid="true"] {
    border-color: var(--color-error);
}


/* Form help text and counters */

.form-help,
.form-counter {
    margin: 0.35rem 0 0;

    color: var(--color-text-muted);

    font-size: 0.88rem;
}

.form-help {
    overflow-wrap: anywhere;
}

.form-counter {
    text-align: right;
}

.form-error {
    margin: 0.35rem 0 0;

    color: var(--color-error);

    font-size: 0.9rem;
    font-weight: 600;
}

/* Category information popup */
.form-info-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.25rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    vertical-align: middle;
}

.form-info-trigger:hover {
    opacity: 0.7;
}

.form-info-trigger:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 50%;
}

.form-info-popover {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(90vw, 26rem);
    height: fit-content;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    background: white;
    color: #222;
    box-shadow: 0 8px 24px rgb(0 0 0 / 15%);
    line-height: 1.6;
}

.form-info-popover::backdrop {
    background: rgb(0 0 0 / 25%);
}

.form-info-popover__close {
    float: right;
    margin: -0.75rem -0.75rem 0.5rem 0.5rem;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
}

.form-info-popover__close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}


/* ==========================================================================
   11. Form validation
   ========================================================================== */

.validation-summary {
    padding: 1rem 1.25rem;

    border: 1px solid var(--color-error);
    border-radius: 6px;

    background: #fff6f5;
}

.validation-summary h2 {
    margin-top: 0;

    font-size: 1.1rem;
}

.validation-summary ul {
    margin-bottom: 0;
}


/* ==========================================================================
   12. Form checkbox
   ========================================================================== */

.form-field--checkbox {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;

    gap: 0.75rem;

    font-weight: 400;
}

.checkbox-label input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;

    flex: 0 0 auto;
}

.checkbox-label span {
    min-width: 0;
}


/* ==========================================================================
   13. File uploads
   ========================================================================== */

/* Browser file picker */

.file-upload {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 0.75rem;
}

.file-upload__input {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    clip: rect(0 0 0 0);
    clip-path: inset(50%);

    white-space: nowrap;
}

.file-upload__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    padding: 0.65rem 1rem;

    border: 1px solid var(--color-primary);
    border-radius: 5px;

    background: var(--color-primary);
    color: white;

    font-weight: 700;

    cursor: pointer;
}

.file-upload__button:hover {
    background: var(--color-primary-dark);
}

.file-upload__input:focus-visible + .file-upload__button {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

.file-upload__input[aria-invalid="true"] + .file-upload__button {
    border-color: var(--color-error);
    outline: 2px solid var(--color-error);
    outline-offset: 2px;
}

.file-upload__status {
    color: var(--color-text-muted);

    font-size: 0.9rem;
}


/* Separate logo and project upload prompts. */
.upload-group + .upload-group {
    margin-top: 2rem;
}

/* Files selected before form submission */

.selected-files {
    display: grid;

    gap: 1rem;
    margin-top: 1rem;
}

.selected-file {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(12rem, 1fr)
        auto;

    align-items: end;

    gap: 0.75rem;
    padding: 1rem;

    border: 1px solid var(--color-border);
    border-radius: 6px;

    background: var(--color-bg-soft);
}

.selected-file__name {
    align-self: center;

    overflow-wrap: anywhere;

    font-weight: 700;
}

.selected-file label {
    grid-column: 2;

    margin-bottom: -0.4rem;

    font-size: 0.85rem;
    font-weight: 700;
}

.selected-file input {
    grid-column: 2;
}

.selected-file button {
    grid-column: 3;
    grid-row: 2;
}


/* ==========================================================================
   14. Existing files on submission edit page
   ========================================================================== */

.existing-files {
    margin-top: 1.5rem;
}

.existing-files ul {
    display: grid;

    gap: 1rem;

    list-style: none;

    margin: 0;
    padding: 0;
}

.existing-files li {
    padding: 1rem;

    border: 1px solid var(--color-border);
    border-radius: 6px;

    background: var(--color-bg-soft);
}

.existing-files a {
    text-decoration: none;
}

.existing-files-deleteBtn {
    border: none;

    background: none;
    color: var(--color-error);

    cursor: pointer;
}


/*
 * Structured existing-file layout.
 * Used when each existing file has name / copyright / actions sections.
 */
.existing-file {
    display: grid;
    grid-template-columns:
        minmax(12rem, 18rem)
        minmax(16rem, 1fr)
        auto;

    align-items: end;

    gap: 1.25rem;
    padding: 1rem;

    border: 1px solid var(--color-border);
    border-radius: 6px;

    background: var(--color-bg-soft);
}

.existing-file__name {
    overflow-wrap: anywhere;

    font-weight: 700;
}

.existing-file__copyright {
    min-width: 0;
}

.existing-file__copyright input {
    width: 100%;
    max-width: 100%;
}

.existing-file__actions {
    display: flex;
    align-items: center;
    justify-self: end;

    gap: 0.75rem;
}

.existing-file__actions a,
.existing-file__actions button {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;

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

    border: 0;

    background: transparent;
    color: var(--color-primary);

    cursor: pointer;
}

.existing-file__actions button {
    color: var(--color-error);
}


/* ==========================================================================
   15. Form actions
   ========================================================================== */

.form-actions {
    display: flex;
    justify-content: flex-end;

    padding-top: 0.5rem;
}



/* Admin edit actions and private-file management */
.form-actions--admin-edit {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.upload-pending {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 700;
}

.upload-pending[hidden] {
    display: none;
}

.upload-pending__spinner {
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid var(--color-primary-light);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: aquila-upload-spin 0.8s linear infinite;
}

@keyframes aquila-upload-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .upload-pending__spinner { animation: none; }
}

.existing-files--admin {
    margin-top: 0;
}

.existing-files__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.existing-files--admin .existing-files__row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    padding: 0.6rem 0;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    background: transparent;
}

.existing-files--admin .existing-files__row:last-child {
    border-bottom: 0;
}

.existing-files__link {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
}

.existing-files__tag {
    flex: 0 0 auto;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.existing-files__row form {
    flex: 0 0 auto;
    margin: 0;
}

.existing-files__delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: var(--color-error);
    cursor: pointer;
}

.existing-files__delete:hover {
    border-color: var(--color-error);
    background: #fff6f5;
}

@media (max-width: 760px) {
    .form-actions--admin-edit {
        justify-content: center;
        align-items: stretch;
    }
    .existing-files__row { flex-wrap: wrap; }
    .existing-files__tag { flex: 0 0 auto; }
    .existing-files__row form { margin-left: auto; }
}

/* ==========================================================================
   16. Footer
   ========================================================================== */

.site-footer {
    padding: 3rem 0 2rem;
    background: var(--color-bg-footer);
    color: #fff;
    font-size: 0.9rem;
}

/* The footer uses .container in Blade, not .site-footer__inner. */
.site-footer > .container {
    max-width: var(--header-max-width);
    padding-inline: 2rem;
}

/* Shared heading above both columns */
.site-footer__heading {
    margin: 0 0 1.5rem;
    font-size: 1.35rem;
    color: var(--color-accent);
}

/* Contact details left, legal navigation right */
.site-footer__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem 4rem;
    align-items: start;
}

.site-footer__contact p {
    margin: 0 0 0.65rem;
}

.site-footer__nav {
    justify-self: end;
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Footer links */
.site-footer a {
    color: var(--color-link-on-dark);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.site-footer a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* Copyright and image credits */
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid var(--color-accent);
    color: var(--color-muted-on-dark);
    font-size: 0.8rem;
}

.site-footer__bottom p {
    margin: 0;
}

/* Mobile layout */
@media (max-width: 600px) {
    .site-footer__main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-footer__nav {
        justify-self: start;
    }

    .site-footer__links {
        align-items: flex-start;
    }
}


/* ==========================================================================
   17. Honeypot
   Anti-spam field hidden visually and from pointer interaction.
   ========================================================================== */

.mobile_phone {
    position: absolute;
    left: -10000px;

    width: 1px;
    height: 1px;

    overflow: hidden;

    pointer-events: none;
}


/* ==========================================================================
   18. Error pages
   ========================================================================== */

.error-page {
    max-width: 42rem;
    padding: 2rem 0;
}

.error-page__code {
    margin: 0;

    color: var(--color-accent);

    font-size: 1.25rem;
    font-weight: 800;
}

.error-page h1 {
    margin-top: 0.25rem;

    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.1;

    text-transform: uppercase;
}

.error-page .btn {
    margin-top: 1rem;
}


/* ==========================================================================
   19 Authentication / login page
   ========================================================================== */

.auth-page {
    padding: 4rem 0 5rem;

    background: var(--color-bg-alt);
}

.auth-page__container {
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 32rem;

    padding: 2.5rem;

    border: 1px solid var(--color-border);
    border-radius: 10px;

    background: var(--color-bg);

    box-shadow: 0 0.4rem 1.5rem rgb(0 0 0 / 0.06);
}

.auth-card__header {
    margin-bottom: 2rem;

    text-align: center;
}

.auth-card__header h1 {
    margin: 0 0 0.75rem;

    color: var(--color-primary);

    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-card__header p {
    margin: 0;

    color: var(--color-text-muted);
}

.auth-form {
    display: grid;
    gap: 1.25rem;
}

.auth-form__field {
    display: grid;
    gap: 0.35rem;
}

.auth-form__field label {
    font-weight: 700;
}

.auth-form__field input {
    width: 100%;

    padding: 0.75rem 0.85rem;

    border: 1px solid var(--color-border-strong);
    border-radius: 5px;

    background: white;
    color: var(--color-text);
}

.auth-form__field input:hover,
.auth-form__field input:focus {
    border-color: var(--color-primary);
}

.auth-form__field input[aria-invalid="true"] {
    border-color: var(--color-error);
}

.auth-form__remember label {
    display: inline-flex;
    align-items: center;

    gap: 0.65rem;

    text-transform: none;
    letter-spacing: normal;

    cursor: pointer;
}

.auth-form__remember input {
    width: 1.1rem;
    height: 1.1rem;

    margin: 0;

    flex: 0 0 auto;
}

.auth-form__actions {
    margin-top: 0.5rem;
}

.auth-form__actions .btn {
    width: 100%;
}

.password-requirements {
    color: var(--color-text-muted);

    font-size: 0.9rem;
}

.password-requirements p {
    margin-bottom: 0.25rem;
}

.password-requirements ul {
    margin-top: 0;
    padding-left: 1.3rem;
}

.password-requirements li::marker {
    color: var(--color-text-muted);
}

.password-requirements li.is-valid {
    color: var(--color-primary);
}

.password-requirements li.is-valid::marker {
    content: "✓ ";
}

.password-match {
    margin: -0.5rem 0 0;

    color: var(--color-error);

    font-size: 0.9rem;
}

.password-match.is-valid {
    color: var(--color-primary);
}

.password-input {
    position: relative;
}

.password-input input {
    width: 100%;
    padding-right: 6rem;
}

.password-input__toggle {
    position: absolute;
    top: 50%;
    right: 0.75rem;

    transform: translateY(-50%);

    padding: 0.25rem;

    border: 0;

    background: transparent;
    color: var(--color-primary);

    font-size: 0.85rem;
    font-weight: 700;

    cursor: pointer;
}

/* ==========================================================================
   20. Account / "Mein Bereich" landing page
   ========================================================================== */

.account-page {
    padding: 4rem 0 5rem;

    background: var(--color-bg-alt);
}

.account-page__container {
    max-width: var(--content-width);
}

.account-page__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 2rem;

    margin-bottom: 2rem;
}

.account-page__header {
    min-width: 0;
    margin-bottom: 2rem;
}

.account-page__logout {
    justify-self: end;
    display: flex;
    justify-content: flex-end;

    margin-top: 2rem;
}

.account-page__logout .btn-secondary:hover,
.account-page__logout .btn-secondary:focus-visible {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-bg);
}

.account-page__eyebrow {
    margin: 0 0 0.25rem;

    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.account-page__header h1 {
    margin: 0 0 0.75rem;

    color: var(--color-primary);

    font-size: clamp(2.2rem, 7vw, 4rem);
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.account-page__header p {
    margin: 0;

    color: var(--color-text-muted);
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 1.5rem;
}

.account-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 1.75rem;

    border: 1px solid var(--color-border);
    border-radius: 10px;

    background: var(--color-bg);

    box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 0.05);
}

.account-card__icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;

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

    border-radius: 50%;

    background: var(--color-accent-tint);
    color: var(--color-accent);
}

.account-card h2 {
    margin: 0 0 0.5rem;

    color: var(--color-primary);

    font-size: 1.3rem;
}

.account-card p {
    margin: 0 0 1.5rem;

    color: var(--color-text-muted);
}

.account-card__action {
    width: 100%;
    margin-top: auto;
}

.account-card__action--disabled {
    cursor: default;
    opacity: 0.6;
}

/* Additional authentication links */

.auth-form__forgot,
.auth-form__back {
    margin: 0;

    text-align: center;
    font-size: 0.9rem;
}

.auth-form__forgot a,
.auth-form__back a {
    color: var(--color-primary);
}



/* ==========================================================================
   21. Submission detail page
   ========================================================================== */

.submission-page {
    padding: 4rem 0 5rem;

    background: var(--color-bg-alt);
}

.submission-page__container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.submission-page__header {
    min-width: 0;
    margin-bottom: 2rem;
}

.submission-page__utility {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 2rem;

    margin-bottom: 1rem;
}

.submission-page__context {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.2rem;
}

.submission-page__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    color: var(--color-primary);

    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
}

.submission-page__back:hover,
.submission-page__back:focus-visible {
    text-decoration: underline;
}

.submission-page__eyebrow {
    margin: 0;

    color: var(--color-text-muted);

    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.submission-page__utility form {
    display: flex;
    flex: 0 0 auto;
}

.submission-page__edit-link {
    height: 100%;
    max-width: 14rem;

    padding: 0.4rem 0.8rem;

    font-size: 0.75rem;
    line-height: 1.25;
}

.submission-page__edit-link:hover,
.submission-page__edit-link:focus-visible {
    border-color: var(--color-primary);

    background: var(--color-primary);
    color: var(--color-bg);
}

.submission-page__header h1 {
    max-width: 100%;
    margin: 0;

    color: var(--color-text);

    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.15;
    font-weight: 800;

    overflow-wrap: anywhere;
    hyphens: auto;
}

.submission-page__content {
    display: grid;
    gap: 1.5rem;
}

.submission-section__heading {
    margin: 0 0 1.5rem;
    padding: 0;
}

.submission-details {
    display: grid;
    grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);

    margin: 0;
}

.submission-details dt,
.submission-details dd {
    padding: 0.75rem 0;

    border-bottom: 1px solid var(--color-border);
}

.submission-details dt {
    padding-right: 1.5rem;

    color: var(--color-text-muted);

    font-weight: 700;
}

.submission-details dd {
    margin: 0;

    overflow-wrap: anywhere;
}

.submission-details dt:last-of-type,
.submission-details dd:last-of-type {
    border-bottom: 0;
}

.submission-files {
    display: grid;
    gap: 1rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

.submission-file {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;

    padding: 1rem;

    border: 1px solid var(--color-border);
    border-radius: 6px;

    background: var(--color-bg-soft);
}

.submission-file__info {
    min-width: 0;

    display: grid;
    gap: 0.25rem;
}

.submission-file__name {
    overflow-wrap: anywhere;

    color: var(--color-text);
}

.submission-file__size,
.submission-file__copyright {
    color: var(--color-text-muted);

    font-size: 0.9rem;
}

.submission-file__download {
    flex-shrink: 0;
}

.submission-files__empty {
    margin: 0;

    color: var(--color-text-muted);
}


/* ==========================================================================
   22. Submissions overview page
   ========================================================================== */

.submissions-page {
    padding: 4rem 0 5rem;

    background: var(--color-bg-alt);
}

.submissions-page__container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.submissions-page__header {
    margin-bottom: 2.5rem;
}

.submissions-page__eyebrow {
    margin: 0 0 0.25rem;

    color: var(--color-text-muted);

    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.submissions-page__header h1 {
    margin: 0 0 0.75rem;

    color: var(--color-primary);

    font-size: clamp(2.2rem, 7vw, 4rem);
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.submissions-page__intro {
    margin: 0;

    color: var(--color-text-muted);
}

.submission-groups {
    display: grid;
    gap: 2.5rem;
}

.submission-group {
    min-width: 0;

    overflow: hidden;
    scroll-margin-top: 10rem;

    border: 1px solid var(--color-border);
    border-radius: 10px;

    background: var(--color-bg);

    box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 0.04);
}

.submission-group__summary {
    display: flex;
    align-items: center;
    gap: 1rem;

    padding: 1.25rem 1.5rem;

    cursor: pointer;
    list-style: none;
}

.submission-group__summary::-webkit-details-marker {
    display: none;
}

.submission-group__summary::before {
    content: "›";

    flex: 0 0 auto;

    color: var(--color-primary);

    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;

    transition: transform 0.2s ease;
}

.submission-group[open] > .submission-group__summary::before {
    transform: rotate(90deg);
}

.submission-group__summary:hover {
    background: var(--color-bg-soft);
}

.submission-group__title {
    flex: 1;
    min-width: 0;

    color: var(--color-primary);

    font-size: 1.35rem;
    line-height: 1.2;
    font-weight: 800;
}

.submission-group__content {
    border-top: 1px solid var(--color-border);
}

.submission-group__count {
    flex: 0 0 auto;

    padding: 0.25rem 0.65rem;

    border-radius: 999px;

    background: var(--color-bg-soft);
    color: var(--color-text-muted);

    font-size: 0.85rem;
    font-weight: 700;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.submissions-table {
    width: 100%;
    min-width: 760px;

    border-collapse: collapse;
}

.submissions-table th,
.submissions-table td {
    padding: 0.85rem 1rem;

    border-bottom: 1px solid var(--color-border);

    text-align: left;
    vertical-align: middle;
}

.submissions-table th {
    background: var(--color-bg-soft);
    color: var(--color-text-muted);

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.submissions-table tbody tr:last-child td {
    border-bottom: 0;
}

.submissions-table tbody tr:hover {
    background: var(--color-bg-soft);
}

.submissions-table__id {
    width: 4rem;

    color: var(--color-text-muted);

    font-variant-numeric: tabular-nums;
}

.submissions-table__title {
    min-width: 16rem;

    font-weight: 700;
    overflow-wrap: anywhere;
}

.submissions-table__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.submissions-table__action {
    padding: 0.4rem 0.7rem;

    font-size: 0.75rem;
    white-space: nowrap;
}

.submissions-table__action--disabled {
    cursor: default;
    opacity: 0.55;
}

.status-badge {
    display: inline-flex;
    align-items: center;

    padding: 0.25rem 0.55rem;

    border: 1px solid var(--color-border);
    border-radius: 999px;

    background: var(--color-bg-soft);
    color: var(--color-text-muted);

    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-badge--open {
    border-color: var(--color-accent);

    color: var(--color-accent);
}

.status-badge--complete {
    border-color: var(--color-success);

    color: var(--color-success);
}

.submission-group__pagination {
    padding: 1rem 1.5rem 1.25rem;

    border-top: 1px solid var(--color-border);
}

.submissions-page__empty {
    padding: 1.5rem;

    border: 1px solid var(--color-border);
    border-radius: 10px;

    background: var(--color-bg);
}

.submissions-page__empty p {
    margin: 0;
}


/* ==========================================================================
   23. Home page
   ========================================================================== */

.home-page {
    background: var(--color-bg);
}
.home-page h2 {
    margin: 0.25rem 0 2.5rem;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.2;
}
.home-page h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}
.home-page p {
    line-height: 1.65;
}
.home-eyebrow {
    margin: 0 0 0.5rem;
    color: var(--color-accent-dark);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

/* Hero: blue road-inspired backdrop, left-aligned copy, large centered photo */
.home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(3.5rem, 6vw, 5.5rem) 0 3.5rem;
    color: white;
    text-align: left;
    background: var(--gradient-hero);
}

/* Subtle road markings */
.home-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;

    background-image: url('../assets/img/road-markings_c_KFV_Feher-Lehrner_ChatGPT.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0.28;
}

.home-hero__content {
    max-width: 53rem;
}
.home-hero__title {
    margin: 0;
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.05;
    font-weight: 900;
    overflow-wrap: anywhere;
}
.home-hero__year {
    color: var(--color-primary-light);
}
.home-hero__subtitle {
    margin: 0.75rem 0;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 700;
}
.home-hero__intro {
    max-width: 38rem;
    margin: 1.25rem 0 1.75rem;
}
.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.75rem;
}
.home-btn-secondary {
    background: var(--color-bg-footer);
    color: white;
}
.home-btn-secondary:hover {
    filter: brightness(1.12);
}

.home-hero__visual {
    width: 100%;
    margin: clamp(2.5rem, 5vw, 4rem) auto 0;
    overflow: hidden;
    border-radius: 12px;
    background: rgb(255 255 255 / 12%);
    box-shadow: 0 1rem 2.5rem rgb(0 0 0 / 18%);
}
.home-hero__visual picture {
    display: block;
    width: 100%;
}
.home-hero__visual img {
    display: block;
    width: 100%;
    height: auto;
}

.home-dates {
    margin-top: 2rem;
}
/* Keep the deadline cards visible and approximately centered
   when navigating to #einreichfrist. */
#einreichfrist {
    scroll-margin-top: clamp(8rem, 30vh, 16rem);
}
.home-dates__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.home-date {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    min-width: 0;
    padding: 1.5rem;
    border-radius: 12px;
    background: white;
    color: var(--color-text);
    box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 12%);
}
.home-date__icon {
    display: grid;
    place-items: center;
    flex: 0 0 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    color: var(--color-primary);
    background: var(--color-primary-tint);
    font-size: 1.35rem;
}
.home-date h2 {
    margin: 0 0 0.3rem;
    font-size: 0.75rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-primary);
}
.home-date p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.home-date .home-date__value {
    margin-bottom: 0.2rem;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 800;
}

/* Alternating full-width sections */
.home-page .home-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
    scroll-margin-top: 6rem;
}
.home-section--light {
    background: white;
    color: var(--color-text);
}
.home-section--blue {
    background: var(--color-primary);
    color: white;
}
.home-section__inner > h2 {
    max-width: 65rem;
}
.home-section__prose {
    max-width: 60rem;
}
.home-section__prose p:first-child {
    margin-top: 0;
}
.home-section--blue .home-eyebrow {
    color: var(--color-primary-light);
}
.home-section__split {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
}

/* Conditions: vertically aligned copy and deadline box. */
.home-conditions-copy {
    padding: 1.5rem 0;
}
.home-conditions-copy > p:first-child {
    margin-top: 0;
}
.home-conditions-split {
    align-items: center;
}
.home-conditions-split .home-deadline-box {
    align-self: center;
}

/* Categories and compact municipality-class cards */
.home-audience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.home-mini-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    min-height: 7.5rem;
    padding: 1.25rem;
    border-radius: 9px;
    background: white;
    color: var(--color-text);
}
.home-mini-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 8px;
    background: var(--color-primary-tint);
    color: var(--color-primary);
}
.home-mini-card__icon svg {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
}
.home-mini-card h3 {
    margin: 0;
    overflow-wrap: anywhere;
}
.home-category-note {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 9px;
    background: rgb(255 255 255 / 8%);
    font-size: 0.88rem;
}
.home-category-note h3 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
}
.home-category-note p {
    margin: 0.4rem 0;
}
.home-category-note p:last-child {
    margin-bottom: 0;
}
.home-category-classes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0.8rem 0;
    padding: 0;
    list-style: none;
}
.home-category-classes li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.75rem;
    border-radius: 6px;
    background: rgb(255 255 255 / 13%);
}
.home-category-classes li + li {
    margin: 0;
}
.home-category-classes strong {
    font-size: 0.8rem;
}

/* Focus, conditions, jury, awards and retrospective */
.home-focus-lead {
    max-width: 55rem;
    font-size: 1.15rem;
    font-weight: 700;
}
.home-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}
.home-tags span {
    padding: 0.35rem 0.7rem;
    border-radius: 99px;
    background: var(--color-bg-alt);
    color: var(--color-primary);
    font-size: 0.8rem;
}
.home-section--blue .home-tags span {
    background: rgb(255 255 255 / 15%);
    color: white;
}
.home-deadline-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    min-width: 0;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-bg-alt);
    text-align: center;
}
.home-deadline-box strong {
    color: var(--color-text);
    font-size: 1.3rem;
}
.home-deadline-box small {
    color: var(--color-text-muted);
}
.home-deadline-box .btn {
    white-space: normal;
}
.home-criteria-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.home-criterion {
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    background: var(--color-bg-soft);
    color: var(--color-text);
}
.home-criterion__number {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    border-radius: 7px;
    color: var(--color-primary);
    background: var(--color-primary-tint);
    font-weight: 800;
}
.home-awards-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 200px;
    max-height: 160px;
}
.home-awards-visual img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 320px;
    height: auto;
    object-fit: contain;
    border-radius: 9px;
}
.home-section__split--helmi {
    grid-template-columns: minmax(10rem, 1fr) minmax(0, 3fr);
    margin-top: 0;
}
.home-section__split--helmi .home-awards-visual {
    justify-content: flex-start;
}
.home-section__split--helmi .home-awards-visual img {
    max-height: 220px;
}
.home-retrospective__figure {
    max-width: 1050px;
    margin: 1.5rem auto 0;
}
.home-retrospective__figure img {
    display: block;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 0.18);
}
.home-retrospective__figure figcaption {
    margin-top: 0.5rem;
    color: white;
    font-size: 0.8rem;
    text-align: right;
}
.home-retrospective__actions {
    display: flex;
    justify-content: center;
    margin-top: 1.75rem;
}
.home-retrospective__actions .btn-accent-secondary {
    width: auto;
    max-width: 100%;
    padding: 0.8rem 1.5rem;
    border: 2px solid white;
    background: transparent;
    color: white;
}
.home-retrospective__actions .btn-accent-secondary:hover {
    background: white;
    color: var(--color-primary);
    filter: none;
}
.home-retrospective__actions .btn-accent-secondary:focus-visible {
    outline-color: white;
}

/* ==========================================================================
   24. FAQ page
   Native details/summary accordion; no JavaScript required.
   ========================================================================== */

.faq-page .page__container {
    max-width: var(--content-width);
}

.faq-page h1 {
    margin: 0 0 0.75rem;
    color: var(--color-primary);
    font-size: clamp(2.2rem, 7vw, 4rem);
    line-height: 1.05;
    font-weight: 900;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.faq-page__intro {
    margin: 0 0 2rem;
    color: var(--color-text-muted);
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-page details {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg);
}

.faq-page summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.5rem;
    padding: 1.15rem 1.5rem;
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.35;
    list-style: none;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.faq-page summary::-webkit-details-marker {
    display: none;
}

.faq-page summary::after {
    content: "+";
    flex: 0 0 auto;
    font-size: 1.5rem;
    line-height: 1;
}

.faq-page details[open] > summary::after {
    content: "−";
}

.faq-page summary:hover {
    background: var(--color-bg-soft);
}

.faq-page summary:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: -3px;
}

.faq-page details[open] > summary {
    border-bottom: 1px solid var(--color-border);
}

/* The FAQ is split into topic sections, each with its own heading. */
.faq-section + .faq-section {
    margin-top: 2.5rem;
}

.faq-section__title {
    margin: 0 0 1rem;
    color: var(--color-primary);
}

.faq-contact address {
    font-style: normal;
}

.faq-page details > :not(summary) {
    margin: 0;
    padding: 1rem 1.5rem;
    overflow-wrap: anywhere;
}

.faq-page details > :not(summary) + :not(summary) {
    padding-top: 0;
}

@media (max-width: 760px) {
    .faq-page {
        padding: 2rem 0 3rem;
    }

    .faq-page .page__container {
        padding-inline: 1rem;
    }

    .faq-page h1 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .faq-list {
        gap: 0.75rem;
    }

    .faq-page summary {
        gap: 0.75rem;
        padding: 1rem;
        font-size: 1rem;
    }

    .faq-page details > :not(summary) {
        padding: 1rem;
    }
}


/* ==========================================================================
   25. Responsive - tablet / medium screens
   ========================================================================== */

@media (max-width: 1100px) {

    /* Award cards */

    .award-resources {
        grid-template-columns: 1fr;

        margin-top: 4rem;
    }

    .award-card {
        width: 100%;
        max-width: 36rem;
        margin: 0 auto;
    }
}


/* Collapse before logos, navigation and CTA compete for space. */
@media (max-width: 1550px) {
    .site-header__inner {
        flex-wrap: wrap;
    }

    .site-header__nav {
        display: none;
        order: 3;
        width: 100%;
        padding-top: 0.75rem;
    }

    .site-header__nav.is-open {
        display: block;
    }

    .site-header__menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.65rem;
        border: 1px solid rgb(255 255 255 / 0.5);
        border-radius: 4px;
        background: transparent;
        color: white;
        font: inherit;
        font-weight: 700;
        cursor: pointer;
    }

    .site-header__menu-icon {
        position: relative;
        width: 1.25rem;
        height: 2px;
        background: currentColor;
    }

    .site-header__menu-icon::before,
    .site-header__menu-icon::after {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: currentColor;
    }

    .site-header__menu-icon::before {
        top: -0.4rem;
    }
    .site-header__menu-icon::after {
        top: 0.4rem;
    }

    .site-nav {
        display: grid;
        width: 100%;
        min-height: 0;
        gap: 0;
        padding: 0;
    }

    .site-nav li {
        width: 100%;
    }

    .site-header nav a {
        display: block;
        padding: 0.85rem 0;
        border-top: 1px solid rgb(255 255 255 / 0.2);
    }

    .site-header nav a::after {
        display: none;
    }
}


/* More breathing room on tablets and smaller laptops. */
@media (min-width: 761px) and (max-width: 1450px) {
    .home-page .container,
    .award-page .container {
        padding-inline: clamp(2.5rem, 5vw, 5rem);
    }

    .site-footer > .container {
        padding-inline: clamp(2.5rem, 5vw, 5rem);
    }
}

/* ==========================================================================
   26. Responsive - mobile
   ========================================================================== */

@media (max-width: 760px) {
    .site-footer > .container {
        padding-inline: 1rem;
    }


    /* Narrow screens: logos remain equal-height and keep their aspect ratios. */
    .site-header__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .site-header__logos {
        width: 100%;
        height: clamp(1.5rem, 7vw, 2.75rem);
        gap: clamp(0.25rem, 1.5vw, 0.65rem);
    }

    .site-header__logos a {
        min-width: 0;
        flex: 0 1 auto;
    }

    .site-header__logos img {
        max-width: 100%;
        object-fit: contain;
    }

    .site-header__brand--light-bg {
        padding: 0.15rem 0.25rem;
    }

    .site-header__actions {
        width: 100%;
        justify-content: flex-end;
    }

    .site-header__nav {
        grid-column: 1;
    }

    /* ----------------------------------------------------------------------
       Award / retrospective page
       ---------------------------------------------------------------------- */

    .award-hero {
        padding-bottom: 5rem;
    }

    .award-hero h1 {
        font-size: clamp(2.2rem, 12vw, 3.3rem);
    }

    .award-hero p {
        font-size: 1.05rem;
    }

    .award-hero__figure {
        margin-bottom: -12rem;
    }

    .award-resources-section {
        padding-top: 6rem;
    }

    .external-content__overlay {
        padding: 1.25rem;
    }


    /* ----------------------------------------------------------------------
       Submission form and detail pages
       ---------------------------------------------------------------------- */

    .form-page,
    .submission-page {
        padding: 2rem 0 3rem;
    }

    .form-page__container,
    .submission-page__container {
        padding: 0 1rem;
    }

    .form-page__header {
        margin-bottom: 1.5rem;
    }

    .form-page__title {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .submission-form {
        gap: 1rem;
    }


    /* Shared form/detail cards */

    .form-section,
    .submission-section {
        padding: 1rem;

        border-radius: 8px;
    }

    .form-section__legend,
    .submission-section__heading {
        max-width: calc(100% - 0.5rem);

        gap: 0.5rem;

        font-size: 1.05rem;
        line-height: 1.25;

        overflow-wrap: anywhere;
    }

    .form-section__legend {
        padding: 0 0.25rem;
    }

    .form-section__icon svg,
    .submission-section__icon svg {
        width: 20px;
        height: 20px;
    }

    .submission-section__heading {
        margin-bottom: 1rem;
    }

    .submission-page__utility {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .submission-page__utility form,
    .submission-page__edit-link {
        width: 100%;
        max-width: none;
    }

    .submission-page__header h1 {
        font-size: clamp(1.6rem, 8vw, 2.25rem);
    }

    .submission-details {
        grid-template-columns: minmax(0, 1fr);
    }

    .submission-details dt {
        padding-bottom: 0.15rem;

        border-bottom: 0;
    }

    .submission-details dd {
        padding-top: 0;
    }

    .submission-file {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .submission-file__download {
        width: 100%;
    }

    /* Form grid becomes a single column */

    .form-grid {
        grid-template-columns: minmax(0, 1fr);

        gap: 1rem;
    }

    .form-field,
    .form-field--wide,
    .form-field--small {
        grid-column: auto;

        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .form-field input,
    .form-field select,
    .form-field textarea,
    .selected-file input {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }


    /* Checkbox */

    .checkbox-label {
        gap: 0.6rem;
    }

    .checkbox-label span {
        min-width: 0;

        overflow-wrap: anywhere;
    }


    /* File picker */

    .file-upload {
        flex-direction: column;
        align-items: stretch;
    }

    .file-upload__button {
        width: 100%;

        justify-content: center;

        text-align: center;
    }

    .file-upload__status {
        text-align: center;
    }


    /* Newly selected files */

    .selected-file {
        grid-template-columns: minmax(0, 1fr);

        gap: 0.6rem;
        padding: 0.85rem;
    }

    .selected-file__name,
    .selected-file label,
    .selected-file input,
    .selected-file button {
        grid-column: 1;
        grid-row: auto;
    }

    .selected-file button {
        width: 100%;
    }


    /* Existing uploaded files */

    .existing-file {
        grid-template-columns: minmax(0, 1fr);

        gap: 0.75rem;
    }

    .existing-file__name,
    .existing-file__copyright,
    .existing-file__actions {
        grid-column: 1;
        grid-row: auto;
    }

    .existing-file__actions {
        justify-self: stretch;
        justify-content: flex-end;
    }


    /* Main submit/save action */

    .form-actions {
        justify-content: stretch;
    }

    .form-actions .btn {
        width: 100%;

        text-align: center;
    }

    /* ----------------------------------------------------------------------
       Submissions overview page
       ---------------------------------------------------------------------- */

    .submissions-page {
        padding: 2rem 0 3rem;
    }

    .submissions-page__container {
        padding: 0 1rem;
    }

    .submissions-page__header {
        margin-bottom: 2rem;
    }

    .submissions-page__header h1 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .submission-groups {
        gap: 1.5rem;
    }

    .submission-group__summary {
        gap: 0.75rem;

        padding: 1rem;
    }

    .submission-group__title {
        font-size: 1.2rem;
    }

    .submission-group__count {
        margin-left: auto;
    }

    .submissions-table th,
    .submissions-table td {
        padding: 0.75rem;
    }

    .submission-group__pagination {
        padding: 0.85rem 1rem 1rem;
    }


    /* ----------------------------------------------------------------------
       Account landing page
       ---------------------------------------------------------------------- */

    .account-page {
        padding: 2rem 0 3rem;
    }

    .account-grid {
        grid-template-columns: 1fr;
    }

    .account-card {
        padding: 1.25rem;
    }

    .account-page__top {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .account-page__logout {
        order: -1;
        justify-self: stretch;
    }

    .account-page__logout,
    .account-page__logout form,
    .account-page__logout .btn {
        width: 100%;
    }
}


/* Homepage responsive layouts */
@media (max-width: 900px) {
    .home-category-classes {
        grid-template-columns: 1fr;
    }
    .home-section__split, .home-section__split--helmi {
        grid-template-columns: 1fr;
    }
    .home-audience-grid, .home-criteria-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .home-hero {
        padding: 3rem 0 2rem;
    }
    .home-category-classes {
        grid-template-columns: 1fr;
    }
    .home-retrospective__actions .btn {
        width: 100%;
    }
    .home-hero__actions .btn {
        width: 100%;
    }
    .home-dates__grid, .home-audience-grid, .home-criteria-grid {
        grid-template-columns: 1fr;
    }
    .home-date {
        padding: 1.25rem;
    }
    .home-mini-card {
        min-height: 0;
    }
    .home-category-note {
        padding: 1.25rem;
    }
}



/* Admin upload transfer feedback (XHR, not PHP session upload progress). */
.admin-upload-progress {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-bg-soft);
}

.admin-upload-progress[hidden],
.admin-upload-progress__error[hidden] { display: none; }

.admin-upload-progress__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    text-transform: none;
    font-size: 0.95rem;
    letter-spacing: normal;
    font-weight: 700;
}

.admin-upload-progress progress {
    display: block;
    width: 100%;
    height: 1.1rem;
    accent-color: var(--color-primary);
}

.admin-upload-progress__status {
    margin: 0.6rem 0 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.admin-upload-progress__error {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-error);
    border-radius: 6px;
    background: #fff6f5;
    color: var(--color-error);
    overflow-wrap: anywhere;
}

.admin-upload-progress__error ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }

/* Only the processing phase uses a spinner: 100% sent is not 100% saved. */
.admin-upload-progress[data-phase="processing"] .admin-upload-progress__status::before {
    content: "";
    display: inline-block;
    width: 0.85rem;
    height: 0.85rem;
    margin-right: 0.45rem;
    vertical-align: -0.1rem;
    border: 2px solid var(--color-primary-light);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: aquila-upload-spin 0.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .admin-upload-progress[data-phase="processing"] .admin-upload-progress__status::before {
        animation: none;
    }
}

.form-actions--admin-upload {
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.form-actions--admin-edit .admin-upload-progress,
.form-actions--admin-edit .admin-upload-progress__error,
.form-actions--admin-upload .admin-upload-progress,
.form-actions--admin-upload .admin-upload-progress__error {
    width: 100%;
}


/* ==========================================================================
   26. Responsive refinements - shared pages and narrow screens
   ========================================================================== */

/* Prevent media and long unbroken content from widening page layouts. */
.page__container,
.auth-page__container,
.account-page__container {
    min-width: 0;
}

.page img,
.auth-page img,
.account-page img {
    max-width: 100%;
    height: auto;
}

/* Keep the login card centered and usable at intermediate widths. */
.auth-page__container {
    padding-inline: 1.5rem;
}

.auth-card {
    min-width: 0;
}

.auth-form__field,
.password-input {
    min-width: 0;
}

.auth-form__field input {
    max-width: 100%;
    min-width: 0;
}

/* Long text and links should wrap instead of creating page-wide scrolling. */
.auth-card,
.account-card,
.site-footer__contact,
.site-footer__links,
.faq-page details {
    overflow-wrap: anywhere;
}

/* Let footer columns shrink without overflowing on intermediate screens. */
.site-footer__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
}

@media (max-width: 760px) {
    /* Match the existing 1rem mobile gutters used by forms and navigation. */
    .page {
        padding-block: 2rem 3rem;
    }

    .page__container,
    .auth-page__container,
    .account-page__container {
        padding-inline: 1rem;
    }

    .auth-page {
        padding-block: 2rem 3rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .account-page__header {
        margin-bottom: 1rem;
    }

    .site-footer__bottom {
        gap: 0.75rem;
    }
}

@media (max-width: 380px) {
    /* Preserve input and password-toggle space on very narrow phones. */
    .auth-card {
        padding: 1rem;
    }

    .password-input input {
        padding-right: 5.5rem;
    }

    .password-input__toggle {
        right: 0.5rem;
    }

    .site-header__actions {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .faq-page summary::after {
        transition: none;
    }
}


/* ==========================================================================
   27. Submission safety UI (additions to the verified working stylesheet)
   ========================================================================== */

/* Prevent duplicate clicks while preserving recognisable disabled controls. */
.submission-form button[type="submit"]:disabled,
.submission-delete-dialog button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Public submit button + feedback: keep a visible vertical separation. */
.submission-form:not([data-admin-upload-progress]) > .form-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 1.25rem;
}

/* All upload progress panels, including the existing admin implementations. */
.admin-upload-progress {
    margin-top: 1rem;
}
.admin-upload-progress[hidden],
.admin-upload-progress__error[hidden] {
    display: none;
}
.submission-form:not([data-admin-upload-progress]) .form-actions > .admin-upload-progress,
.submission-form:not([data-admin-upload-progress]) .form-actions > .admin-upload-progress__error {
    width: 100%;
}
.admin-upload-progress > p[role="status"] {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Expanded row hit area: links and buttons remain separate click targets. */
.submissions-table__row {
    cursor: pointer;
}
.submissions-table__project-link {
    color: inherit;
    text-decoration: none;
}
.submissions-table__row:hover .submissions-table__project-link,
.submissions-table__project-link:focus-visible {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Reversible soft-delete action is available to administrators only. */
.submissions-page__archive-link {
    margin: 0.8rem 0 0;
}
.submissions-table__delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: var(--color-error);
    cursor: pointer;
}
.submissions-table__delete:hover,
.submissions-table__delete:focus-visible {
    border-color: var(--color-error);
    background: #fff6f5;
}
.submission-delete-dialog {
    width: min(92vw, 31rem);
    max-height: min(85vh, 42rem);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-bg);
    color: var(--color-text);
    box-shadow: 0 1rem 3rem rgb(0 0 0 / 0.2);
}
.submission-delete-dialog::backdrop {
    background: rgb(0 0 0 / 0.55);
}
.submission-delete-dialog h2 {
    margin: 0 0 0.75rem;
    color: var(--color-primary);
    font-size: 1.35rem;
}
.submission-delete-dialog p {
    margin: 0 0 1.25rem;
    overflow-wrap: anywhere;
}
.submission-delete-dialog__field {
    display: grid;
    gap: 0.5rem;
}
.submission-delete-dialog__field label {
    font-weight: 700;
}
.submission-delete-dialog__field select {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border-strong);
    border-radius: 5px;
    color: var(--color-text);
    background: #fff;
}
.submission-delete-dialog__actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
@media (max-width: 760px) {
    .submission-form:not([data-admin-upload-progress]) > .form-actions {
        align-items: stretch;
    }
    .submission-delete-dialog__actions .btn {
        flex: 1 1 auto;
    }
}
