/*
Theme Name: An-Bruch Theme
Theme URI: 
Author: Mia Burger
Author URI: -
Description: Anbruch Theme
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 5.7
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: an-bruch
Tags: blog, one-column, wide-blocks, block-patterns, featured-images, full-site-editing, rtl-language-support, threaded-comments, translation-ready
*/

/*
 * Control the hover stylings of outline block style.
 * Unnecessary once block styles are configurable via theme.json
 * https://github.com/WordPress/gutenberg/issues/42794
 */
.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
    background-color: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--base);
    border-color: var(--wp--preset--color--secondary);
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
    text-decoration-thickness: 0.8px !important;
    text-underline-offset: 0.2em;
}

/*
 * Form field styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
::placeholder {
    color: var(--wp--preset--color--contrast);
    opacity: 1;
    /* Firefox */
}

input:not([type="submit"]):not([type="checkbox"]),
textarea,
.wp-block-post-comments-form input:not([type=submit]),
.wp-block-post-comments-form textarea {
    background-color: var(--wp--preset--color--base);
    border-color: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--contrast);
}

input:not([type="submit"]):not([type="checkbox"]):focus,
textarea:focus {
    outline-style: solid;
    outline-color: var(--wp--preset--color--contrast);
}

/*
 * Navigation Block
 * Reset the padding from List block
 * https://github.com/WordPress/gutenberg/issues/50486
 */
.wp-block-navigation ul {
    padding: unset;
}

/*
 * Pull quote Block
 * Reset the browser default margins for blockquote element
 * https://github.com/WordPress/gutenberg/issues/44129
 */
.wp-block-pullquote blockquote,
.wp-block-pullquote p {
    margin: 0;
}

@media (max-width: 600px) {
  .wp-site-blocks {
    padding-left: 4vw;
    padding-right: 4vw;
  }
}

/* Font definitions */

.font-magnet-backslanted {
  font-family: "Magnet Backslanted";
  font-weight: 400;
  font-style: normal;
}

.font-magnet-slanted {
  font-family: "Magnet Slanted";
  font-weight: 400;
  font-style: normal;
}

.font-magnet-upright {
  font-family: "Magnet Upright";
  font-weight: 400;
  font-style: normal;
}



/* Newsletter input */

.wpcf7 p {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    align-items: center;
    margin: 0;
    max-width: 480px; 
}

.wpcf7-form-control-wrap {
    display: inline-block;
    flex: 1 1 auto;
    min-width: 100px;
}

.wpcf7 input[type="email"] {
    width: 100%;
    max-width: 350px; 
    padding: 0.5rem 0.75rem;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-family: 'Swear Thin', sans-serif;
    font-size: 1rem;
    color: #111;
}

.wpcf7 input[type="submit"] {
    padding: 0.5rem 1rem;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    font-family: 'Swear Regular', sans-serif;
}


@media (max-width: 600px) {
  .wpcf7-form-control-wrap {
    width: 70%;  
    flex: 0 0 auto;
  }

  .wpcf7 input[type="email"] {
    width: 100%;
    max-width: 100%;
  }

  .wpcf7 p {
    flex-wrap: nowrap; 
  }
}



/* headline about:anbruch */

h1 .font-magnet-upright {
  margin-right: 0.15em; /* adjust spacing */
}


/* newsletter text section */

.newsletter-cta {
  font-family: var(--wp--preset--font-family--swear-thin);
  font-size: var(--wp--preset--font-size--large);
  display: inline-flex;
  align-items: center;
  gap: 0.2em; /* spacing between icon and text */
  margin-top: 0;
}

.newsletter-icon {
  height: 1em;   /* match text height exactly */
  width: auto;   /* maintain aspect ratio */
  display: inline-block;
}

.newsletter-wrapper {
  display: flex;
  flex-direction: column;
  margin-top: 0
}



/* Footer */

/* Footer container */
.footer-area {
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Desktop layout */
.footer-inner {
    width: 70%;
    margin: 0 auto;
    padding-top: 0.5rem;
    border-top: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Left side link */
.footer-left {
    margin: 0;
    font-size: var(--wp--preset--font-size--small);
}

.footer-left a {
    text-decoration: none;
    color: inherit;
}

.footer-left a:hover {
    text-decoration: underline;
}

/* Right side (existing footer text) */
.footer-text {
    margin: 0.5rem 0 0;
    font-size: var(--wp--preset--font-size--medium);
    font-family: "Swear Thin"
}

/* Mobile: full width + padding */
@media (max-width: 600px) {
    .footer-inner {
        width: 100%;
        padding-left: 4vw;
        padding-right: 4vw;
    }
}
