/* Grundlayout Account-Seite – etwas breiter machen */
.cc-account-inner {
    display: flex;
    align-items: flex-start;
    gap: 8rem;              /* mehr Abstand zwischen Navi und Inhalt */
    max-width: 1400px;      /* vorher 1200px -> jetzt breiter */
    margin: 4rem auto;
}

/* Navigation links */
.cc-account-nav {
    flex: 0 0 220px;
}
.cc-account-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cc-account-nav-list li + li {
    margin-top: 1.2rem;
}

/* Inhalt rechts */
.cc-account-content {
    flex: 1;
}

/* Profil-Layout */
.cc-account-profile-header h1 {
    font-size: 2.6rem;
    margin-bottom: 2.5rem;
}

/* Ligaturen/F-Schriftproblem bei Überschriften abschalten */
.cc-account-profile-header h1,
.cc-account-profile-avatar h2 {
    font-variant-ligatures: normal;
    font-feature-settings: "liga" 0, "calt" 0, "clig" 0;
}

.cc-account-profile-layout {
    display: block;              /* nur noch eine Spalte */
}


/* Formular: Labels über den Feldern statt daneben */
.cc-edit-account-form .woocommerce-form-row {
    display: block !important;
}

.cc-edit-account-form label {
    display: block;
    margin-bottom: 0.25rem;
	font-weight: 600;
}

.cc-edit-account-form .woocommerce-Input {
    display: block;
    width: 100%;
    max-width: 420px;
	padding: 0.55rem 0.75rem;
	line-height: 1.4;
}

/* Passwort-Zeile */
.cc-account-password-row {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: flex;              /* NEU: als Flex-Container */
    align-items: baseline;
    gap: 1.75rem;               /* Abstand zwischen "Passwort" und "ändern" */
}
.cc-account-password-row .cc-password-label {
    margin-right: 0;            /* wird jetzt über gap gesteuert */
}


/* Konto löschen Link */
.cc-account-profile-footer {
    margin-top: 3rem;
}
.cc-account-delete-link {
    text-decoration: underline;
}

/* "Profil speichern"-Button */
.cc-edit-account-form .woocommerce-Button.button {
    background-color: #f6ad76 !important;  /* deine Wunschfarbe */
    color: #234238;                        /* dunkles Grün passend zum Design – bei Bedarf anpassen */
    border: none !important;
    border-radius: 999px;                  /* schön abgerundet, alternativ z.B. 6px */
    padding: 0.6rem 1.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-block;
    margin-top: 1rem;
}

.cc-edit-account-form .woocommerce-Button.button:hover {
    background-color: #f39a57 !important;  /* leicht dunklere Variante als Hover */
}

/* Passwortfelder: Wrapper korrekt positionieren */
.cc-edit-account-form .password-input {
    position: relative;
    display: block;
    max-width: 420px;          /* gleiche Breite wie die anderen Felder */
}

/* Platz für das Auge im Feld schaffen */
.cc-edit-account-form .password-input input[type="password"] {
    width: 100%;
    padding-right: 2.75rem !important;   /* mehr Platz rechts für das Icon */
}

/* Auge rechts im Feld ausrichten – mit !important, damit es sich durchsetzt */
.cc-edit-account-form .password-input .show-password-input,
.cc-edit-account-form .password-input button.show-password-input {
    position: absolute !important;
    right: 0.5rem !important;            /* Abstand vom rechten Rand des Feldes */
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
}

/* -----------------------------------------
   Registrierung (Neues Profil erstellen)
-------------------------------------------- */

.cc-register-wrapper {
    max-width: 960px;
    margin: 4rem auto;
}

.cc-register-inner h1 {
    font-size: 2.6rem;
    margin-bottom: 2rem;
    font-variant-ligatures: none; /* gleiches "f"-Verhalten wie bei Mein Profil */
}

.cc-register-form .woocommerce-form-row {
    display: block;
    margin-bottom: 1.3rem;
}

.cc-register-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.cc-register-form .woocommerce-Input {
    display: block;
    width: 100%;
    max-width: 420px;
    padding: 0.55rem 0.75rem;
    line-height: 1.4;
}

/* Kundentyp (Privat / Firma) */
.cc-register-customer-type {
    margin: 2rem 0 1.5rem;
    border: 0;
    padding: 0;
}
.cc-register-customer-type legend {
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.cc-register-customer-type label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 400;
    margin-right: 1.75rem;
}

