/* =========================================================
   RoWo Corporate Colors
   ========================================================= */

:root {
    --rowoco-primary: #222568;
    --rowoco-primary-hover: #2d3185;
    --rowoco-primary-active: #191c50;
    --rowoco-on-primary: #ffffff;
}


/* =========================================================
   Allgemeine Links
   ========================================================= */

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

a:hover strong {
    color: var(--rowoco-primary);
}


/* =========================================================
   Header
   ========================================================= */

#header h1 {
    color: var(--rowoco-primary);
}


/* =========================================================
   Buttons
   ========================================================= */

.button,
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    background-color: var(--rowoco-primary);
    color: var(--rowoco-on-primary) !important;
    border: 0;
    box-shadow: none;
}

.button:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
    background-color: var(--rowoco-primary-hover);
}

.button:active,
button:active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active {
    background-color: var(--rowoco-primary-active);
}


/* =========================================================
   Navigation
   ========================================================= */

/* Hover / aktive Seite: Icon */
#nav > ul > li.active > a:before,
#nav > ul > li:hover > a:before {
    background: var(--rowoco-primary);
    color: var(--rowoco-on-primary);
}

/* Hover / aktive Seite: Text */
#nav > ul > li.active > a > span,
#nav > ul > li:hover > a > span {
    color: var(--rowoco-primary);
}


/* =========================================================
   Navigation - Logo
   ========================================================= */

#nav > ul > li.nav-logo {
    vertical-align: middle;
    padding-right: 3em;
}

#nav > ul > li.nav-logo > a {
    display: block;
    border: 0;
}

#nav > ul > li.nav-logo > a > img {
    display: block;
    width: 120px;
    height: auto;
}


/* =========================================================
   Dropdown Navigation
   ========================================================= */

.dropotron li:hover > span,
.dropotron li:hover > a {
    color: var(--rowoco-primary);
}


/* =========================================================
   Intro
   ========================================================= */

#intro {
    text-align: center;
}

#intro header {
    margin-bottom: 1.5em;
}

#intro h1 {
    margin: 0;
    font-size: 2em;
    line-height: 1.4em;
    font-weight: 600;
    letter-spacing: 0.02em;
}

#intro p {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15em;
    line-height: 1.8em;
}


/* =========================================================
   Kontaktformular - Honeypot
   ========================================================= */

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =========================================================
   Technologien & Werkzeuge
   ========================================================= */

#technologies {
    background: #ffffff;
    padding: 5em 0;
    text-align: center;
}

#technologies header {
    margin-bottom: 1.5em;
}

#technologies .technologies-intro {
    max-width: 800px;
    margin: 0 auto 3.5em auto;
    text-align: center;
    font-size: 1.05em;
    line-height: 1.8em;
}

.technology-cloud {
    max-width: 900px;
    margin: 0 auto;

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

    gap: 1.2em 2em;
}

