/* Dashboard - Style */
/* Navigation außen */
.woocommerce-MyAccount-navigation {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  max-width: 240px;
  font-family: 'Poppins', sans-serif;
}

/* UL als Wrapper deaktivieren */
.woocommerce-MyAccount-navigation ul {
  display: contents;
  padding: 0;
  margin: 0;
}

/* Listenelemente ohne Standardstil */
.woocommerce-MyAccount-navigation li {
  list-style: none;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Navigationslinks (Buttons) */
.woocommerce-MyAccount-navigation li a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 10px 20px;
  background: #384b3d;
  color: #E9E5E0;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  transition: all 0.3s ease;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Hover- & aktiv-Zustand */
.woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
  background: #858964;
  color: white;
}

/* Inhalt */
.woocommerce-MyAccount-content {
  font-family: 'Poppins', sans-serif;
  color: #292c1f;
  font-size: 16px;
  line-height: 1.6;
}

/* Inhalt: Links */
.woocommerce-MyAccount-content a {
  color: #858964;
  font-family: 'Poppins', sans-serif;
}

.woocommerce-MyAccount-content a:hover {
  color: #384b3d;
}

/* Buttons im Content */
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content .woocommerce-button,
.woocommerce .woocommerce-Button.button {
  background-color: #858964;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 15px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content .woocommerce-button:hover,
.woocommerce .woocommerce-Button.button:hover {
  background-color: #384b3d;
}

/* Hinweisboxen */
.woocommerce-Message,
.woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info {
  background-color: #E9E5E0;
  color: #292c1f;
  border: none;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  padding: 15px 20px;
  box-shadow: none;
}

/* Icons & Rahmen entfernen */
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-message::before,
.woocommerce-Message.woocommerce-Message--info.woocommerce-info::before {
  display: none !important;
  content: none !important;
}

.woocommerce-info {
  border-left: none !important;
  padding-left: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

/* Hintergrundfarbe nur auf Dashboard-Seite */
body.page-id-20817 {
  background-color: #e9e5e0;
}

/* === DESKTOP: zentriertes Layout (ab 768px) === */
@media (min-width: 768px) {
  /* Zentrierter Container für alles */
  body.page-id-20817 .site-main > article {
    max-width: 1100px;
    margin: 0 auto;
  }

  /* Headline zentriert oben */
  body.page-id-20817 .entry-header {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    margin-bottom: 40px;
  }

  /* Zwei-Spalten-Layout NUR für Inhaltsteil */
  body.page-id-20817 .entry-content {
    display: flex;
    gap: 60px;
  }

  /* Menü links */
  .woocommerce-MyAccount-navigation {
    max-width: 240px;
    flex-shrink: 0;
  }

  /* Inhalt rechts */
  .woocommerce-MyAccount-content {
    flex: 1;
  }
}


/* === MOBIL: angepasstes Layout (unter 768px) === */
/* === Mobile-Optimierung Dashboard (unter 768px) === */
@media (max-width: 767px) {
  .woocommerce-MyAccount-navigation {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start; /* ⬅️ Wichtig: linksbündig statt center */
    gap: 10px;
    max-width: 100%;
    margin: 20px 20px;
  }

  .woocommerce-MyAccount-navigation li a {
    font-size: 14px;
    padding: 10px 16px;
    height: auto;
    justify-content: center; /* Button-Text bleibt zentriert im Button */
  }

  /* Headline & Content linksbündig */
  body.page-id-20817 .entry-header {
    padding-left: 20px;
    padding-right: 20px;
    text-align: left;
  }

  body.page-id-20817 .site-main > article {
    margin: 0 20px;
    max-width: 100%;
  }

  /* Headline-Schrift normal horizontal */
  body.page-id-20817 h1 {
    writing-mode: initial !important;
    transform: none !important;
    text-align: left;
  }

  /* Text-Inhalte im Content-Bereich linksbündig */
  .woocommerce-MyAccount-content {
    text-align: left;
  }
}
@media (max-width: 767px) {
  /* ... bestehender Code bleibt ... */

  .woocommerce-MyAccount-navigation {
    margin-left: 20px;   /* ⬅ exakt gleich wie Content */
    margin-right: 20px;
  }

  body.page-id-20817 .entry-header,
  body.page-id-20817 .site-main > article {
    padding-left: 20px;
    padding-right: 20px;
    margin: 0; /* sicherheitshalber */
  }

  .woocommerce-MyAccount-content {
    padding-left: 20px;
    padding-right: 20px;
  }
}






/* Orders-Tabelle: Aktionen-Button in Kopfzeilen-Farben */
.woocommerce-account .woocommerce-orders-table__cell-order-actions .button,
.woocommerce-account .woocommerce-orders-table__cell-order-actions .woocommerce-button,
.woocommerce-account .woocommerce-orders-table__cell-order-actions a.button,
.woocommerce-account table.shop_table td .button {
  background: #858964 !important;   /* wie Kopfzeile */
  color: #E9E5E0 !important;         /* Textfarbe */
  border: 0 !important;
  border-radius: 9999px;
  padding: 10px 18px;
  box-shadow: none !important;
  transition: background .2s ease;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions .button:hover,
.woocommerce-account .woocommerce-orders-table__cell-order-actions .woocommerce-button:hover,
.woocommerce-account .woocommerce-orders-table__cell-order-actions a.button:hover,
.woocommerce-account table.shop_table td .button:hover {
  background: #384b3d !important;   /* dunkler Hover */
  color: #E9E5E0 !important;
}

/* FORCE: Tabellen-Kopfzeile in CI-Grün + helle Schrift */
body.page-id-20817.woocommerce-account table.woocommerce-orders-table thead,
body.page-id-20817.woocommerce-account table.woocommerce-orders-table thead th,
body.page-id-20817.woocommerce-account table.shop_table thead,
body.page-id-20817.woocommerce-account table.shop_table thead th {
  background: #858964 !important;
  color: #E9E5E0 !important;
}


/* Mein Konto → Adressen: Überschrift kleiner */
.woocommerce-account .woocommerce-Address .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address .woocommerce-Address-title h3 {
  font-size: 24px !important;
  line-height: 1.2;
  margin: 0 0 12px;
}

/* Mobil etwas kleiner */
@media (max-width: 767px) {
  .woocommerce-account .woocommerce-Address .woocommerce-Address-title h2,
  .woocommerce-account .woocommerce-Address .woocommerce-Address-title h3 {
    font-size: 20px !important;
  }
}


/* Adressen: "… bearbeiten" Link linksbündig unter der Überschrift */
.woocommerce-account .woocommerce-Address .woocommerce-Address-title,
.woocommerce-account .addresses .title {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* links ausrichten */
  gap: 8px;
}

.woocommerce-account .woocommerce-Address .woocommerce-Address-title .edit,
.woocommerce-account .addresses .title .edit {
  float: none !important;     /* Woo-Default überschreiben (float:right) */
  margin: 0 !important;
  display: inline-block;
}


/* Adressen: H2/H3 etwas einrücken (rechts schieben) */
.woocommerce-account .woocommerce-Address .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address .woocommerce-Address-title h3,
.woocommerce-account .addresses .title h2,
.woocommerce-account .addresses .title h3 {
  padding-left: 10px;   /* bei Bedarf 6–12px anpassen */
}

/* mobil minimal kleinerer Einzug */
@media (max-width: 767px) {
  .woocommerce-account .woocommerce-Address .woocommerce-Address-title h2,
  .woocommerce-account .woocommerce-Address .woocommerce-Address-title h3,
  .woocommerce-account .addresses .title h2,
  .woocommerce-account .addresses .title h3 {
    padding-left: 6px;
  }
}


/* Adressen: Edit-Link etwas weiter nach links ziehen */
.woocommerce-account .woocommerce-Address .woocommerce-Address-title .edit,
.woocommerce-account .addresses .title .edit {
  margin-left: -5px !important; /* ggf. -6px/-8px testen */
}

/* mobil etwas weniger Versatz */
@media (max-width: 767px) {
  .woocommerce-account .woocommerce-Address .woocommerce-Address-title .edit,
  .woocommerce-account .addresses .title .edit {
    margin-left: -3px !important;
  }
}


/* Mein Konto → Formulare (z. B. Kommunikation): Submit-Button in CI-Farben */
.woocommerce-account .woocommerce-MyAccount-content form input[type="submit"],
.woocommerce-account .woocommerce-MyAccount-content form button[type="submit"],
.woocommerce-account .woocommerce-MyAccount-content .button[type="submit"] {
  background: #858964 !important;
  color: #E9E5E0 !important;
  border: 0 !important;
  border-radius: 9999px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none !important;
  transition: background .2s ease;
  appearance: none;
}

.woocommerce-account .woocommerce-MyAccount-content form input[type="submit"]:hover,
.woocommerce-account .woocommerce-MyAccount-content form button[type="submit"]:hover,
.woocommerce-account .woocommerce-MyAccount-content .button[type="submit"]:hover {
  background: #384b3d !important;
  color: #E9E5E0 !important;
}