/* Abschnitt "Rechnungsinformationen" */
.cc-register-section-heading {
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Primäre Buttons ("Profil erstellen", "E-Mail erneut senden") */
.cc-button-primary {
    background-color: #f6ad76;
    color: #234238;
    border: none;
    border-radius: 999px;
    padding: 0.6rem 1.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}
.cc-button-primary:hover {
    background-color: #f39a57;
}

/* Login-Seite – rechte Spalte "Registrieren" */
.cc-register-column-text {
    margin: 0 0 1.5rem;
}

.cc-register-column-button-wrapper {
    margin-top: 1rem;
}

.cc-register-column-button {
    background-color: #f6ad76;
    color: #234238;
    border-radius: 999px;
    padding: 0.6rem 1.6rem;
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
}
.cc-register-column-button:hover {
    background-color: #f39a57;
}

/* -----------------------------------------
   Mein Abonnement
-------------------------------------------- */

.cc-subscription-card {
    max-width: 620px;
    background: #fff;
    border: 1px solid rgba(35,66,56,0.12);
    border-radius: 18px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    margin-bottom: 1.25rem;
}

.cc-subscription-row {
    display: flex;
    gap: 0.9rem;
    margin: 0.45rem 0;
}

.cc-subscription-label {
    font-weight: 700;
    min-width: 190px;
}

.cc-subscription-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
}

/* Unauffälliger Button */
.cc-button-secondary {
    background: transparent;
    color: #234238;
    border: 1px solid rgba(35,66,56,0.25);
    border-radius: 999px;
    padding: 0.6rem 1.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
}

.cc-button-secondary:hover {
    border-color: rgba(35,66,56,0.45);
}

/* Disabled-Zustand für Primary & Secondary */
.cc-button-disabled {
    opacity: 0.55;
    pointer-events: none;
    cursor: not-allowed;
    background-color: #e9e9e9 !important;
    color: #666 !important;
    border-color: #ddd !important;
}

/* -----------------------------------------
   Kündigungsseiten
-------------------------------------------- */

.cc-cancel-wrapper {
    max-width: 960px;
    margin: 4rem auto;
}

.cc-cancel-card {
    /* kein Weiß: Ton-in-Ton zur Seite */
    background: transparent;
    border: transparent;
    border-radius: 18px;
    padding: 1.6rem 1.7rem;
    box-shadow: none;
    backdrop-filter: blur(6px);
}

.cc-cancel-card h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-variant-ligatures: normal;
    font-feature-settings: "liga" 0, "calt" 0, "clig" 0;
}

.cc-cancel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.3rem;
    align-items: center;
}

/* Secondary Button */
.cc-button-secondary {
    background: transparent;
    color: #234238;
    border: 1px solid rgba(35,66,56,0.25);
    border-radius: 999px;
    padding: 0.6rem 1.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}
.cc-button-secondary:hover {
    border-color: rgba(35,66,56,0.45);
}

/* Danger Button (für finalen Kündigen-Submit) */
.cc-button-danger {
    background-color: #f0f0f0;
    color: #234238;
    border: 1px solid rgba(35,66,56,0.25);
    border-radius: 999px;
    padding: 0.6rem 1.6rem;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}
.cc-button-danger:hover {
    border-color: rgba(35,66,56,0.45);
}

/* Modal */
.cc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    z-index: 99999;
}

.cc-modal-backdrop.is-open {
    display: flex;
}

.cc-modal {
    width: 100%;
    max-width: 520px;

    /* ebenfalls Ton-in-Ton statt weiß */
    background: #fff;
    border: 1px solid rgba(35,66,56,0.12);
    border-radius: 18px;

    padding: 1.4rem 1.5rem;
    box-shadow: 0 10px 35px rgba(0,0,0,0.12);
    backdrop-filter: blur(8px);
}

.cc-modal h2 {
    margin: 0 0 0.8rem;
    font-size: 1.4rem;
}

.cc-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.2rem;
}

body.cc-modal-open {
    overflow: hidden;
}

.cc-invoices-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.25rem;
}

.cc-invoices-table th,
.cc-invoices-table td {
    text-align: left;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(35,66,56,0.15);
    vertical-align: middle;
}

.cc-invoice-unavailable {
    opacity: 0.7;
    font-size: 0.95rem;
}

.cc-invoices-pagination {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cc-invoices-pagination a {
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(35,66,56,0.25);
    border-radius: 999px;
    text-decoration: none;
}

.cc-invoices-pagination a.is-active {
    font-weight: 700;
    border-color: rgba(35,66,56,0.45);
}

/* Rechnungs-Download Button */
.cc-button-secondary.cc-invoice-download {
    background-color: #eb8e4d;
    border-color: #eb8e4d;
    color: #234238;
}

.cc-button-secondary.cc-invoice-download:hover {
    opacity: 0.92;
}


/* Zahlungsart im Abonnement-Bereich */
.cc-button-payment {
    border-color: rgba(217, 134, 92, 0.65);
}

.cc-button-payment:hover {
    border-color: rgba(217, 134, 92, 0.95);
    background: rgba(246, 173, 118, 0.10);
}

.cc-payment-method-note {
    max-width: 620px;
    margin: 0.9rem 0 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #234238;
}

.cc-payment-method-note--muted {
    color: rgba(35, 66, 56, 0.72);
}

@media (max-width: 680px) {
    .cc-subscription-row {
        display: block;
    }

    .cc-subscription-label {
        display: block;
        min-width: 0;
        margin-bottom: 0.15rem;
    }
}