.technology-cloud span {
    display: inline-block;
    color: #777;
    font-weight: 600;
    line-height: 1.2;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.technology-cloud span:hover {
    color: var(--rowoco-primary);
    transform: scale(1.05);
}

.technology-cloud .tech-sm {
    font-size: 1.1em;
}

.technology-cloud .tech-md {
    font-size: 1.4em;
}

.technology-cloud .tech-lg {
    font-size: 1.8em;
}

.technology-cloud .tech-xl {
    font-size: 2.2em;
}

/* =========================================================
   Auth / Login
   ========================================================= */

.auth-container {
    max-width: 520px;
    margin: 0 auto;
}

.auth-form {
    width: 100%;
}

.auth-field {
    margin-bottom: 1.5em;
}

.auth-field label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.auth-field input[type="email"],
.auth-field input[type="password"] {
    width: 100%;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 0.6em;
    margin-bottom: 2em;
}

.auth-remember input,
.auth-remember label {
    margin: 0;
}

.auth-submit {
    text-align: center;
}

.auth-submit .button {
    min-width: 200px;
}

.auth-links {
    margin-top: 2em;
    text-align: center;
}

.auth-links a {
    display: block;
    margin-top: 0.6em;
}

.auth-error {
    margin-bottom: 2em;
    padding: 1em 1.25em;
    border: solid 1px #ddd;
    font-weight: 600;
}

.auth-info {
    margin-bottom: 2em;
    padding: 1em 1.25em;
    border: solid 1px #ddd;
}

/* =========================================================
   Profil
   ========================================================= */

.profile-header {
    margin-bottom: 2.5rem;
}

.profile-header h1 {
    margin-bottom: 0.5rem;
}

.profile-header p {
    margin: 0;
    color: #777;
}


/* Bereiche */

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-section {
    padding: 2rem;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
}

.profile-section header {
    margin-bottom: 2rem;
}

.profile-section header h2 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.profile-section header p {
    margin: 0;
    color: #777;
    line-height: 1.6;
}


/* Formulare */

.profile-field {
    margin-bottom: 1.5rem;
}

.profile-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.profile-field input {
    width: 100%;
}

.profile-actions {
    margin-top: 2rem;
}


/* Meldungen */

.profile-message {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.profile-message-success {
    border-color: #9bc5a3;
}

.profile-message-danger {
    border-color: #d6a0a0;
}

.profile-message-warning {
    border-color: #d8c78e;
}


/* Account löschen */

.profile-danger {
    border-color: #d6a0a0;
}

.profile-danger header h2 {
    color: #a33;
}

.profile-confirm {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.profile-confirm input {
    margin-top: 0.25rem;
}

.profile-confirm label {
    margin: 0;
}

.button-danger {
    background: #a33;
}

.button-danger:hover {
    background: #8d2929;
}

/* =========================================================
   App Store
   ========================================================= */

.app-store-link {
    margin-top: 2em;
}

.app-store-link a {
    border: 0;
}

.app-store-link img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
}

/* =========================================================
   Produktdetail
   ========================================================= */

.product-detail {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 4em;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2em 0;
}


/* Produktbild */

.product-detail-image {
    text-align: center;
}

.product-detail-image img {
    display: block;
    max-width: 100%;
    max-height: 650px;
    width: auto;
    height: auto;
    margin: 0 auto;
}


/* Produkttext */

.product-detail-content {
    text-align: left;
}

.product-eyebrow {
    margin: 0 0 0.5em 0;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.product-detail-content header {
    margin-bottom: 1.5em;
}

.product-detail-content header h2 {
    margin: 0;
}

.product-detail-content p {
    line-height: 1.7;
}


/* Vorteile */

.product-features {
    list-style: none;
    padding: 0;
    margin: 2em 0;
}

.product-features li {
    position: relative;
    padding-left: 2em;
    margin-bottom: 0.75em;
}

.product-features li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 0.1em;

    font-family: "Font Awesome 5 Free";
    font-weight: 900;

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


/* App Store */

.product-store {
    margin-top: 2em;
}

.product-store a {
    border: 0;
}

.product-store img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
}


/* Responsive */

@media screen and (max-width: 736px) {

    .product-detail {
        grid-template-columns: 1fr;
        gap: 2.5em;
    }

    .product-detail-image img {
        max-height: 500px;
    }

    .product-detail-content {
        text-align: left;
    }

}

/* =========================================================
   Auth - Remember me
   ========================================================= */

.auth-remember {
    display: flex;
    align-items: center;
    gap: 0.75em;
    margin: 1.5em 0;
}

.auth-remember input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;

    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    margin: 0;

    opacity: 1;
    position: static;
}

.auth-remember label {
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.auth-remember label::before,
.auth-remember label::after {
    display: none;
}

/* =========================================================
   Adminbereich
   ========================================================= */

.admin-section {
    margin-bottom: 3em;
    padding: 2em;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
}

.admin-section-header {
    margin-bottom: 2em;
}

.admin-section-header h2 {
    margin-bottom: 0.5em;
}

.admin-section-header p {
    margin: 0;
    color: #777;
}


/* Benutzer anlegen */

.admin-create-user {
    display: grid;
    grid-template-columns: minmax(250px, 2fr) minmax(220px, 1fr) auto;
    gap: 1.5em;
    align-items: end;
}

.admin-field label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.admin-field input {
    width: 100%;
}


/* Checkbox */

.admin-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75em;
    min-height: 3em;
}

.admin-checkbox input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;

    display: inline-block;
    position: static;
    opacity: 1;

    width: 1.1em;
    height: 1.1em;
    margin: 0;
}

.admin-checkbox label {
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.admin-checkbox label::before,
.admin-checkbox label::after {
    display: none;
}


/* Tabelle */

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

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1em;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    font-weight: 600;
}

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


/* Status */

.admin-badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    margin: 0.15em;
    border-radius: 4px;

    background: #e5e5e5;

    font-size: 0.8em;
    line-height: 1.4;
}

.admin-badge-success {
    background: #dcebdd;
}

.admin-badge-warning {
    background: #f2ead1;
}

.admin-badge-danger {
    background: #eedada;
}

.admin-badge-dark {
    background: #444;
    color: #fff;
}


/* Aktionen */

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.admin-actions form {
    margin: 0;
}

.button-small {
    padding: 0.6em 0.9em;
    font-size: 0.8em;
    white-space: nowrap;
}

.button-danger {
    background: #a33;
}

.button-danger:hover {
    background: #8d2929;
}

button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}


/* Meldungen */

.admin-message {
    margin-bottom: 1.5em;
    padding: 1em 1.25em;

    border: 1px solid #ddd;
    border-radius: 4px;
}

.admin-message-success {
    border-color: #9bc5a3;
}

.admin-message-danger {
    border-color: #d6a0a0;
}


/* Sonstiges */

.admin-protected {
    color: #777;
    font-size: 0.9em;
}

.admin-empty {
    text-align: center !important;
    color: #777;
}

/* Responsive */

@media screen and (max-width: 900px) {

    .admin-create-user {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .admin-create-action .button {
        width: 100%;
    }

}

/* Responsive */

@media screen and (max-width: 900px) {

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

}

/* =========================================================
   Technologien - Mobile
   ========================================================= */

@media screen and (max-width: 736px) {

    #technologies {
        padding: 4em 1.5em;
    }

    #technologies .technologies-intro {
        margin-bottom: 2.5em;
    }

    .technology-cloud {
        gap: 1em 1.4em;
    }

    .technology-cloud .tech-sm {
        font-size: 1em;
    }

    .technology-cloud .tech-md {
        font-size: 1.2em;
    }

    .technology-cloud .tech-lg {
        font-size: 1.45em;
    }

    .technology-cloud .tech-xl {
        font-size: 1.7em;
    }
}

/* =========================================================
   Responsive - Mobile
   ========================================================= */

@media screen and (max-width: 736px) {

    #intro {
        padding: 3em 1.5em;
    }

    #intro .intro-logo {
        margin-bottom: 2.5em;
    }

    #intro .intro-logo img {
        max-width: 320px;
    }

    #intro h1 {
        font-size: 1.5em;
    }

    #intro p {
        font-size: 1em;
        line-height: 1.7em;
    }

    #intro .desktop-break {
        display: none;
    }
}