/* =========================================================
   custom.css — Claas-spezifische Anpassungen
   ========================================================= */

/* Mobile: Portraitbild */
@media (max-width: 980px) {
  #home .image,
  #ueber-mich .image {
    background-image: url('../../images/claas_m.jpg') !important;
  }
}

/* Mobile: Home-Content zentrieren */
@media screen and (max-width: 980px) {
  .panel.special > .content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .panel.special > .content > .inner {
    width: 100%;
  }

  ul.actions.stacked.special {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  ul.actions.stacked.special li {
    width: 80%;
    margin-left: 0;
    margin-right: 0;
  }

  ul.actions.stacked.special li > .button {
    min-width: 0;
    width: 100%;
  }
}

/* Angebote: keine Trennlinien, Überschriften näher am Text */
#angebote ul.alt li {
  border-top: none;
}

#angebote ul.alt li h4 {
  margin-bottom: 0.25em;
}

#angebote ul.alt li p {
  margin-bottom: 0.75em;
}

/* Überschriften in Inhaltspanels: kein Uppercase */
.panel.secondary h2,
.panel.secondary h3,
.panel.secondary h4 {
  text-transform: none;
  letter-spacing: 0.02em;
}

/* Tagline auf Home: Stil-Overrides für header p */
#home .tagline-main {
  font-size: 1.15em;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.06em;
  text-transform: none;
  margin-bottom: 0.25em;
  color: var(--color-fg-bold);
}

#home .tagline-main .accent {
  color: var(--color-accent);
}

#home .tagline-sub {
  font-size: 0.85em;
  font-style: italic;
  letter-spacing: 0.05em;
  text-transform: none;
  opacity: 0.8;
  margin-top: 0;
}

/* E-Mail-Icon auf Home größer */
#home ul.icons li .icon {
  width: 3.5em;
  height: 3.5em;
  line-height: 3.5em;
}

#home ul.icons li .icon:before {
  font-size: 2rem;
}

/* Navigations-Buttons auf Home: gleiche Breite, etwas größere Schrift */
.actions.stacked.special li {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.actions.stacked.special li > .button {
  width: 100%;
  font-size: 0.9em;
  letter-spacing: 0.1em;
}

/* Name: groß und selbstbewusst */
#home h1 {
  font-size: 4.5em;
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin-bottom: 0;
}

@media screen and (max-width: 980px) {
  #home h1 { font-size: 2.75em; }
}

@media screen and (max-width: 736px) {
  #home h1 { font-size: 2em; }
}

/* Tagline: mehr Präsenz */
#home .tagline-main {
  font-size: 1.35em;
}

/* Dekorative Linie: einlaufende Animation beim Panel-Wechsel */
header > :first-child:after {
  transition: width 0.6s ease 0.25s;
}

.panel.inactive header > :first-child:after {
  width: 0 !important;
}

/* Bild-Overlay: subtile Tiefe */
.panel > .image {
  position: relative;
}

.panel > .image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.02) 60%,
    rgba(0, 0, 0, 0.08) 100%
  );
  pointer-events: none;
}

/* Content-Panel: gebrochenes Weiß */
.panel > .content {
  background-color: #fefcf9;
}

/* Nav-Buttons als Ecktabs */
.panel.secondary > .content {
  position: relative;
  justify-content: center;
  padding-bottom: 3.5em;
}

.panel.secondary > .content > .actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: auto;
  margin: 0;
  padding: 0;
  justify-content: center;
  gap: 0;
}

.panel.secondary > .content > .actions li {
  margin: 0;
}

.panel.secondary > .content > .actions .button.back {
  border-radius: var(--radius) 0 0 0;
}

.panel.secondary > .content > .actions .button.next,
.panel.secondary > .content > .actions .button:not(.back) {
  border-radius: 0 var(--radius) 0 0;
}

.panel.secondary > .content > .actions .button {
  box-shadow: none;
}

/* Buttons auf Home: 3D-erhaben */
#home .actions.stacked li a.button {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--color-accent);
  color: var(--color-fg-bold) !important;
  transition: background-color var(--duration-transition) ease,
              color var(--duration-transition) ease,
              box-shadow var(--duration-transition) ease,
              transform var(--duration-transition) ease;
}

#home .actions.stacked li a.button:hover {
  background: var(--color-accent);
  box-shadow: inset 0 0 0 1px var(--color-accent),
              0 8px 28px rgba(155, 35, 53, 0.28);
  color: #ffffff !important;
  transform: translateY(-2px);
}

#home .actions.stacked li a.button:active {
  background: #7a1b28;
  box-shadow: inset 0 0 0 1px #7a1b28;
  color: #ffffff !important;
  transform: translateY(1px);
}
